For a quick check if it's the only problem, you can try adding
#define getcwd(buf, size) NULL
in p/rts/rts.c (e.g., in line 215). (But if there were other errors that you trimmed in your mail, I might have to see them to tell if it's worth checking for all of those things.)
Ok, with this change all works fine.
OK, I'll add an autoconf check so this won't be necessary in the future. Is there another function to get the current directory (if there's such a thing -- I'm not familiar with the platform)?
Well, I'm not so familiar too ^_^... In order to compile gpc, I forced fake directory handling in rts.h (line 77), by commenting "if defined __arm__ || defined __thumb__", and newlib compilation, by #define _NEWLIB_VERSION. In fact I'm try to build a cross compiler for gameboy advance. A big trouble I get is in order to make a libgpc with interworking (arm - thumb) enabled. In theory it seems to be correctly compiled:
arm-elf-gpc -print-multi-lib .; thumb;@mthumb interwork;@mthumb-interwork thumb/interwork;@mthumb@mthumb-interwork
but, in fact, i can't compile with -mthumb:
arm-elf-gpc -mthumb --gpc-main=main --specs=gba.specs -o prova.o prova.pp /home/gba/bin/../lib/gcc-lib/arm-elf/3.3.1/../../../../arm-elf/bin/ld: /home/gba /bin/../lib/gcc-lib/arm-elf/3.3.1/libgpc.a(init.o)(_p_DoInitProc): warning: inte rworking not enabled. /home/gba/bin/../lib/gcc-lib/arm-elf/3.3.1/../../../../arm-elf/bin/ld: first o ccurrence: /cygdrive/c/DOCUME~1/ADMINI~1/IMPOST~1/Temp/ccEDzG78.o: thumb call to arm /cygdrive/c/DOCUME~1/ADMINI~1/IMPOST~1/Temp/ccEDzG78.o(.text+0x1ce): In function `init_pascal_main_program': : internal error: dangerous error ... snip ...
Sorry for my "shaking" english... I hope you can understand what I have said :)
Frank
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0
E5E8