[PATCH] ARM: fix build error with GCC 4.5.0

Rabin Vincent rabin at rab.in
Fri Nov 5 10:53:58 EDT 2010


2010/11/5 Mikael Pettersson <mikpe at it.uu.se>:
> Rabin Vincent writes:
>  > 2010/11/5 Mikael Pettersson <mikpe at it.uu.se>:
>  > > 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.
>  >
>  > The kernel sources are clean Linus' tree, so I guess it must be the
>  > compiler configuration then.  Indeed, running the above mentioned cross
>  > compiler with -msoft-float -mabi=aapcs-linux even on an empty source
>  > file yields the same error.  I've cc'd Tony here who I believe builds
>  > these prebuilt compilers at http://kernel.org/pub/tools/crosstool/.
>
> How was that gcc configured? You can find out by running `arm-linux-gcc -v'.

$ arm-linux-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gcc
COLLECT_LTO_WRAPPER=[path
removed]/gcc-4.5.0-nolibc/arm-linux/bin/../libexec/gcc/arm-linux/4.5.0/lto-wrapper
Target: arm-linux
Configured with: /home/tony/buildall/src/gcc/configure
--target=arm-linux --enable-targets=all
--prefix=/opt/cross/gcc-4.5.0-nolibc/arm-linux/ --enable-languages=c
--with-newlib --without-headers --enable-sjlj-exceptions
--with-system-libunwind --disable-nls --disable-threads --disable-shared
--disable-libmudflap --disable-libssp --disable-libgomp
--disable-decimal-float --enable-checking=release
--with-mpfr=/home/tony/buildall/src/sys-x86_64
--with-gmp=/home/tony/buildall/src/sys-x86_64 --disable-bootstrap
Thread model: single
gcc version 4.5.0 (GCC)

-- 
Rabin



More information about the linux-arm-kernel mailing list