error: #error Your compiler is too buggy

来源:互联网 发布:echo.js下载 编辑:程序博客网 时间:2024/06/05 18:10

今天在编内核代码的时候,报下面的错误:

arch/arm/kernel/asm-offsets.c:54:2: error: #error Your compiler is too buggy; it is known to miscompile kernels #error Your compiler is too buggy; it is known to miscompile kernels  ^arch/arm/kernel/asm-offsets.c:55:2: error: #error and result in filesystem corruption and oopses. #error and result in filesystem corruption and oopses.  ^Kbuild:80: recipe for target 'arch/arm/kernel/asm-offsets.s' failedmake[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1Makefile:986: recipe for target 'prepare0' failedmake: *** [prepare0] Error 2

用的toolchain:

$ arm-linux-gnueabi-gcc -vUsing built-in specs.COLLECT_GCC=arm-linux-gnueabi-gccCOLLECT_LTO_WRAPPER=/toolchain/arm-linux-4.8.2/bin/../libexec/gcc/arm-linux-gnueabi/4.8.2/lto-wrapperTarget: arm-linux-gnueabiConfigured with: ../../src/gcc-4.8.2/configure --build=i686-pc-linux-gnu --target=arm-linux-gnueabi --prefix=/home/charles/code/build_toolchain/toolchain --with-sysroot=/home/charles/code/build_toolchain/toolchain/arm-linux-gnueabi/sysroot --disable-libmudflap --disable-libssp --disable-nls --disable-libstdcxx-pch --with-interwork --with-mode=arm --with-fpu=vfpv3 --with-arch=armv7-a --with-float=softfp --enable-libgomp --enable-poison-system-directories --enable-symvers=gnu --enable-long-long --enable-threads --enable-languages=c,c++ --enable-shared --enable-lto --enable-__cxa_atexit --with-gnu-as --with-gnu-ld --enable-__cxa_atexit --with-gmp=/home/charles/code/build_toolchain/toolchain --with-mpfr=/home/charles/code/build_toolchain/toolchain --with-ppl=/home/charles/code/build_toolchain/toolchain --with-cloog=/home/charles/code/build_toolchain/toolchainThread model: posixgcc version 4.8.2 (GCC) 

据说是 , GCC 4.8.0到 GCC 4.8.2之间的arm gcc 编译器有问题:

[PATCH] ARM: Blacklist GCC 4.8.0 to GCC 4.8.2 - PR58854

0 0
原创粉丝点击