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. Next step is to compile interworking code. I do:
arm-elf-gpc -mthumb -o prova.o prova.pp
but I get some warnings:
/home/gba/lib/gcc-lib/arm-elf/3.3.1/../../../../arm-elf/bin/ld: Warning: /home/g ba/lib/gcc-lib/arm-elf/3.3.1/libgpc.a(error.o) does not support interworking, wh ereas prova.o does /home/gba/lib/gcc-lib/arm-elf/3.3.1/../../../../arm-elf/bin/ld: Warning: /home/g ba/lib/gcc-lib/arm-elf/3.3.1/libgpc.a(string2.o) does not support interworking, whereas prova.o does ...
...and a lot of similar warnings. In fact, I compiled gpc with --enable-interwork, but seems like this directive was ignored.
Suggestions?
Francesco
Ok, I'll do a try ASAP. Stay tuned! ^_^
Thanks to all!
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