link error with uclibc

loody miloody at gmail.com
Sun Oct 4 16:16:16 UTC 2009


dear all:
I cross-compile a standalone test program with toolchain build with uclibc.
and there are some errors as what I attach at the end of letter.
I search the uclibc source and I find the  there is no variable,
__nedf2, in _fpmaxtostr.c.
but why linker tell me he cannot find it?
should I link some other libraries before -lc for variable, __nedf2?
appreciate your help,
miloody

# mipsel-unknown-linux-uclibc-ld -T link.xn -o USBTestCode.elf -Map
USBTestCode.map --oformat elf32-tradlittlemips calloc.o cmdui.o main.o
memtst.o misc.o ntuart.o cpufunc.o Interrupt.o ntsys.o reset.o uart.o
controller.o Host20.o fat_time.o filectrl.o FileSystemComtrol.o
AP_Camera.o AP_HID.o  performance-fat.o performance-massstorage.o
FifoEPxCfg.o intr.o iso.o Pe_usb.o scsi.o -static -nostdlib
-L/root/x-tools/mipsel-unknown-linux-uclibc/mipsel-unknown-linux-uclibc/sys-root/lib
-L/root/x-tools/mipsel-unknown-linux-uclibc/mipsel-unknown-linux-uclibc/sys-root/usr/lib
-lm -lc
/root/x-tools/mipsel-unknown-linux-uclibc/mipsel-unknown-linux-uclibc/sys-root/usr/lib/libc.a(_fpmaxtostr.os):
In function `_fpmaxtostr':
_fpmaxtostr.c:(.text+0xd8): undefined reference to `__nedf2'
_fpmaxtostr.c:(.text+0xe4): undefined reference to `__nedf2'
_fpmaxtostr.c:(.text+0x118): undefined reference to `__eqdf2'
_fpmaxtostr.c:(.text+0x13c): undefined reference to `__divdf3'
_fpmaxtostr.c:(.text+0x160): undefined reference to `__ltdf2'
_fpmaxtostr.c:(.text+0x1ec): undefined reference to `__ltdf2'
_fpmaxtostr.c:(.text+0x22c): undefined reference to `__muldf3'
_fpmaxtostr.c:(.text+0x250): undefined reference to `__eqdf2'
_fpmaxtostr.c:(.text+0x378): undefined reference to `__ltdf2'
_fpmaxtostr.c:(.text+0x39c): undefined reference to `__muldf3'
_fpmaxtostr.c:(.text+0x3b0): undefined reference to `__divdf3'
_fpmaxtostr.c:(.text+0x3dc): undefined reference to `__ltdf2'
_fpmaxtostr.c:(.text+0x428): undefined reference to `__gedf2'
_fpmaxtostr.c:(.text+0x464): undefined reference to `__gedf2'
_fpmaxtostr.c:(.text+0x48c): undefined reference to `__divdf3'
_fpmaxtostr.c:(.text+0x4c0): undefined reference to `__fixunsdfsi'
_fpmaxtostr.c:(.text+0x4d8): undefined reference to `__floatsidf'
_fpmaxtostr.c:(.text+0x4f4): undefined reference to `__adddf3'
_fpmaxtostr.c:(.text+0x50c): undefined reference to `__subdf3'
_fpmaxtostr.c:(.text+0x530): undefined reference to `__muldf3'
_fpmaxtostr.c:(.text+0x598): undefined reference to `__fixunsdfsi'
/root/x-tools/mipsel-unknown-linux-uclibc/mipsel-unknown-linux-uclibc/sys-root/usr/lib/libc.a(__psfs_do_numeric.os):
In function `__psfs_do_numeric':
__psfs_do_numeric.c:(.text+0x644): undefined reference to `__truncdfsf2'
/root/x-tools/mipsel-unknown-linux-uclibc/mipsel-unknown-linux-uclibc/sys-root/usr/lib/libc.a(__strtofpmax.os):
In function `__strtofpmax':
__strtofpmax.c:(.text+0x150): undefined reference to `__floatsidf'
__strtofpmax.c:(.text+0x178): undefined reference to `__muldf3'
__strtofpmax.c:(.text+0x19c): undefined reference to `__adddf3'
__strtofpmax.c:(.text+0x234): undefined reference to `__floatsidf'
__strtofpmax.c:(.text+0x24c): undefined reference to `__divdf3'
__strtofpmax.c:(.text+0x34c): undefined reference to `__eqdf2'
__strtofpmax.c:(.text+0x3d8): undefined reference to `__eqdf2'
__strtofpmax.c:(.text+0x410): undefined reference to `__divdf3'
__strtofpmax.c:(.text+0x420): undefined reference to `__muldf3'
__strtofpmax.c:(.text+0x468): undefined reference to `__muldf3'
__strtofpmax.c:(.text+0x494): undefined reference to `__muldf3'
__strtofpmax.c:(.text+0x4b8): undefined reference to `__eqdf2'


More information about the uClibc mailing list