* [U-Boot-Users] An old question, but still have no idea about how to deal with
@ 2007-10-24 10:56 Franklin
2007-10-24 11:02 ` Michal Simek
2007-10-24 14:38 ` [U-Boot-Users] 答复: [U-Boot-Users] An old question,but " longbow
0 siblings, 2 replies; 3+ messages in thread
From: Franklin @ 2007-10-24 10:56 UTC (permalink / raw)
To: u-boot
Hi list,
Now I'm building u-boot 1.1.4 on arm platform, using gcc-4.1.1 with eabi.
When linking uboot it gave me the following error:
/opt/arm/target/lib/gcc/arm-none-linux-gnueabi/4.1.1/libgcc.a(_dvmd_lnx.o): In
function `__div0':
../../gcc-4.1.1/gcc/config/arm/lib1funcs.asm:1000: undefined reference to
`raise'
make: *** [u-boot] Error 1
I tried to search on internet and found that this is an old problem. However,
someone said that this is an uboot's bug, while others said that this is the
toolchain's problem. Some guys suggested that we could add a tiny function.
However, when I tried to add the following code into u-boot:
int raise(int signal)
{
return 0;
}
I put it into common/raise.c (created by myself)
but I got this error:
raise.c:3: error?expected ?)? before ?(? token
Could anyone please give me some hints about how to deal with it? If I had to
add a tiny substitude function, where should I put it?
Thanks for your help.
Regards,
Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20071024/2e0be1f8/attachment.pgp
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] An old question, but still have no idea about how to deal with
2007-10-24 10:56 [U-Boot-Users] An old question, but still have no idea about how to deal with Franklin
@ 2007-10-24 11:02 ` Michal Simek
2007-10-24 14:38 ` [U-Boot-Users] 答复: [U-Boot-Users] An old question,but " longbow
1 sibling, 0 replies; 3+ messages in thread
From: Michal Simek @ 2007-10-24 11:02 UTC (permalink / raw)
To: u-boot
>Now I'm building u-boot 1.1.4 on arm platform, using gcc-4.1.1 with eabi.
First of all you change u-boot to the newest version http://www.denx.de/cgi-bin/gitweb.cgi.
U-Boot 1.1.4 is really old.
Michal Simek
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] 答复: [U-Boot-Users] An old question,but still have no idea about how to deal with
2007-10-24 10:56 [U-Boot-Users] An old question, but still have no idea about how to deal with Franklin
2007-10-24 11:02 ` Michal Simek
@ 2007-10-24 14:38 ` longbow
1 sibling, 0 replies; 3+ messages in thread
From: longbow @ 2007-10-24 14:38 UTC (permalink / raw)
To: u-boot
Hi
I have the same problem when build u-boot-1.2.0 using gcc-4.2.0
It's gcc's bug or u-boot's bug??
How to solve ?
/misc/arm/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclib
cgnueabi/4.2.0/libgcc.a(_dvmd_lnx.o): In function `__div0':
/misc/arm/buildroot/toolchain_build_arm/gcc-4.2.0/gcc/config/arm/lib1funcs.a
sm:1000: undefined reference to `raise'
/misc/arm/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclib
cgnueabi/4.2.0/libgcc.a(_udivdi3.o):(.ARM.exidx+0x0): undefined reference to
`__aeabi_unwind_cpp_pr0'
Longbow
-----????-----
???: u-boot-users-bounces at lists.sourceforge.net
[mailto:u-boot-users-bounces at lists.sourceforge.net] ?? Franklin
????: 2007?10?24? 18:57
???: u-boot-users at lists.sourceforge.net
??: [U-Boot-Users] An old question,but still have no idea about how to
deal with
Hi list,
Now I'm building u-boot 1.1.4 on arm platform, using gcc-4.1.1 with eabi.
When linking uboot it gave me the following error:
/opt/arm/target/lib/gcc/arm-none-linux-gnueabi/4.1.1/libgcc.a(_dvmd_lnx.o):
In
function `__div0':
../../gcc-4.1.1/gcc/config/arm/lib1funcs.asm:1000: undefined reference to
`raise'
make: *** [u-boot] Error 1
I tried to search on internet and found that this is an old problem.
However,
someone said that this is an uboot's bug, while others said that this is the
toolchain's problem. Some guys suggested that we could add a tiny function.
However, when I tried to add the following code into u-boot:
int raise(int signal)
{
return 0;
}
I put it into common/raise.c (created by myself)
but I got this error:
raise.c:3: error?expected ?)? before ?(? token
Could anyone please give me some hints about how to deal with it? If I had
to
add a tiny substitude function, where should I put it?
Thanks for your help.
Regards,
Franklin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-24 14:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 10:56 [U-Boot-Users] An old question, but still have no idea about how to deal with Franklin
2007-10-24 11:02 ` Michal Simek
2007-10-24 14:38 ` [U-Boot-Users] 答复: [U-Boot-Users] An old question,but " longbow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox