* [U-Boot-Users] compiling arm-boot failed
@ 2004-08-17 15:54 Rongjun Lu
2004-08-17 17:59 ` Robert Schwebel
2004-08-17 18:48 ` himba
0 siblings, 2 replies; 3+ messages in thread
From: Rongjun Lu @ 2004-08-17 15:54 UTC (permalink / raw)
To: u-boot
when I compiled arm-boot with the toolchains from SNAPGEAR(arm-linux-tools-20031127), following errors occured:
----------------------------------------------------
arm-linux-ld -nostdlib -Bstatic -T board/samsung/armboot.lds -Ttext 0x0c170000 cpu/arm920t/start.o common/libcommon.a fs/jffs2/libjffs2.a net/libnet.a disk/libdisk.a board/samsung/libsamsung.a cpu/arm920t/libarm920t.a drivers/libdrivers.a common/libcommon.a //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a -Map armboot.map -o armboot
arm-linux-ld: ERROR: //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o) uses hardware FP, whereas armboot uses software FP
File in wrong format: failed to merge target specific data of file //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o)
arm-linux-ld: ERROR: //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_umodsi3.o) uses hardware FP, whereas armboot uses software FP
File in wrong format: failed to merge target specific data of file //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_umodsi3.o)
arm-linux-ld: ERROR: //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_dvmd_lnx.o) uses hardware FP, whereas armboot uses software FP
File in wrong format: failed to merge target specific data of file //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_dvmd_lnx.o)
----------------------------------------------------
who can help me?Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] compiling arm-boot failed
2004-08-17 15:54 [U-Boot-Users] compiling arm-boot failed Rongjun Lu
@ 2004-08-17 17:59 ` Robert Schwebel
2004-08-17 18:48 ` himba
1 sibling, 0 replies; 3+ messages in thread
From: Robert Schwebel @ 2004-08-17 17:59 UTC (permalink / raw)
To: u-boot
On Tue, Aug 17, 2004 at 05:54:56PM +0200, Rongjun Lu wrote:
> when I compiled arm-boot with the toolchains from SNAPGEAR(arm-linux-tools-20031127), following errors occured:
> ----------------------------------------------------
> arm-linux-ld -nostdlib -Bstatic -T board/samsung/armboot.lds -Ttext 0x0c170000 cpu/arm920t/start.o common/libcommon.a fs/jffs2/libjffs2.a net/libnet.a disk/libdisk.a board/samsung/libsamsung.a cpu/arm920t/libarm920t.a drivers/libdrivers.a common/libcommon.a //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a -Map armboot.map -o armboot
> arm-linux-ld: ERROR: //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o) uses hardware FP, whereas armboot uses software FP
> File in wrong format: failed to merge target specific data of file //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o)
> arm-linux-ld: ERROR: //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_umodsi3.o) uses hardware FP, whereas armboot uses software FP
> File in wrong format: failed to merge target specific data of file //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_umodsi3.o)
> arm-linux-ld: ERROR: //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_dvmd_lnx.o) uses hardware FP, whereas armboot uses software FP
> File in wrong format: failed to merge target specific data of file //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_dvmd_lnx.o)
Your libgcc.a uses hardware floating point, whereas your u-boot (why is
it called armboot here...?) uses software FP.
Software floating point is a bad construction site in gcc toolchains;
you should use a toolchain which uses software FP by default. Dan
Kegel's crosstool generates nice ones that are known to work.
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hornemannstra?e 12, 31137 Hildesheim, Germany
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] compiling arm-boot failed
2004-08-17 15:54 [U-Boot-Users] compiling arm-boot failed Rongjun Lu
2004-08-17 17:59 ` Robert Schwebel
@ 2004-08-17 18:48 ` himba
1 sibling, 0 replies; 3+ messages in thread
From: himba @ 2004-08-17 18:48 UTC (permalink / raw)
To: u-boot
Rongjun Lu wrote:
> when I compiled arm-boot with the toolchains from SNAPGEAR(arm-linux-tools-20031127), following errors occured:
> ----------------------------------------------------
> arm-linux-ld -nostdlib -Bstatic -T board/samsung/armboot.lds -Ttext 0x0c170000 cpu/arm920t/start.o common/libcommon.a fs/jffs2/libjffs2.a net/libnet.a disk/libdisk.a board/samsung/libsamsung.a cpu/arm920t/libarm920t.a drivers/libdrivers.a common/libcommon.a //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a -Map armboot.map -o armboot
> arm-linux-ld: ERROR: //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o) uses hardware FP, whereas armboot uses software FP
> File in wrong format: failed to merge target specific data of file //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o)
> arm-linux-ld: ERROR: //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_umodsi3.o) uses hardware FP, whereas armboot uses software FP
> File in wrong format: failed to merge target specific data of file //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_umodsi3.o)
> arm-linux-ld: ERROR: //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_dvmd_lnx.o) uses hardware FP, whereas armboot uses software FP
> File in wrong format: failed to merge target specific data of file //home/lurj/board_tms5471/build-tools/usr/local/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_dvmd_lnx.o)
>
As the ERROR suggests your toolchain is using hardware FP, but ARM CPU
is lacking that. If you are building toolchain yourself be sure to use
--with-float=soft at gcc configure. You would be probably better off
using prebuilt and tested toolchain, or use somekind of tool for
creating cross compiled toolchain instead.
regards,
himba
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-17 18:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-17 15:54 [U-Boot-Users] compiling arm-boot failed Rongjun Lu
2004-08-17 17:59 ` Robert Schwebel
2004-08-17 18:48 ` himba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox