[U-Boot] undefined reference to `abort'

Shadid, Bill wshadid at neptec.com
Mon Dec 5 17:43:09 CET 2011


This is a follow-up to my issue, re:

/opt/embedded/tools/usr/bin/../lib/gcc/powerpc-linux/4.2.2/m8540/libgcc.a(divsf3.o): In function `__divsf3':
/opt/eldk/build/ppc-2008-04-01/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/powerpc-linux/gcc-4.2.2/gcc/config/soft-fp/divsf3.c:44: undefined reference to `abort'
/opt/embedded/tools/usr/bin/../lib/gcc/powerpc-linux/4.2.2/m8540/libgcc.a(mulsf3.o): In function `__mulsf3':
/opt/eldk/build/ppc-2008-04-01/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/powerpc-linux/gcc-4.2.2/gcc/config/soft-fp/mulsf3.c:44: undefined reference to `abort'
/opt/embedded/tools/usr/bin/../lib/gcc/powerpc-linux/4.2.2/m8540/libgcc.a(divdf3.o): In function `__divdf3':
/opt/eldk/build/ppc-2008-04-01/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/powerpc-linux/gcc-4.2.2/gcc/config/soft-fp/divdf3.c:44: undefined reference to `abort'
/opt/embedded/tools/usr/bin/../lib/gcc/powerpc-linux/4.2.2/m8540/libgcc.a(muldf3.o): In function `__muldf3':
/opt/eldk/build/ppc-2008-04-01/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/powerpc-linux/gcc-4.2.2/gcc/config/soft-fp/muldf3.c:44: undefined reference to `abort'


It was suggested that I should migrate to a newer version of u-boot to resolve the issue.

I downloaded and compiled with u-boot-2011.03-rc and the compiler reported the same errors.
We thought that maybe the rc release was not the best choice so we tried the port with u-boot 1.3.1. and again, got the same compile errors.

I did a little more digging and found that anywhere that I perform a multiply or divide operation using a float variable, the code will compile as a muldf3 or divdf3 call. So, I'm guessing that the libgcc in ELDK4.2.2 differs from that in ELDK 4.0. Is there some option I need to add to the compile expression in the Makefile to satisfy the new libgcc-floating math functions?

Thank you in advance for your assistance,
Bill.




More information about the U-Boot mailing list