From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv3 08/14] configs: use new EABIhf option for beaglebone_defconfig
Date: Tue, 16 Jul 2013 15:32:58 +0200 [thread overview]
Message-ID: <20130716153258.1f2c3201@skate> (raw)
In-Reply-To: <8761wa1w3b.fsf@dell.be.48ers.dk>
Dear Peter Korsgaard,
On Tue, 16 Jul 2013 15:19:04 +0200, Peter Korsgaard wrote:
> Did you test build this? I had a beaglebone derived config (but with
> latest linaro), and u-boot failed to build with:
Yes, I tried beaglebone_defconfig, which uses an internal toolchain...
which would not exhibit this problem.
> /home/peko/source/buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc -DDO_DEPS_ONLY \
> -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -I/home/peko/source/buildroot/output/build/uboot-2013.04/include -fno-builtin -ffreestanding -nostdinc -isystem /home/peko/source/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes \
> -o arch/arm/cpu/armv7/am33xx/asm-offsets.s arch/arm/cpu/armv7/am33xx/asm-offsets.c -c -S; \
> else \
> touch arch/arm/cpu/armv7/am33xx/asm-offsets.s; \
> fi
> arm-linux-gnueabihf-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together
> make[1]: *** [lib/asm-offsets.s] Error 1
>
> Because of the hard/soft float mixup. It might not happen with the
> internal toolchain as we're not forcing -mfloat-abi=hard on the command
> line, but I haven't tried yet.
Unfortunately, I'm not sure how to fix this particular problem. It's
gcc that is too stupid to understand that -msoft-float appearing in the
command line after -mfloat-abi=hard should take precedence over
-mfloat-abi=hard. I believe we already had this case in the past, maybe
not specifically with those options, but with other options.
One solution I see to this is not very nice:
if (gcc command line contains -msoft-float) {
do not pass -mfloat-abi and -mfpu arguments
}
The other solution is to simply not pass -mfloat-abi=hard, assuming the
toolchain would by default generate such binaries, which should be the
case because EABI and EABIhf are not compatible. However, we should
still pass -mfloat-abi=soft/softfp as needed.
That makes me think that I should maybe add a check that ensures that
the ABI selection (EABI/EABIhf) matches the one provided by the
external toolchain (which is useful when custom external toolchains are
used).
Thoughts?
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2013-07-16 13:32 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-16 8:03 [Buildroot] [PATCHv3 00/14] ARM floating point improvements, EABIhf and Thumb2 support Thomas Petazzoni
2013-07-16 8:03 ` [Buildroot] [PATCHv3 01/14] arch: introduce BR2_GCC_TARGET_{FPU, FLOAT_ABI} Thomas Petazzoni
2013-07-16 11:48 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 02/14] arch: Refactor BR2_SOFT_FLOAT into per-architecture options Thomas Petazzoni
2013-07-16 11:53 ` Peter Korsgaard
2013-07-16 12:12 ` Thomas Petazzoni
2013-07-16 12:34 ` Peter Korsgaard
2013-07-16 13:12 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 03/14] arch: improve ARM floating point support and add support for EABIhf Thomas Petazzoni
2013-07-16 13:12 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 04/14] binutils: exclude binutils versions that don't support EABIhf Thomas Petazzoni
2013-07-16 13:12 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 05/14] gcc: take into account ARM floating point capabilities Thomas Petazzoni
2013-07-16 13:13 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 06/14] toolchain: remove the old BR2_VFP_FLOAT option Thomas Petazzoni
2013-07-16 13:15 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 07/14] configs: update defconfigs after VFP option changes Thomas Petazzoni
2013-07-16 13:16 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 08/14] configs: use new EABIhf option for beaglebone_defconfig Thomas Petazzoni
2013-07-16 13:19 ` Peter Korsgaard
2013-07-16 13:32 ` Thomas Petazzoni [this message]
2013-07-16 13:39 ` Peter Korsgaard
2013-07-16 13:47 ` Thomas Petazzoni
2013-07-16 15:06 ` Spenser Gilliland
2013-07-16 15:23 ` Thomas Petazzoni
2013-07-16 15:31 ` Peter Korsgaard
2013-07-16 13:39 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 09/14] toolchain-external: update config options after EABIhf introduction Thomas Petazzoni
2013-07-16 13:21 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 10/14] gcc: create symbolic link to ld-linux in EABIhf/gcc 4.7/eglibc Thomas Petazzoni
2013-07-16 13:23 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 11/14] arch/arm: add support for Thumb2 Thomas Petazzoni
2013-07-16 13:29 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 12/14] uclibc: use numbered patches for 0.9.33.2 Thomas Petazzoni
2013-07-16 13:31 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 13/14] uclibc: add Thumb2 fixes Thomas Petazzoni
2013-07-16 13:32 ` Peter Korsgaard
2013-07-16 8:03 ` [Buildroot] [PATCHv3 14/14] arch: use tabs instead of spaces in Config.in files Thomas Petazzoni
2013-07-16 13:32 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130716153258.1f2c3201@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox