Skip to contentSkip to conversation

ARM soft-float toolchain build crashes 20071004

Buildroot Gertjan Hofman 3 participants 4 messages Oct 4, 2007 – Oct 10, 2007

lore
Share & tools
lore
#0 lore raw

Don't want to report this as a bug if it's not...but.

Dowload 4-Oct-2007 version of buildroot. Choose ARM processor, choose 'soft-float' in make menuconfig.

make:
....
CC libc/misc/internals/__uClibc_main.os
CC libc/stdlib/atexit.os
AS lib/crt1.o
AS lib/Scrt1.o
AS lib/crti.o
AS lib/crtn.o
STRIP -x -R .note -R .comment lib/libc.a
AR cr lib/libc.a
STRIP -x -R .note -R .comment lib/uclibc_nonshared.a
AR cr lib/uclibc_nonshared.a
AR cr libc/libc_so.a
LD libuClibc-0.9.29.so
libc/libc_so.a(difftime.os): In function `difftime':
difftime.c:(.text+0x8): undefined reference to
`__floatsidf'
difftime.c:(.text+0x2c): undefined reference to
`__subdf3'
libc/libc_so.a(_fpmaxtostr.os): In function
`_fpmaxtostr':
_fpmaxtostr.c:(.text+0xd0): undefined reference to
`__nedf2'
_fpmaxtostr.c:(.text+0xf4): undefined reference to
`__eqdf2'
_fpmaxtostr.c:(.text+0x110): undefined reference to
`__divdf3'
_fpmaxtostr.c:(.text+0x11c): undefined reference to
`__ltdf2'
_fpmaxtostr.c:(.text+0x1d0): undefined reference to
`__muldf3'
_fpmaxtostr.c:(.text+0x384): undefined reference to
`__gedf2'
_fpmaxtostr.c:(.text+0x40c): undefined reference to
`__floatunsidf'
libc/libc_so.a(__psfs_do_numeric.os): In function
`__psfs_do_numeric':
__psfs_do_numeric.c:(.text+0x540): undefined reference
to `__truncdfsf2'
libc/libc_so.a(strtof.os): In function `strtof':
strtof.c:(.text+0x1c): undefined reference to
`__extendsfdf2'
libc/libc_so.a(__strtofpmax.os): In function
`__strtofpmax':
__strtofpmax.c:(.text+0x154): undefined reference to
`__adddf3' /arm/buildroot/buildroot-20071004a/build_arm/staging_dir/usr/lib/gcc/arm-linux-uclibc/4.2.1/libgcc.a(_fixunsdfsi.o):
In function `__fixunsdfsi':
libgcc2.c:(.text+0x34): undefined reference to
`__fixdfsi'
make[2]: *** [lib/libc.so] Error 1
make[1]: *** [lib/libc.so.0] Error 2

I have never gotten soft-float to work with BuildRoot. Is this is a bug or my error ? If there is anything else to post to determine the problem, let me know.

Build platform is i386 Ubuntu 7.04

Much appreciated

Gertjan

____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

#1 lore raw
Quoted 3 lines · Gertjan Hofman

Don't want to report this as a bug if it's not...but.

Dowload 4-Oct-2007 version of buildroot. Choose ARM

Unfortunately this doesn't tell me what svn revision that is, but this doesn't really matter this time.

Quoted 1 line

processor, choose 'soft-float' in make menuconfig.

Please note that this is not a crash but a build-failure.

I have a sample for an ARM integrator in target/Arm.
Can you check your settings against this one and follow-up with your findings?

TIA,

#2 lore raw

Dear bernard,

Sorry for the slow response. Aside from a long weekend here, it takes a while to run through various compilations from scratch. I am never sure that the various make cleans work properly so I often end up restarting a buildroot build from the tar file, leading to long download & compile times.

If I copy the integrator926_defconfig file as .config the make indeed works fine. So I suspect it's your different uclibc config file which makes it work.

This is what I find difficult about BuildRoot - you choose an option in make menuconfig and it has an effect on a package that now needs a different config as well - but unless you familiarize your self with each package and create config files seperately, this is not a simple task.

I note your file compiles for EABI by default. I tried
setting back to OABI in the main config file and I
would have expected BuildRoot to remake the tool chain. It doesnt.

If I get any further I will post the information.

Gertjan

Quoted 16 lines · --- Bernhard Fischer
Quoted 1 line · Gertjan Hofman

Don't want to report this as a bug if it's

not...but.

Quoted 2 lines

Dowload 4-Oct-2007 version of buildroot. Choose ARM

Unfortunately this doesn't tell me what svn revision that is, but this
doesn't really matter this time.

Quoted 1 line

processor, choose 'soft-float' in make menuconfig.

Please note that this is not a crash but a build-failure.

Quoted 7 lines

I have a sample for an ARM integrator in target/Arm. Can you check your settings against this one and follow-up with your
findings?

TIA,

      ____________________________________________________________________________________

Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.
http://tv.yahoo.com/

#3 lore raw

All,

I have found that selecting:

(big endian)
BR2_armeb=y

with EABI + soft-float will NOT build correctly (svn revision: 20210)

It dies while building libmudflap (gcc). I set BR2_EXTRA_GCC_CONFIG_OPTIONS="--disable-libmudflap" and this got me a bit further, but still died in gcc-final.

I then found that if I set:

(little endian)
BR2_arm=y

with everything else the same everything builds fine.

BTW - I had the buildroot working with armeb + eabi + soft-float + gcc 4.1.2quite a while back (svn revision: 18419). I ran into the above issue when I
updated to svn revision 20210. I tried with both gcc 4.1.2 and 4.2.1 and found that little endian (BR2_arm) works while (BR2_armeb) does not. I have set BR2_xscale=y, BR2_ARM_EABI=y and BR2_SOFT_FLOAT=y in all cases.

Regards,

Jon Nalley

Quoted 67 lines · Gertjan Hofman

Dear bernard,

Sorry for the slow response. Aside from a long weekend here, it takes a while to run through various compilations from scratch. I am never sure that the various make cleans work properly so I often end up restarting a buildroot build from the tar file, leading to long download & compile times.

If I copy the integrator926_defconfig file as .config the make indeed works fine. So I suspect it's your different uclibc config file which makes it work.

This is what I find difficult about BuildRoot - you choose an option in make menuconfig and it has an effect on a package that now needs a different config as well - but unless you familiarize your self with each package and create config files seperately, this is not a simple task.

I note your file compiles for EABI by default. I tried setting back to OABI in the main config file and I would have expected BuildRoot to remake the tool chain. It doesnt.

If I get any further I will post the information.

Gertjan

Quoted 16 lines · --- Bernhard Fischer
Quoted 1 line · Gertjan Hofman

Don't want to report this as a bug if it's

not...but.

Quoted 2 lines

Dowload 4-Oct-2007 version of buildroot. Choose ARM

Unfortunately this doesn't tell me what svn revision that is, but this
doesn't really matter this time.

Quoted 1 line

processor, choose 'soft-float' in make menuconfig.

Please note that this is not a crash but a build-failure.

Quoted 7 lines

I have a sample for an ARM integrator in target/Arm. Can you check your settings against this one and follow-up with your
findings?

TIA,

      ____________________________________________________________________________________
Quoted 9 lines

Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.
http://tv.yahoo.com/

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20071010/7e092ab9/attachment.htm