mainline: misc.o uses VFP instructions error
Hello,
I'm trying to compile omap_generic_2420_defconfig in mainline and I get this error:
Kernel: arch/arm/boot/Image is ready
LD arch/arm/boot/compressed/vmlinux
arm-linux-ld: ERROR: arch/arm/boot/compressed/misc.o uses VFP
instructions, whereas arch/arm/boot/compressed/vmlinux does not
arm-linux-ld: failed to merge target specific data of file
arch/arm/boot/compressed/misc.o
Here are the exact commands I used:
make ARCH=arm CROSS_COMPILE=arm-linux- clean
make ARCH=arm CROSS_COMPILE=arm-linux- mrproper
make ARCH=arm CROSS_COMPILE=arm-linux- omap_generic_2420_defconfig make ARCH=arm CROSS_COMPILE=arm-linux- -j 2
The compiler and linker used:
$ arm-linux-gcc -v Using built-in specs. Target: arm-none-eabi Configured with: /scratch/julian/lite-respin/eabi/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-eabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-shared --with-newlib --with-pkgversion='Sourcery G++ Lite 2008q3-66' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-headers=yes --with-sysroot=/opt/codesourcery/arm-none-eabi --with-build-sysroot=/scratch/julian/lite-respin/eabi/install/arm-none-eabi --with-gmp=/scratch/julian/lite-respin/eabi/obj/host-libs-2008q3-66-arm-none-eabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/lite-respin/eabi/obj/host-libs-2008q3-66-arm-none-eabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/lite-respin/eabi/install/arm-none-eabi/bin --with-build-time-tools=/scratch/julian/lite-respin/eabi/install/arm-none-eabi/bin Thread model: single gcc version 4.3.2 (Sourcery G++ Lite 2008q3-66) $ arm-linux-ld -v GNU ld (Sourcery G++ Lite 2008q3-66) 2.18.50.20080215 $
The commit in question is 746a99a5af6 (2.6.31-rc1 plus something on top) from Linus' tree.
Any ideas why this is happening? The same toolchain has worked fine with n800 code in linux-omap.
Signature · 1 line
Kalle Valo
Quoted 9 lines · Kalle Valo
I'm trying to compile
omap_generic_2420_defconfigin mainline and I get this error:Kernel:
arch/arm/boot/Imageis ready
LD arch/arm/boot/compressed/vmlinux
arm-linux-ld: ERROR:arch/arm/boot/compressed/misc.ouses VFP instructions, whereasarch/arm/boot/compressed/vmlinuxdoes not
arm-linux-ld: failed to merge target specific data of filearch/arm/boot/compressed/misc.o
I tried omap3_beagle_defconfig and it compiled without errors. I found discussion about the error here:
http://www.spinics.net/lists/arm-kernel/msg59073.html
And reverting this commit fixed the issue with omap_generic_2420_defconfig:
commit 80cec14a83ad0ad109d822b3f3482a379bc481ba
Author: Russell King <[email protected]> Date: Tue Sep 9 13:56:45 2008 +0100
[ARM] Add -march=all to assembly file build in arch/arm/boot/compressed
This allows assembly files to be crafted to cover all ARM CPU types rather than erroring out on instructions only in later CPUs. We are careful in these files to only execute CPU specific code when the CPU ID says we can.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html