[U-Boot-Users] [ARM] Compiling U-Boot with the CodeSourcery ARM toolchain - undefined reference to 'raise'

Peter Pearse peter.pearse at arm.com
Fri Jan 18 10:37:15 CET 2008


FYI

The list arm-gnu at codesourcery.com has a thread starting:

"
I tried 2007Q3 to compile u-boot for arm926ejs, but i got the following
error "undefined reference to `raise". Is it correctable?
"

with the (probable) conclusion:

"
I don't think you need to go that far.
Uboot is a stand-alone application; raise() is an OS call on Linux that
raises a signal (in this case SIGFPE, with the subcode of division-by-zero).
What you need here is a suitable definition of __div0 for your division
function (__div0 is called if the user attempts to divide by zero).  In most
bare-metal apps like uboot, you simply need a definition of __div0 that
returns 0 rather than throwing an exception.
The implementation of __div0 that comes with the arm-none-eabi build of the
tools should do that.  Perhaps you should use that version of the compiler
for building uboot, not the arm-none-linux-gnueabi version.
"

Thanks to Richard Earnshaw mailto:rearnsha at arm.com

Regards

Peter







More information about the U-Boot mailing list