Prof A Olowofoyeku (The African Chief) wrote:
I don't remember ever seeing these errors. What version of gcc sources are you building on?
The ones from gcc-core-3.2.1.tar.gz.
That should be (mostly) fine. I prefer to use the "mingw special" versions of the gcc sources (i.e., the ones available from the Mingw download site), because they have been patched for Mingw use.
Good to know...
What arguments do you pass to "configure"?
Only "--enable-languages=pascal".
Attached is a copy of the shell script that I use to build GPC for Mingw (I have commented out other things that I do).
Thanks. It seemingly gets another step further: Now `make` aborts with the error message
make[1]: Circular libgcc.a <- pascal dependency dropped. ...../libgpc.a(rts.o)(.text+0xf0d):rts.c: undefined reference to `readdir' ...../libgpc.a(rts.o)(.text+0xef1):rts.c: undefined reference to `opendir' ...../libgpc.a(rts.o)(.text+0xf2c):rts.c: undefined reference to `closedir' make[2]: *** [binobj.exe] Error 1 make[1]: *** [pascal.utils] Error 2 make: *** [all-gcc] Error 2
What now?
Best,
Markus