Crosstool: compiled for a little endian system and target is big endian

Rowan Potgieter baldo.forum@gmail.com
Sat Aug 12 11:02:00 GMT 2006


Hi guys
I've built a toolchain using gcc-3.4.4 and glibc-2.3.3 in crosstool-0.42
I get the following error below, is there a way to configure the glibc
libraries for big-endian when building the toolchain? if i edit the
file "arm-xscale.dat" and add the following lines:

CC="arm-linux-gcc -mbig-endian -finline-limit=10000"
AS="arm-linux-as -mbig-endian"
LD="arm-linux-ld -EB"

would this work/help?

arm-linux-ranlib /home/satvika/stareast/snapgear/snapgear/glibc/build/libc_pic.a
arm-linux-gcc -mbig-endian   -nostdlib -nostartfiles -r -o
/home/satvika/stareast/snapgear/snapgear/glibc/build/elf/librtld.os
'-Wl,-(' /home/satvika/stareast/snapgear/snapgear/glibc/build/elf/dl-allobjs.os
/home/satvika/stareast/snapgear/snapgear/glibc/build/libc_pic.a -lgcc
'-Wl,-)'
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_udivsi3.oS):
compiled for a little endian system and target is big endian
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
failed to merge target specific data of file
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_udivsi3.oS)
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_divsi3.oS):
compiled for a little endian system and target is big endian
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
failed to merge target specific data of file
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_divsi3.oS)
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_umodsi3.oS):
compiled for a little endian system and target is big endian
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
failed to merge target specific data of file
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_umodsi3.oS)
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_dvmd_lnx.oS):
compiled for a little endian system and target is big endian
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
failed to merge target specific data of file
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_dvmd_lnx.oS)
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_ashldi3.oS):
compiled for a little endian system and target is big endian
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld:
failed to merge target specific data of file
/opt/crosstool/gcc-3.4.4-glibc-2.3.3/arm-linux/lib/gcc/arm-linux/3.4.4/libgcc.a(_ashldi3.oS)
collect2: ld returned 1 exit status
make[4]: *** [/home/satvika/stareast/snapgear/snapgear/glibc/build/elf/librtld.os]
Error 1
make[4]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/glibc/elf'
make[3]: *** [elf/subdir_lib] Error 2
make[3]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/glibc'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/satvika/stareast/snapgear/snapgear/glibc/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/satvika/stareast/snapgear/snapgear/lib'
make: *** [subdirs] Error 1

-- 
--------------------------------------------------------------------------------------------------------------------------------------------
 When you say 'I wrote a program that crashed Windows', people just
stare at you blankly and say 'Hey, I got those with the system, *for
free*'. (L. Torvalds)
--------------------------------------------------------------------------------------------------------------------------------------------

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



More information about the crossgcc mailing list