[PATCH] ARM: fix build error with GCC 4.5.0
Måns Rullgård
mans at mansr.com
Thu Nov 4 20:36:11 EDT 2010
Mikael Pettersson <mikpe at it.uu.se> writes:
> Måns Rullgård writes:
> > Rabin Vincent <rabin at rab.in> writes:
> >
> > > Fix the following error which occurs when building an ARM kernel with
> > > GCC 4.5.0:
> > >
> > > kernel/bounds.c:1:0: error: FPA is unsupported in the AAPCS
> > >
> > > -CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork
> > > +CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp
> >
> > The real question is why something is trying to use floating-point.
> > It shouldn't.
>
> Indeed. I suspect an improperly patched or configured gcc-4.5.0,
> or broken kernel sources. Especially considering that the kernel
> passes -msoft-float to gcc (see above).
>
> I know gcc-4.5.0 configured for arm-linux-gnueabi built working EABI
> kernels a few months ago.
FWIW, GCC 4.5.1 built a working ARM kernel for me yesterday.
--
Måns Rullgård
mans at mansr.com
More information about the linux-arm-kernel
mailing list