Prof A Olowofoyeku (The African Chief) wrote:
On 17 Feb 2006 at 4:17, Waldek Hebisch wrote:
Also, it is possible that you get an error deeply inside automake. The simplest way then is to find which unit is crashing, compile all its imports with `--interface-only' and then try to compile the causing the crash. By the way: the crash may be in automake machinery (what you wrote suggest otherwise, by just in case I will mention this). Then you need to give `-fautomake' option to gpc1.exe, and additionaly -famtmpfile=fooo option (where `fooo' is a name of existing empty file).
One general remark: when you give an option with to dashes to gpc, you need to use `-f' to gpc1. For example: `--objects-are-references' has to be written as `-fobjects-are-references'. gpc accepts both versions, but convets the first ionto the second one. gpc1 accepts only the second version.
Thanks. I tried used "-f", and this is the result from gdb:
(gdb) run -fautomake -fextended-syntax -fignore-function-results -fno- io-checking -fno-stack-checking -fimplicit-result -fdelphi-method- shadowing -fexecutable-file-name example2.pas Starting program: f:/mingw/libexec/gcc/mingw32/3.4.5/gpc1.exe - fautomake -fextended-syntax -fignore-function-results -fno-io-checking - fno-stack-checking -fimplicit-result -fdelphi-method-shadowing - fexecutable-file-name example2.pas ../../gcc/p/module.c:1210:find_automake_tempfile_entry: failed assertion `automake_temp_filename' example2.pas:27: error: Internal compiler error. Please submit a full bug report to the GPC mailing list gpc@gnu.de. See URL:http://www.gnu-pascal.de/todo.html for details.
Program exited with code 01. (gdb) bt No stack. (gdb)
Omit `-fautomake' from the command line (if needed compile all imported units first, using `--interface-only' to avoid problems with cyclic imports). If you really need automake (that is crash is inside automake machinery) then my remark about `-famtmpfile=fooo' applies (the gpc1 executable issues the message above when `-fautomake' is given without `-famtmpfile=fooo').