From: Martin Jansa <martin.jansa@gmail.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 5/6] gcc-cross: Pass EXTRA_OECONF_GCC_FLOAT to configure
Date: Thu, 7 May 2015 14:05:03 +0200 [thread overview]
Message-ID: <20150507120503.GC2400@jama> (raw)
In-Reply-To: <1430994286.8074.129.camel@linuxfoundation.org>
On Thu, May 07, 2015 at 11:24:46AM +0100, Richard Purdie wrote:
> On Thu, 2015-05-07 at 00:17 -0700, Khem Raj wrote:
> > > On May 6, 2015, at 11:53 PM, Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
> > > We do ship
> > > an environment file and in that file we have the options gcc needs to
> > > work, the sysroot, the other cflags and the float abi. Unless we go back
> > > to a setup of hardcoding the cflags into gcc and have a gcc per set of
> > > cflags, this isn't going to work since it solves part of the problem but
> > > not all of it.
> > >
> >
> > its also how the target libraries are compiled should match the ABI flags for target gcc
>
> Agreed, the other option is we have gcc pull the right config from the
> sysroot in question.
FWIW: when we were upgrading from Dylan to Dizzy one MACHINE with hf, we
noticed that few recipes weren't respecting CC variable and ended with
mixing soft and hard fp which was luckily detected in build time by
linker, so easy to fix.
Having at least QA check which will warn user that some compiled binary
has different float ABI then enabled in bitbake environment could be
useful. But I agree that it's recipe fault if it doesn't respect CC or
*FLAGS variables and we should fix it there instead of building
gcc-cross twice (if you have 2 arm MACHINEs with different float ABI).
Another option would be mfloat-abi poisoning if possible like we do with
default sysroot parameter, so that the usage of default value is
detected as soon as possible.
Regards,
>
> > > Our other alternative is to wrap gcc with a script (preferred in PATH)
> > > which ensures the right cflags are present. I'd obviously prefer not to
> > > do that but it is an option if we believe people can't cope with the
> > > environment script.
> > >
> >
> > Would solve the cross compile scenario but on-device scenario I am not sure
>
> On device is a completely different story. That gcc is target specific
> and *should* have the right flags set. That isn't what the patch in this
> thread is about though. On target gcc has always been target specific
> and will remain so.
>
> Cheers,
>
> Richard
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
next prev parent reply other threads:[~2015-05-07 12:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 7:04 [PATCH 0/6] gcc-5, aarch64 support for musl Khem Raj
2015-05-06 7:04 ` [PATCH 1/6] glibc: ignore for musl/uclibc but only for target recipes Khem Raj
2015-05-06 7:04 ` [PATCH 2/6] gcc: Add 5 recipes Khem Raj
2015-05-06 7:04 ` [PATCH 3/6] insane: Support aarch64 on musl Khem Raj
2015-05-06 7:04 ` [PATCH 4/6] gcc-4.9, gcc-5: Use variable SYSTEMLIBS_DIR instead of hardcoding it for aarch64 Khem Raj
2015-05-06 7:04 ` [PATCH 5/6] gcc-cross: Pass EXTRA_OECONF_GCC_FLOAT to configure Khem Raj
2015-05-06 8:11 ` Richard Purdie
2015-05-07 6:47 ` Khem Raj
2015-05-07 6:53 ` Richard Purdie
2015-05-07 7:17 ` Khem Raj
2015-05-07 10:24 ` Richard Purdie
2015-05-07 12:05 ` Martin Jansa [this message]
2015-05-06 7:04 ` [PATCH 6/6] libart-lgpl: Fix cross compiling Khem Raj
2015-05-06 10:59 ` Burton, Ross
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=20150507120503.GC2400@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.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