<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I have had this twice in the last week:<div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" class="">mmc -s hlc.gc -O4 --intermodule-optimization -E -ledit -llinenoise -lc++ --make felt</font></div><div class=""><font face="Courier New" class="">Making Mercury/int3s/ast.int3</font></div><div class=""><font face="Courier New" class="">Making Mercury/ints/ast.int</font></div><div class=""><font face="Courier New" class="">Making Mercury/opts/ast.opt</font></div><div class=""><font face="Courier New" class="">Making Mercury/opts/command_line.opt</font></div><div class=""><font face="Courier New" class="">Making Mercury/opts/felt.opt</font></div><div class=""><font face="Courier New" class="">Making Mercury/opts/repl.opt</font></div><div class=""><font face="Courier New" class="">Making Mercury/cs/ast.c</font></div><div class=""><font face="Courier New" class="">Uncaught Mercury exception:</font></div><div class=""><font face="Courier New" class="">Software Error: map.lookup: key not found</font></div><div class=""><font face="Courier New" class="">        Key Type: int</font></div><div class=""><font face="Courier New" class="">        Key Value: 0</font></div><div class=""><font face="Courier New" class="">        Value Type: hlds.hlds_pred.proc_info</font></div><div class=""><font face="Courier New" class="">** Error making `Mercury/cs/ast.c'.</font></div><div class=""><font face="Courier New" class="">make: *** [felt] Error 1</font></div><div class=""><font face="Courier New" class="">The terminal process "/bin/zsh '-c', 'make -f Makefile'" terminated with exit code: 2.</font></div></div><div class=""><br class=""></div><div class="">I then did a ‘make clean’ first just in case but other than a longer list of files being built, it still gave the same error.</div><div class=""><br class=""></div><div class="">How do I go about tracking down the cause of this? I am re-doing my parser having spent a lot of time playing with code, learning about and-or trees, all sorts. I was locked and loaded ready to tackle it head on and smash it etc etc and then I git this! :D</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I have attached the absolute mess of a file that is ast.m in case it helps, hopefully it won’t get scrubbed away. No laughing, I am still learning! Basically I commented out loads of ‘old’ code and was working towards getting a core parser and gradually increasing its reach one compile at a time as I have a REPL I can exercise it from.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Sean.</div><div class=""></div></body></html>