tree: https://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild.git kbuild head: 21532b9e5bd597631cfe38d9eb34df069938065b commit: 543c37cb165049c3be24a0d4733e67caa2b33eef [4/17] Add sancov plugin config: x86_64-randconfig-s0-07240646 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: git checkout 543c37cb165049c3be24a0d4733e67caa2b33eef # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): scripts/Makefile.gcc-plugins:17: warning: cannot use CONFIG_KCOV: -fsanitize-coverage=trace-pc is not supported by compiler scripts/Makefile.gcc-plugins:32: warning: your gcc version does not support plugins, you should upgrade it to gcc 4.5 at least >> Makefile:677: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler In file included from scripts/gcc-plugins/sancov_plugin.c:22:0: scripts/gcc-plugins/gcc-common.h:4:22: fatal error: bversion.h: No such file or directory compilation terminated. make[2]: *** [scripts/gcc-plugins/sancov_plugin.o] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [gcc-plugins] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [sub-make] Error 2 vim +677 Makefile 1332429b3 Kees Cook 2014-08-06 661 # if a desired compiler option is unsupported. If we were to error, kbuild 1332429b3 Kees Cook 2014-08-06 662 # could never get to the second pass and actually notice that we changed 1332429b3 Kees Cook 2014-08-06 663 # the option to something that was supported. 1332429b3 Kees Cook 2014-08-06 664 # 1332429b3 Kees Cook 2014-08-06 665 # Additionally, we don't want to fallback and/or silently change which compiler 1332429b3 Kees Cook 2014-08-06 666 # flags will be used, since that leads to producing kernels with different 1332429b3 Kees Cook 2014-08-06 667 # security feature characteristics depending on the compiler used. ("But I 1332429b3 Kees Cook 2014-08-06 668 # selected CC_STACKPROTECTOR_STRONG! Why did it build with _REGULAR?!") 1332429b3 Kees Cook 2014-08-06 669 # 1332429b3 Kees Cook 2014-08-06 670 # The middle ground is to warn here so that the failed option is obvious, but 1332429b3 Kees Cook 2014-08-06 671 # to let the build fail with bad compiler flags so that we can't produce a 1332429b3 Kees Cook 2014-08-06 672 # kernel when there is a CONFIG and compiler mismatch. 1332429b3 Kees Cook 2014-08-06 673 # 8779657d2 Kees Cook 2013-12-19 674 ifdef CONFIG_CC_STACKPROTECTOR_REGULAR 19952a920 Kees Cook 2013-12-19 675 stackp-flag := -fstack-protector 19952a920 Kees Cook 2013-12-19 676 ifeq ($(call cc-option, $(stackp-flag)),) 6c15b327c Jan Beulich 2014-02-25 @677 $(warning Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: \ 27b2a49a1 Fathi Boudra 2014-02-25 678 -fstack-protector not supported by compiler) 5d707e9c8 Tejun Heo 2009-02-09 679 endif 6c15b327c Jan Beulich 2014-02-25 680 else 6c15b327c Jan Beulich 2014-02-25 681 ifdef CONFIG_CC_STACKPROTECTOR_STRONG 8779657d2 Kees Cook 2013-12-19 682 stackp-flag := -fstack-protector-strong 8779657d2 Kees Cook 2013-12-19 683 ifeq ($(call cc-option, $(stackp-flag)),) 8779657d2 Kees Cook 2013-12-19 684 $(warning Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: \ 8779657d2 Kees Cook 2013-12-19 685 -fstack-protector-strong not supported by compiler) :::::: The code at line 677 was first introduced by commit :::::: 6c15b327ccbdce45878d4689f4d938f29dd309db Makefile: fix build with make 3.80 again :::::: TO: Jan Beulich <JBeulich@xxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data