From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Building with gcc 4.6.4
Date: Tue, 28 Jan 2014 15:06:11 +0000 [thread overview]
Message-ID: <20140128150611.GL15937@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <21223.49366.479579.145000@gargle.gargle.HOWL>
On Tue, Jan 28, 2014 at 03:38:14PM +0100, Mikael Pettersson wrote:
> Russell King - ARM Linux writes:
> > So, yesterday I built gcc 4.6.4 (mainline) for the autobuilder, and the
> > result is that every build failed with the same error:
> >
> > scripts/mod/empty.c:1:0: error: FPA is unsupported in the AAPCS
> >
> > This seems to be because linux-elf targets default to fpe3 in mainline
> > gcc, but specifying -mabi=aapcs-linux switches us into EABI mode where
> > the compiler errors out with the default FPU.
> >
> > Hence, I believe we need this to ensure that a compatible VFP is
> > selected. One can argue that building EABI ARMv4 with VFP is silly,
> > but it seems that's what the gcc folk have decided (rightly or
> > wrongly.)
> >
> > Maybe this is a bug in mainline GCC - which begs the question why
> > (presumably, since no one has picked this up) Linaro's toolchain
> > has fixes but mainline GCC doesn't.
> >
> > Comments?
>
> Perhaps because most ARM EABI toolchains default to soft-float,
> and the hardfloat ones usually select v6 or v7 + vfp-d16 or neon
> as their defaults, so the archaic FPA is never the default.
soft-float has nothing to do with it, because the kernel always passes
-msoft-float.
> Or are you using an OABI toolchain to compile an EABI kernel?
... which should make no difference what so ever since the kernel should
be passing the appropriate options. That's why we pass -mabi=aapcs-linux
to the kernel.
--
FTTC broadband for 0.8mile line: 5.8Mbps down 500kbps up. Estimation
in database were 13.1 to 19Mbit for a good line, about 7.5+ for a bad.
Estimate before purchase was "up to 13.2Mbit".
next prev parent reply other threads:[~2014-01-28 15:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-28 12:01 Building with gcc 4.6.4 Russell King - ARM Linux
2014-01-28 14:38 ` Mikael Pettersson
2014-01-28 15:06 ` Russell King - ARM Linux [this message]
2014-01-29 12:34 ` Mikael Pettersson
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=20140128150611.GL15937@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).