# git rev-parse -q --verify 815f0ddb346c196018d4d8f8f55c12b83da1de3f^{commit} # git fetch -q -n -f git://fs.ozlabs.ibm.com/kernel/linus master # git rev-parse -q --verify 815f0ddb346c196018d4d8f8f55c12b83da1de3f^{commit} 815f0ddb346c196018d4d8f8f55c12b83da1de3f # git checkout -q -f -B kisskb 815f0ddb346c196018d4d8f8f55c12b83da1de3f # git clean -qxdf # < git log -1 # commit 815f0ddb346c196018d4d8f8f55c12b83da1de3f # Author: Nick Desaulniers # Date: Wed Aug 22 16:37:24 2018 -0700 # # include/linux/compiler*.h: make compiler-*.h mutually exclusive # # Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") # recently exposed a brittle part of the build for supporting non-gcc # compilers. # # Both Clang and ICC define __GNUC__, __GNUC_MINOR__, and # __GNUC_PATCHLEVEL__ for quick compatibility with code bases that haven't # added compiler specific checks for __clang__ or __INTEL_COMPILER. # # This is brittle, as they happened to get compatibility by posing as a # certain version of GCC. This broke when upgrading the minimal version # of GCC required to build the kernel, to a version above what ICC and # Clang claim to be. # # Rather than always including compiler-gcc.h then undefining or # redefining macros in compiler-intel.h or compiler-clang.h, let's # separate out the compiler specific macro definitions into mutually # exclusive headers, do more proper compiler detection, and keep shared # definitions in compiler_types.h. # # Fixes: cafa0010cd51 ("Raise the minimum required gcc version to 4.6") # Reported-by: Masahiro Yamada # Suggested-by: Eli Friedman # Suggested-by: Joe Perches # Signed-off-by: Nick Desaulniers # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 815f0ddb346c196018d4d8f8f55c12b83da1de3f # < make -s -j 8 ARCH=powerpc O=/kisskb/build/linus-rand_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- randconfig KCONFIG_SEED=0x15B07C90 # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig # yes \n | make -s -j 8 ARCH=powerpc O=/kisskb/build/linus-rand_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- oldconfig yes: standard output: Broken pipe yes: write error # make -s -j 8 ARCH=powerpc O=/kisskb/build/linus-rand_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- In file included from /kisskb/src/arch/powerpc/xmon/xmon.c:67:0: /kisskb/src/arch/powerpc/xmon/dis-asm.h: In function 'print_insn_powerpc': /kisskb/src/arch/powerpc/xmon/dis-asm.h:20:2: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat] /kisskb/src/arch/powerpc/xmon/dis-asm.h: In function 'print_insn_spu': /kisskb/src/arch/powerpc/xmon/dis-asm.h:26:2: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat] /kisskb/src/arch/powerpc/mm/tlb-radix.c:669:0: warning: "radix__flush_all_mm" redefined [enabled by default] /kisskb/src/arch/powerpc/include/asm/book3s/64/tlbflush-radix.h:44:0: note: this is the location of the previous definition /kisskb/src/arch/powerpc/mm/tlb-radix.c: In function '__radix__flush_tlb_range': /kisskb/src/arch/powerpc/mm/tlb-radix.c:712:5: error: implicit declaration of function 'exit_flush_lazy_tlbs' [-Werror=implicit-function-declaration] /kisskb/src/arch/powerpc/mm/tlb-radix.c: In function 'radix__tlb_flush': /kisskb/src/arch/powerpc/mm/tlb-radix.c:873:3: error: implicit declaration of function '__flush_all_mm' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors /kisskb/src/scripts/Makefile.build:307: recipe for target 'arch/powerpc/mm/tlb-radix.o' failed make[2]: *** [arch/powerpc/mm/tlb-radix.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/Makefile:1057: recipe for target 'arch/powerpc/mm' failed make[1]: *** [arch/powerpc/mm] Error 2 make[1]: *** Waiting for unfinished jobs.... /kisskb/src/arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_handle_exit_pr': /kisskb/src/arch/powerpc/kvm/book3s_pr.c:1280:31: warning: 'last_sc' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/arch/powerpc/kernel/watchdog.c: In function 'watchdog_smp_panic': /kisskb/src/arch/powerpc/kernel/watchdog.c:175:4: error: implicit declaration of function 'smp_send_nmi_ipi' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors /kisskb/src/scripts/Makefile.build:307: recipe for target 'arch/powerpc/kernel/watchdog.o' failed make[2]: *** [arch/powerpc/kernel/watchdog.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/Makefile:1057: recipe for target 'arch/powerpc/kernel' failed make[1]: *** [arch/powerpc/kernel] Error 2 Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -s -j 8 ARCH=powerpc O=/kisskb/build/linus-rand_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus-rand_powerpc-randconfig_powerpc # Build took: 0:00:11.930485