Building with gcc 4.6.4

Mikael Pettersson mikpelinux at gmail.com
Tue Jan 28 09:38:14 EST 2014


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.

Or are you using an OABI toolchain to compile an EABI kernel?

/Mikael



More information about the linux-arm-kernel mailing list