U-boot 1.1.4 build error
Hi,
I have used crosstool-0.42 to build tool chain and it builds the toolchain without any problems
and I can even compile the kernel Image with the same cross-compiler perfectly
The probelm I am facing is that when I use the same toolchain to compile U-boot 1.1.4, I get the following error
/opt/crosstool/gcc-4.1.0-glibc-2.4/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.1.0/libgcc.a(_dvmd_lnx.o): In function `__div0':/home/anoop/Tool_chain/crosstool-0.42/build/arm-926ejs-linux-gnueabi/gcc-4.1.0-glibc-2.4/gcc-4.1.0/gcc/config/arm/lib1funcs.asm:1000: undefined reference to `raise'
make: *** [u-boot] Error 1
I found that raise is defined in raise.c which is under the following path /home/anoop/Tool_chain/crosstool-0.42/build/arm-926ejs-linux-gnueabi/gcc-4.1.0-glibc-2.4/glibc-2.4/signal/raise.c
and its contents are as follows
#include <signal.h>
#include <errno.h>
/* Raise the signal SIG. */
int
raise (sig)
int sig;
{
__set_errno (ENOSYS);
return -1;
}weak_alias (raise, gsignal)
stub_warning (raise)stub_warning (gsignal)
#include <stub-tag.h>
How can I solve this issue? Is there any patch for glibc-2.4 , applying which the issue can be solved?
Thanks in advance
Anoop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070504/95dead11/attachment.htm
[Buildroot] U-boot 1.1.4 build error - Search First !
Quoted 6 lines · Anoop Krishnan
Hi,
Quoted 10 lines
I have used crosstool-0.42 to build tool chain and it builds the toolchain without any problems
and I can even compile the kernel Image with the
same cross-compiler perfectlyThe probelm I am facing is that when I use the same toolchain to compile U-boot 1.1.4, I getthe following error
/opt/crosstool/gcc-4.1.0-glibc-2.4/arm-926ejs-linux-gnueabi/ lib/gcc/arm-926ejs-linux-gnueabi/4.1.0/libgcc.a(_dvmd_lnx.o):
Quoted 2 lines
In function
`__div0':/home/anoop/Tool_chain/crosstool-0.42/build/ arm-926ejs-linux-gnueabi/gcc-4.1.0-glibc-2.4/gcc-4.1.0/ gcc/config/arm/lib1funcs.asm:1000:
Quoted 5 lines
undefined reference to `raise'make: *** [u-boot] Error 1
I found that raise is defined in
raise.cwhich is
under the following
path/home/anoop/Tool_chain/crosstool-0.42/build/ arm-926ejs-linux-gnueabi/gcc-4.1.0-glibc-2.4/glibc-2.4/signal/raise.c and
Quoted 13 lines
its contents are as follows
#include <signal.h>#include
<errno.h>/* Raise the signal SIG. */intraise
(sig) int sig;{__set_errno
(ENOSYS); return -1;}weak_alias (raise, gsignal)
stub_warning(raise)stub_warning
(gsignal)#include <stub-tag.h>
Quoted 5 lines
How can I solve this issue? Is there any patch for glibc-2.4 , applying which the issue can be solved?
Thanks in advance
Anoop
There's a thread here:
http://thread.gmane.org/gmane.comp.lib.uclibc.buildroot/248/focus=252
found by a Search on "undefined reference to raise"
Search the newsgroup first !!!!
Regards,
MikeW