32 bit gccsdk

Peter Teichmann mail at peter-teichmann.de
Sat Oct 11 03:46:07 PDT 2003

Am Samstag, 11. Oktober 2003 09:13 schrieb Peter Naulls:
> The CVS version won't work sensibly until the bug in 'as' is fixed.
> Until then, you can use my 32-bit version which includes the latest
> Unixlib.  http://www.riscos.info/gcc/32bit.html

I can not use the RISC OS compiler, I need the cross compiler for Unix.
Unfortunately it is not possible to compile the source archive from this page. 
It first complains during "make setup" about missing "install_sources" in 
unixlib. I tried to fix this by copyig these sections from the 2.95.4-v3 
snapshot, and it seemed to work.

The next problem is during compilation of the cross compiler, where it 
suddenly can not find libunixlib. After studying the top Makefile I tried 
"make c-libs". This seemed to work, but after trying to continue gccsdk build 
via "make" it says:

make[2]: Entering directory `/home/peter/gccsdk-32/gccsdk/gcc/gcc'
/home/peter/gccsdk-32/cross/bin//gcc -o /home/peter/gccsdk-32/
riscos-dist/!gcc/bin//gcc,ff8 /home/peter/gccsdk-32/gccsdk/arm-riscos-aof/
gcc-2_95_4/gcc/stage2/gcc.o /home/peter/gccsdk-32/gccsdk/arm-riscos-aof/
gcc-2_95_4/gcc/stage2/gccspec.o \
/home/peter/gccsdk-32/gccsdk/arm-riscos-aof/gcc-2_95_4/gcc/stage2/version.o /
riscos_fix.o \
rname.o /home/peter/gccsdk-32/gccsdk/arm-riscos-aof/gcc-2_95_4/gcc/stage2/
prefix.o -L/home/peter/gccsdk-32/gccsdk/arm-riscos-aof/libiberty/stage2 
Error: Library '/home/peter/gccsdk-32/cross/bin/arm-riscos-aof/2_95_4/apcs32/
arch3/unixlib/unixlib.o' does not contain the correct 'chunk' types. Is it 
Drlink: Link failed with 1 error
ld fatal error: program /home/peter/gccsdk-32/cross/bin/drlink returned exit 
status 3072:
gcc: Fatal compiler error: program ld
make[2]: *** [/home/peter/gccsdk-32/riscos-dist/!gcc/bin//gcc,ff8] Error 1
make[2]: Leaving directory `/home/peter/gccsdk-32/gccsdk/gcc/gcc'
make[1]: *** [gcc] Error 2
make[1]: Leaving directory `/home/peter/gccsdk-32/gccsdk/gcc'
make: *** [gcc-stg2] Error 2
peter at Centrino:~/gccsdk-32/gccsdk$

How have you been able to compile the RiscOS executables using this source?

Peter Teichmann

More information about the gcc mailing list