[uClibc] Buildroot and elf2flt on arm

Steven Geerts Steven.geerts at thomson.net
Thu Aug 18 14:01:08 UTC 2005


Hi

tnx for the replies alreaydy. I'm trying to build with gcc for arm with
buildroot now, but this is not successfull either.  I'm trying to build
it with 2.6.12 kernel headers, binutils 2.16.1, uclibc 0.9.28 and gcc
3.4.4 and it still gives errors.  

Following problems I have :
make[3]: Entering directory
`/toolchain/buildroot/toolchain_build_arm/uClibc-0.9.28/ldso/ldso'
/toolchain/buildtools/bin/arm-linux-uclibc-gcc  -Wall
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fstrict-aliasing -Os -funit-at-a-time -DUCLIBC_LDSO=\"ld-uClibc.so.0\"
-mbig-endian -fPIC -DUCLIBC_RUNTIME_PREFIX=\"/\" -fno-builtin -nostdinc
-D_LIBC -I../../ldso/include -I. -I../../include
-isystem /toolchain/buildtools/lib/gcc/arm-linux-uclibc/3.4.4/include
-c arm/resolve.S -o arm/resolve.o
/toolchain/buildtools/bin/arm-linux-uclibc-strip -x -R .note -R .comment
arm/resolve.o
/toolchain/buildtools/bin/arm-linux-uclibc-gcc  -Wall
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fstrict-aliasing -Os -funit-at-a-time -DUCLIBC_LDSO=\"ld-uClibc.so.0\"
-mbig-endian -fPIC -DUCLIBC_RUNTIME_PREFIX=\"/\" -fno-builtin -nostdinc
-D_LIBC -I../../ldso/include -I. -I../../include
-isystem /toolchain/buildtools/lib/gcc/arm-linux-uclibc/3.4.4/include -c
ldso.c -o ldso.o
/toolchain/buildtools/bin/arm-linux-uclibc-strip -x -R .note -R .comment
ldso.o
/toolchain/buildtools/bin/arm-linux-uclibc-ld -EB -e _start -z now
-Bsymbolic -shared --warn-common --export-dynamic --sort-common -z
combreloc --discard-locals --discard-all --no-undefined -s
-soname=ld-uClibc.so.0 \
        -o ld-uClibc-0.9.28.so arm/resolve.o
ldso.o /toolchain/buildtools/lib/gcc/arm-linux-uclibc/3.4.4/libgcc.a
/toolchain/buildtools/bin/arm-linux-uclibc-ld: /toolchain/buildtools/lib/gcc/arm-linux-uclibc/3.4.4/libgcc.a(_udivsi3.o): compiled for a little endian system and target is big endian
/toolchain/buildtools/bin/arm-linux-uclibc-ld: failed to merge target
specific data of
file /toolchain/buildtools/lib/gcc/arm-linux-uclibc/3.4.4/libgcc.a(_udivsi3.o)
/toolchain/buildtools/bin/arm-linux-uclibc-ld: /toolchain/buildtools/lib/gcc/arm-linux-uclibc/3.4.4/libgcc.a(_dvmd_lnx.o): compiled for a little endian system and target is big endian
/toolchain/buildtools/bin/arm-linux-uclibc-ld: failed to merge target
specific data of
file /toolchain/buildtools/lib/gcc/arm-linux-uclibc/3.4.4/libgcc.a(_dvmd_lnx.o)
make[3]: *** [ld-uClibc-0.9.28.so] Error 1
make[3]: Leaving directory
`/toolchain/buildroot/toolchain_build_arm/uClibc-0.9.28/ldso/ldso'
make[2]: *** [ldso] Error 2
make[2]: Leaving directory
`/toolchain/buildroot/toolchain_build_arm/uClibc-0.9.28/ldso'
make[1]: *** [_dir_ldso] Error 2
make[1]: Leaving directory
`/toolchain/buildroot/toolchain_build_arm/uClibc-0.9.28'
make: ***
[/toolchain/buildroot/toolchain_build_arm/uClibc-0.9.28/lib/libc.a]
Error 2


Anybody an idea???



On Thu, 2005-08-18 at 12:42 +0200, David Hallas Andersen wrote:

> Hi Steven,
> 
> I used buildroot to build the toolchain, I just selected arm in the
> Target  
> Architecure menu, and selected no when asked for a MMU. The compiler
> seems to  
> work, but i cant get the elf2flt working...
> 
> /David
> 
> On Thursday 18 August 2005 10:31, Steven Geerts wrote: 
> > Hi 
> > 
> > I was just reading your mail and was interested in the fact how you 
> > build your toolchain? 
> > I'm building myself also for an arm target with uClibc library, but 
> > without using the buildroot tool. 
> > 
> > If you did not use the buildroot to build your toolchain and you
> build 
> > it also with uClibc can you give some information where to find more
> on 
> > this or how you did this? 
> > 
> > thanks in advance 
> > 
> > regards 
> > 
> > steven 
> > 
> > On Thu, 2005-08-18 at 09:59 +0200, David Hallas Andersen wrote: 
> > > Hi All, 
> > > 
> > > I am trying to build a 3.4 series gcc compiler for an arm target,
> and 
> > > build elf2flt to generate flat binaries. I have successfully build
> the 
> > > toolchain etc. using buildroot and I have downloaded the elf2flt
> source 
> > > from the blackfin project, configured it and built it. But when I
> try to 
> > > link I get the following error: 
> > > 
> >
> > /home/dha/work/buildroot/build_arm/staging_dir/bin-ccache/../lib/gcc/arm- 
> > >linux-uclibc/3.4.2/../../../../arm-linux-uclibc/bin/elf2flt -s32768
> -rz  
> > > -o /home/dha/work/system/src/apps/testgcc3/except/except_test -p 
> > > /home/dha/work/system/src/apps/testgcc3/except/except_test.gdb 
> > > /home/dha/work/system/src/apps/testgcc3/except/except_test.gdb 
> > > /home/dha/work/system/src/apps/testgcc3/except/except_test.gdb:
> no .data 
> > > section collect2: ld returned 2 exit status 
> > > make: ***
> [/home/dha/work/system/src/apps/testgcc3/except/except_test] 
> > > Error 1 
> > > 
> > > Has anyone ever got this combo to work? And if so, could we try
> and add 
> > > support for elf2flt in buildroot? 
> > > 
> > > /David 
> > > _______________________________________________ 
> > > uClibc mailing list 
> > > uClibc at uclibc.org 
> > > http://uclibc.org/mailman/listinfo/uclibc 
> > 
> > Steven Geerts 
> > Thomson Silicon Components 
> > SW Field Application Engineer 
> > 
> >
> ________________________________________________________________________ 
> > mail :                   steven.geerts at thomson.net 
> > phone:                +32-3-443-543
> 

Steven Geerts
Thomson Silicon Components
SW Field Application Engineer 
                                    
________________________________________________________________________
mail :                   steven.geerts at thomson.net
phone:                +32-3-443-543 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20050818/57f749b8/attachment-0002.htm 


More information about the uClibc mailing list