[PATCH] ARM: fix build error with GCC 4.5.0

Mikael Pettersson mikpe at it.uu.se
Fri Nov 12 03:15:58 EST 2010


Tony Breeds writes:
 > On Fri, Nov 05, 2010 at 07:51:14PM +0100, Mikael Pettersson wrote:
 >  
 > > That's an OABI compiler. You want a compiler configured for
 > > 
 > > 	--target=arm-unknown-linux-gnueabi
 > > 
 > > and without that --enable-sjlj-exceptions as well.
 > > 
 > > OABI is super-legacy and essentially unsupported by current gcc.
 > 
 > The previous compiler was the results of configuring for arm-linux now I have:
 > 
 > $ ./buildall/cross.x86_64/gcc-4.4.5-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc -v
 > Using built-in specs.
 > Target: arm-unknown-linux-gnueabi
 > Configured with: /home/tony/buildall/src/gcc/configure --target=arm-unknown-linux-gnueabi --enable-targets=all --prefix=/home/tony/buildall/cross.x86_64/gcc-4.4.5-nolibc/arm-unknown-linux-gnueabi/ --enable-languages=c --with-newlib --without-headers --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.4.5 (GCC) 
 > 
 > Is that correct?

Drop --with-system-libunwind.  OABI was sjlj while EABI uses an ARM EABI
specific unwinder implemented in gcc.  This may or may not matter if you
only want to compile the kernel.

The other options should be ok, though I personally wouldn't pass
--disable-threads, --disable-decimal-float, or --disable-bootstrap.



More information about the linux-arm-kernel mailing list