Uclibc 0.9.29 compiler error
Hi,
I am using buildroot SVN, gcc 4.2.1, uclibc 0.9.29, armeb-linux for xscale. I've configured to use software floating point. Linking of uclibc fails, it cannot find some functions which seem software floating point related e.g. __floatsidf. Objdump'ing the libgcc.a file, this function is present, but section *UND* is listed instead of .text.
<quote>
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+0x1c8): undefined reference to `__muldf3'
_fpmaxtostr.c:(.text+0x38c): undefined reference to `__gedf2'
_fpmaxtostr.c:(.text+0x444): undefined reference to __adddf3' libc/libc_so.a(__psfs_do_numeric.os): In function __psfs_do_numeric':
__psfs_do_numeric.c:(.text+0x520): undefined reference to __truncdfsf2' libc/libc_so.a(strtof.os): In function strtof':
strtof.c:(.text+0x1c): undefined reference to `__extendsfdf2' /home/micha/netbox/buildroot/build_armeb/staging_dir/bin/../lib/gcc/armeb-linux-uclibc/4.1.2/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] Fout 2
</quote>
<quote>
SYMBOL TABLE:
00000000 l df *ABS* 00000000 libgcc2.c 00000000 l d .text 00000000 .text 00000000 l d .data 00000000 .data 00000000 l d .bss 00000000 .bss 00000000 l d .comment 00000000 .comment 00000000 *UND* 00000000 __extendsfdf2 00000000 *UND* 00000000 __muldf3 00000000 *UND* 00000000 __fixunsdfsi 00000000 *UND* 00000000 __floatsidf 00000000 *UND* 00000000 __adddf3 00000000 g F .text 000000a8 __fixunssfdi
</quote>
Any idea how to solve this?
Thanks,
Micha
Quoted 9 lines · Micha Nelissen
Hi,
I am using buildroot SVN, gcc 4.2.1, uclibc 0.9.29, armeb-linux for xscale. I've configured to use software floating point. Linking of uclibc fails, it cannot find some functions which seem software floating point related e.g.
__floatsidf. Objdump'ing the libgcc.a file, this function is present, but section *UND* is listed instead of .text.Any idea how to solve this?
Retry with a shared libgcc
Quoted 9 lines · Bernhard Fischer
Quoted 7 lines · Micha Nelissen
Hi,
I am using buildroot SVN, gcc 4.2.1, uclibc 0.9.29, armeb-linux for xscale. I've configured to use software floating point. Linking of uclibc fails, it cannot find some functions which seem software floating point related e.g.
__floatsidf. Objdump'ing the libgcc.a file, this function is present, but section *UND* is listed instead of .text.
Quoted 3 lines
Quoted 1 line
Any idea how to solve this?
Retry with a shared libgcc
scratch that, i overread softfloat.
Quoted 2 lines · Micha Nelissen
I am using buildroot SVN, gcc 4.2.1, uclibc 0.9.29, armeb-linux for xscale. I've configured to use software floating point. Linking of
It does work with gcc 3.4.6. With the 4.x branch it seems NPTL is necessary, which doesn't work in uclibc-arm.
Micha
Am 2007-09-04 23:40 +0200 schrieb Micha Nelissen:
Quoted 2 lines
I am using buildroot SVN, gcc 4.2.1, uclibc 0.9.29, armeb-linux for xscale. I've configured to use software floating point. Linking of
Is armeb the same like arm-linux-uclibcgnueabi-gcc (i.e. EABI with softfloat in my exact case, gcc-4.2.1 uClibc-0.9.29)?
Konsti
Signature · 13 lines
synertronixx GmbH Dipl.-Ing. (FH) Konstantin Kletschke Vahrenwalder Str. 7 30165 Hannover Tel. : 0511 / 3574 - 661 Fax : 0511 / 93 57 - 679 E-mail : kletschke at synertronixx.de Internet: http://www.synertronixx.de Vertretungsberechtigte Gesch?ftsf?hrer: Marc-Oliver Borck, Dr. Matthias Blaschke Registergericht: Amtsgericht Hannover Registernummer: HRB 59670 USt-ID: DE 216 559 901
Quoted 2 lines · Konstantin Kletschke
Is armeb the same like arm-linux-uclibcgnueabi-gcc (i.e. EABI with softfloat in my exact case, gcc-4.2.1 uClibc-0.9.29)?
armeb = arm big endian. I'm using OABI btw; does that matter? Would using EABI resolve those floating point routine linker errors? EABI is about the kernel interface, so my guess was no.
Micha
Am 2007-09-06 18:06 +0200 schrieb Micha Nelissen:
Quoted 1 line
armeb = arm big endian. I'm using OABI btw; does that matter? Would
Ooops, sorry. Thought the issue was about softfloat+EABI.
Konsti
Signature · 13 lines
synertronixx GmbH Dipl.-Ing. (FH) Konstantin Kletschke Vahrenwalder Str. 7 30165 Hannover Tel. : 0511 / 3574 - 661 Fax : 0511 / 93 57 - 679 E-mail : kletschke at synertronixx.de Internet: http://www.synertronixx.de Vertretungsberechtigte Gesch?ftsf?hrer: Marc-Oliver Borck, Dr. Matthias Blaschke Registergericht: Amtsgericht Hannover Registernummer: HRB 59670 USt-ID: DE 216 559 901
Micha, All,
Quoted 4 lines · Micha Nelissen
I am using buildroot SVN, gcc 4.2.1, uclibc 0.9.29, armeb-linux for xscale. I've configured to use software floating point. Linking of uclibc fails, it cannot find some functions which seem software floating point related e.g.
__floatsidf.
Try attached patch.
Regards,
Yann E. MORIN.
Signature · 13 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^ | | --==< ?_? >==-- ?------------.-------: X AGAINST | /e\ There is no | | http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL | """ conspiracy. | ?------------------------------?-------?------------------?--------------------? -------------- next part -------------- A non-text attachment was scrubbed... Name: 801-softfloat-fix.patch Type: text/x-diff Size: 2762 bytes Desc: not available Url : http://busybox.net/lists/buildroot/attachments/20070906/cd724734/attachment-0001.bin
Quoted 3 lines · Yann E. MORIN
Micha, All,
Try attached patch.
With this patch I can indeed build a toolchain + root. But it doesn't boot properly, it hangs after freeing init memory. Tried /bin/echo hello from /etc/inittab, but no joy.
BTW, with gcc 3.3, /etc/init.d/rcS isn't executed, anyone seen this ? BTW2, with gcc 3.3, ifup crashes after forking (illegal instruction). BTW3, is there any script so that udhcpc writes /etc/resolv.conf and configures the interface it got an IP for ? Interface eth0 e.g. is left unconfigured for me.
Micha