From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Kristof Robot <krirobo@gmail.com>
Cc: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] gcc-common: Only apply fpu settings to target gcc
Date: Mon, 27 Oct 2014 22:59:44 +0000 [thread overview]
Message-ID: <1414450784.7967.112.camel@ted> (raw)
In-Reply-To: <CAFgGSN7et4nS+yD39199rF+7mgHkfApmQ5E9M4u=Zvzw-gGSkg@mail.gmail.com>
On Mon, 2014-10-27 at 20:54 +0100, Kristof Robot wrote:
> Richard, all,
>
> After bisecting, I found that, since this patch, my toolchain is being
> built with soft floating point support, while it should be built with
> hard floating point support:
>
> (1) Compiling parent commit 74d8866814aec520822518cc4cb8a942f7069bf7
> [1] gives hard floating point support (good):
> $./build.good74d8/tmp-eglibc/sysroots/x86_64-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc
> -dM -E - < /dev/null | grep -i SOFTFP
> $
>
> (2) Compiling with this patch (commit
> ce1f3fd20d81545d6d5dfc68f86f9fddf8ac9bbf [2]) gives soft floating
> point support (bad):
> $ ./build.badce1f/tmp-eglibc/sysroots/x86_64-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc
> -dM -E - < /dev/null | grep -i SOFTFP
> #define __SOFTFP__ 1
> $
>
> I am using DEFAULTTUNE = "cortexa7hf-neon-vfpv4", resulting in
> following build configuration parameters:
> TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard vfpv4 cortexa7"
> TARGET_FPU = "vfp-vfpv4-neon"
When building in OE, we always pass in the correct flags to gcc to
ensure the correct thing gets built. The option you're changing with the
revert just changed the default used by gcc if no option is specified on
the commandline, so the change of the above test isn't a surprise.
What is the real world problem you're seeing due to this? Is it caused
by some compiler flags not being passed in somewhere?
Note that some changes in master-next start to make the problem much
more obvious by poisoning the default sysroot option to the compiler.
When such options get lost, the failures should then be much clearer.
Cheers,
Richard
next prev parent reply other threads:[~2014-10-27 22:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-01 15:40 [PATCH] gcc-common: Only apply fpu settings to target gcc Richard Purdie
2014-10-27 19:54 ` Kristof Robot
2014-10-27 22:59 ` Richard Purdie [this message]
2014-10-28 10:30 ` Kristof Robot
2014-10-28 11:31 ` Richard Purdie
[not found] ` <CAFgGSN7R=pnPNrakJLZqG4S7ENiHx5qiaRSudb--LR-CTpELXw@mail.gmail.com>
[not found] ` <CAFgGSN76NRcBXG6Z=72aek3GVX=e7VqVDQ4FhdxoJLPg1af2ig@mail.gmail.com>
[not found] ` <1414534100.7967.173.camel@ted>
[not found] ` <CAFgGSN5T9UDFuzCqU+vsOSVy+uiwhxUf-ApGAQ80QAdSBoUHdQ@mail.gmail.com>
[not found] ` <1414572117.7967.179.camel@ted>
2014-10-29 9:24 ` Kristof Robot
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=1414450784.7967.112.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=krirobo@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/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