[Buildroot] undefined reference to `raise' when linking with libgcc
dreveny at gmail.com
Mon Apr 20 15:54:55 UTC 2009
I'm a bit of a noob to the list so I hope I'm not re-hashing issues I
keep encountering (I couldn't seem to find any recent mention of
them). Perhaps someone can help. I've been trying to get together an
arm cross compiler. I used to use Dan Kegel's crosstool, which was
nice, but it's quite outdated now. I want to build with newer tools
and features and am trying to get a kernel working eventually.
First, I thought I'd try to build for a generic ARM OABI, since I
believe it's more backwards compatible. From what I understand, the
EABI is much better. I'd like to use that eventually, but may need to
rebuild everything in order to be compatible (and have a compatible
Buildroot worked great! However, upon compiling an old project that
had once worked with the older crosstool generated compiler, I keep
encountering the following link error, when linking with libgcc:
In function `__div0':
undefined reference to `raise'
I have found some references in the buildroot mail list archives from
2007 to a patch that was needed (for gcc-4.2.0), but it doesn't appear
that this was ever corrected permanently
>From what I understand, uClibc doesn't supply the 'raise' function and
triggering it needs to be avoided. Now, I'm not sure if this is
strictly a buldroot problem or a uClibc issue, since buildroot does
apply some patches to the subprojects. The pach seemed to avoid a
possible divide by 0 (even though the divisor is a constant) which
would otherwise trigger the linking of __div0 and raise.
I could fix it on my copy, but it would seem like this would come back
with the next release.
Is this something that could be fixed in buildroot or uClibc or is it
too architecture specific? If so, should a bug be raised against one
of these projects?
More information about the buildroot