BE Cross compiler for ARM-XSCALE - Errors

Philip mathew philipmat@hotmail.com
Thu Jun 21 04:57:00 GMT 2007


Following are the errors I get when I try to build cross tool in the big 
endian mode for gcc 4.1.0


libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o 
libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o 
libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o 
libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o 
libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o 
libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o 
libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o 
libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o 
libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o 
libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o 
libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-glibc_s.o 
libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && 
rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 
./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp 
./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/armeb-xscale-linux-gnu/bin/armeb-xscale-linux-gnu-ld: 
unrecognised emulation mode: armelf_linux
Supported emulations: armelfb_linux armelfb
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory 
`/home/ppmathe/crosstool-0.43/build/armeb-xscale-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-gcc/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory 
`/home/ppmathe/crosstool-0.43/build/armeb-xscale-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-gcc/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory 
`/home/ppmathe/crosstool-0.43/build/armeb-xscale-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-gcc'
make: *** [all] Error 2
[ppmathe@sai-build1 crosstool-0.43]$ 
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/armeb-xscale-linux-gnu/bin/armeb-xscale-linux-gnu-ld: 
unrecognised emulation mode: armelf_linuxpwd
-bash: 
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/armeb-xscale-linux-gnu/bin/armeb-xscale-linux-gnu-ld:: 
No such file or directory
[ppmathe@sai-build1 crosstool-0.43]$ Supported emulations: armelfb_linux 
armelfb
-bash: Supported: command not found
[ppmathe@sai-build1 crosstool-0.43]$ collect2: ld returned 1 exit status
-bash: collect2:: command not found
[ppmathe@sai-build1 crosstool-0.43]$ make[3]: *** [libgcc_s.so] Error 1
-bash: make[3]:: command not found
[ppmathe@sai-build1 crosstool-0.43]$ make[3]: Leaving directory 
`/home/ppmathe/crosstool-0.43/build/armeb-xscale-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-gcc/gcc'
>make[2]: *** [libgcc.a] Error 2
>make[2]: Leaving directory 
>`/home/ppmathe/crosstool-0.43/build/armeb-xscale-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-gcc/gcc'
>make[1]: *** [all-gcc] Error 2
>make[1]: Leaving directory 
>`/home/ppmathe/crosstool-0.43/build/armeb-xscale-linux-gnu/gcc-4.1.0-glibc-2.3.2/build-gcc'
>make: *** [all] Error 2
>[ppmathe@sai-build1 crosstool-0.43]$ pwd
>

I added the patches mentiond for gcc 4.1.0. and modified arm-xscale.dat as 
follows before the build.

[ppmathe@sai-build1 crosstool-0.43]$ cat arm-xscale.dat
KERNELCONFIG=`pwd`/arm.config
TARGET=armeb-xscale-linux-gnu
TARGET_CFLAGS="-O"
GCC_EXTRA_CONFIG="--with-cpu=xscale  --enable-cxx-flags=-mcpu=xscale"

_________________________________________________________________
DonÂ’t miss your chance to WIN $10,000 and other great prizes from Microsoft 
Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list