Hi all! I'm trying to build a cross compiler from win32-cygwin to arm-elf. I built the gcc cross compiler that works very well... Now, with the same configuration, I'm trying to build gpc compiler. The building process seems good, but if I try to compile a simple pascal code I obtain some errors:
C:\cygwin\home\Mode3\Nuova cartella>arm-elf-gpc -o prova.o prova.pp /home/gba/lib/gcc-lib/arm-elf/3.3.1/libgpc.a(rts.o)(.text+0xed0): In function `realpath': /home/Administrator/sources/gcc/gcc/p/rts/rts.c:1493: undefined reference to `getcwd' /home/gba/lib/gcc-lib/arm-elf/3.3.1/libgpc.a(rts.o)(.text+0x1114): In function `_p_CStringRealPath': /home/Administrator/sources/gcc/gcc/p/rts/rts.c:1583: undefined reference to `getcwd'
This is my configuration script:
$SRCDIR/configure \ --target=arm-elf --prefix=/home/gba \ --enable-interwork --enable-multilib \ --enable-languages="pascal" \ --with-newlib --with-headers=../gcc/newlib/libc/include \ 2>&1 | tee configure_pas.log
I'm using gcc 3.3.1 and gpc-20030830 patched
Suggestions will be very appreciated ^_^