Skip to contentSkip to conversation

Build errors u-boot-v2 iMX27

U-Boot Bill Cook 2 participants 4 messages Apr 20, 2009 – Apr 22, 2009

lore
Share & tools
lore

Bill Cook

author
#0 lore raw

Dear ML,

I'm trying to build u-boot-v2 for an iMX27 based board. I'm getting a HW/SW floating point mismatch error and hope someone will point me to a solution. Building with:
make ARCH=arm CROSS_COMPILE=arm-eabi-
It works along fine until I get an error on each of these files:
arch/arm/lib/_ashldi3.o
arch/arm/lib/_ashrdi3.o
arch/arm/lib/_divsi3.o
arch/arm/lib/_modsi3.o
arch/arm/lib/_udivsi3.o
arch/arm/lib/_umodsi3.o
arch/arm/lib/_lshrdi3.o
arch/arm/lib/findbit.o
arch/arm/lib/io-readsb.o
arch/arm/lib/io-readsw-armv4.o
arch/arm/lib/io-writesb.o arch/arm/lib/io-writesw-armv4.o

Error is:

arm-eabi-ld: ERROR: arch/arm/lib/_ashldi3.o uses hardware FP, whereas arch/arm/lib/built-in.o uses software FP
arm-eabi-ld: failed to merge target specific data of file arch/arm/lib/_ashldi3.o

The source files are assembly, any C files have the -msoft-float compile option. What gives?

Regards,
Bill Cook
cook at isgchips.com

#1 lore raw

Hi Bill,

Quoted 22 lines · Bill Cook

Dear ML,

I'm trying to build u-boot-v2 for an iMX27 based board. I'm getting a HW/SW floating point mismatch error and hope someone will point me to a solution. Building with:
make ARCH=arm CROSS_COMPILE=arm-eabi-
It works along fine until I get an error on each of these files:
arch/arm/lib/_ashldi3.o
arch/arm/lib/_ashrdi3.o
arch/arm/lib/_divsi3.o
arch/arm/lib/_modsi3.o
arch/arm/lib/_udivsi3.o
arch/arm/lib/_umodsi3.o
arch/arm/lib/_lshrdi3.o
arch/arm/lib/findbit.o
arch/arm/lib/io-readsb.o
arch/arm/lib/io-readsw-armv4.o
arch/arm/lib/io-writesb.o arch/arm/lib/io-writesw-armv4.o

Error is:

Quoted 8 lines

arm-eabi-ld: ERROR: arch/arm/lib/_ashldi3.o uses hardware FP, whereas arch/arm/lib/built-in.o uses software FP
arm-eabi-ld: failed to merge target specific data of file arch/arm/lib/_ashldi3.o

The source files are assembly, any C files have the -msoft-float compile option. What gives?

All our toolchains produce soft float by default, so this does not show up here. U-Boot does not use floating point, so I think we do not have to care what the compiler produces. Does it help to remove the -msoft-float from arch/arm/Makefile?

Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
author
#2 lore raw
Quoted 17 lines

-----Original Message-----
From: saschahauer at web.de [mailto:saschahauer at web.de]On Behalf Of Sascha Hauer
Sent: Monday, April 20, 2009 12:57 PM
To: Bill Cook
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] Build errors u-boot-v2 iMX27

Hi Bill,

Quoted 5 lines · Bill Cook

Dear ML,

I'm trying to build u-boot-v2 for an iMX27 based board. I'm getting a HW/SW floating point mismatch error and hope someone will point me to a solution. Building with:

<snip>

Quoted 8 lines
Quoted 8 lines

Error is:

arm-eabi-ld: ERROR: arch/arm/lib/_ashldi3.o uses hardware FP, whereas arch/arm/lib/built-in.o uses software FP
arm-eabi-ld: failed to merge target specific data of file arch/arm/lib/_ashldi3.o

Quoted 9 lines
Quoted 1 line

The source files are assembly, any C files have the -msoft-float

compile option.

Quoted 1 line

What gives?

All our toolchains produce soft float by default, so this does not show up here. U-Boot does not use floating point, so I think we do not have to care what the compiler produces. Does it help to remove the -msoft-float from arch/arm/Makefile?

Yes, this did the trick, I knew it had to be something simple... Thanks.

Bill

Quoted 175 lines

Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#3 lore raw
Quoted 30 lines · Bill Cook
Quoted 17 lines

-----Original Message-----
From: saschahauer at web.de [mailto:saschahauer at web.de]On Behalf Of Sascha Hauer
Sent: Monday, April 20, 2009 12:57 PM
To: Bill Cook
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] Build errors u-boot-v2 iMX27

Hi Bill,

Quoted 5 lines · Bill Cook

Dear ML,

I'm trying to build u-boot-v2 for an iMX27 based board. I'm getting a HW/SW floating point mismatch error and hope someone will point me to a solution. Building with:

<snip>

Quoted 12 lines
Quoted 9 lines

Error is:

arm-eabi-ld: ERROR: arch/arm/lib/_ashldi3.o uses hardware FP, whereas arch/arm/lib/built-in.o uses software FP
arm-eabi-ld: failed to merge target specific data of file arch/arm/lib/_ashldi3.o

The source files are assembly, any C files have the -msoft-float

compile option.

Quoted 1 line

What gives?

Quoted 8 lines
Quoted 5 lines

All our toolchains produce soft float by default, so this does not show up here. U-Boot does not use floating point, so I think we do not have to care what the compiler produces. Does it help to remove the -msoft-float from arch/arm/Makefile?

Yes, this did the trick, I knew it had to be something simple... Thanks.

Ok, I removed -msoft-float.

Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |