# git rev-parse -q --verify e41b93a6be57e26a4a123345f826a6ac3a213551^{commit} e41b93a6be57e26a4a123345f826a6ac3a213551 already have revision, skipping fetch # git checkout -q -f -B kisskb e41b93a6be57e26a4a123345f826a6ac3a213551 # git clean -qxdf # < git log -1 # commit e41b93a6be57e26a4a123345f826a6ac3a213551 # Author: Michael Ellerman # Date: Mon Dec 3 19:55:55 2018 +1100 # # powerpc/boot: Fix build failures with -j 1 # # In commit 5e9dcb6188a4 ("powerpc/boot: Expose Kconfig symbols to # wrapper") we added a dependency to serial.c on autoconf.h: # # $(obj)/serial.c: $(obj)/autoconf.h # # This works when building in-tree (ie. with KBUILD_OUTPUT unset) # because the obj tree is the src tree. # # But when building with eg. O=build and -j 1 the build fails: # # gcc ... -I../arch/powerpc/boot -c -o arch/powerpc/boot/serial.o arch/powerpc/boot/serial.c # gcc: error: arch/powerpc/boot/serial.c: No such file or directory # # Why this is only happening with -j 1 is not clear, when building with # -j greater than 1 somehow we decide to look for serial.c in the src # tree (../), eg: # # gcc -I../arch/powerpc/boot -c -o arch/powerpc/boot/serial.o ../arch/powerpc/boot/serial.c # # Regardless we shouldn't be specifying a dependency on serial.c in the # build tree, we want to add a dependency to the version in $(srctree) # so fix the rule to say that. # # Fixes: 5e9dcb6188a4 ("powerpc/boot: Expose Kconfig symbols to wrapper") # Tested-by: Daniel Axtens # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 e41b93a6be57e26a4a123345f826a6ac3a213551 # < make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig KCONFIG_SEED=0xAF0F6234 # 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 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/scripts/unifdef.c: In function 'Mpass': /kisskb/src/scripts/unifdef.c:453:28: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] static void Mpass (void) { strncpy(keyword, "if ", 4); Pelif(); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/wait.h:9:0, from /kisskb/src/include/linux/wait_bit.h:8, from /kisskb/src/include/linux/fs.h:6, from /kisskb/src/include/linux/seq_file.h:11, from /kisskb/src/kernel/sched/psi.c:128: /kisskb/src/kernel/sched/psi.c: In function 'cgroup_move_task': /kisskb/src/include/linux/spinlock.h:273:32: warning: 'rq' may be used uninitialized in this function [-Wmaybe-uninitialized] #define raw_spin_unlock(lock) _raw_spin_unlock(lock) ^ /kisskb/src/kernel/sched/psi.c:639:13: note: 'rq' was declared here struct rq *rq; ^ /kisskb/src/arch/powerpc/kernel/eeh.c:1752:12: warning: 'proc_eeh_show' defined but not used [-Wunused-function] static int proc_eeh_show(struct seq_file *m, void *v) ^ /kisskb/src/drivers/usb/misc/usbtest.c: In function 'test_queue': /kisskb/src/drivers/usb/misc/usbtest.c:2128:1: warning: the frame size of 1248 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ Completed OK # rm -rf /kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc-gcc5 # Build took: 0:01:05.875462