* powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory @ 2018-02-09 11:52 Mathieu Malaterre 2018-02-09 14:48 ` Segher Boessenkool 0 siblings, 1 reply; 5+ messages in thread From: Mathieu Malaterre @ 2018-02-09 11:52 UTC (permalink / raw) To: linuxppc-dev Hi there, Is anyone using O= output directory option ? It seems that git/master is failing: $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage (...) Entry Point: 00b001e8 DTC arch/powerpc/boot/asp834x-redboot.dtb WRAP arch/powerpc/boot/dtbImage.asp834x-redboot INFO: Uncompressed kernel (size 0xa51720) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) WRAP arch/powerpc/boot/zImage.coff powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory ../arch/powerpc/boot/Makefile:375: recipe for target 'arch/powerpc/boot/zImage.coff' failed make[2]: *** [arch/powerpc/boot/zImage.coff] Error 1 rm arch/powerpc/boot/pq2fads.dtb arch/powerpc/boot/mpc836x_mds.dtb arch/powerpc/boot/mpc832x_mds.dtb arch/powerpc/boot/mpc832x_rdb.dtb arch/powerpc/boot/mpc834x_mds.dtb arch/powerpc/boot/asp834x-redboot.dtb arch/powerpc/boot/mpc8272ads.dtb arch/powerpc/boot/mpc8349emitx.dtb arch/powerpc/boot/mpc8349emitxgp.dtb arch/powerpc/boot/ep8248e.dtb arch/powerpc/Makefile:291: recipe for target 'zImage' failed make[1]: *** [zImage] Error 2 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory 2018-02-09 11:52 powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory Mathieu Malaterre @ 2018-02-09 14:48 ` Segher Boessenkool 2018-02-09 15:55 ` Mathieu Malaterre 0 siblings, 1 reply; 5+ messages in thread From: Segher Boessenkool @ 2018-02-09 14:48 UTC (permalink / raw) To: Mathieu Malaterre; +Cc: linuxppc-dev Hi! On Fri, Feb 09, 2018 at 12:52:03PM +0100, Mathieu Malaterre wrote: > Is anyone using O= output directory option ? Yes, always. > It seems that git/master is failing: > > $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig > $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage Works fine for me (exact same arch and defconfig). Two differences: 1) I also set CROSS_COMPILE during the config step; 2) I don't build zImage, just the default (but manual "make zImage" afterwards works fine). > WRAP arch/powerpc/boot/zImage.coff > powerpc-linux-gnu-ld: cannot open linker script file > arch/powerpc/boot/zImage.coff.lds: No such file or directory > ../arch/powerpc/boot/Makefile:375: recipe for target > 'arch/powerpc/boot/zImage.coff' failed > make[2]: *** [arch/powerpc/boot/zImage.coff] Error 1 Add V=1? Segher ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory 2018-02-09 14:48 ` Segher Boessenkool @ 2018-02-09 15:55 ` Mathieu Malaterre 2018-02-09 16:23 ` Mathieu Malaterre 2018-02-09 20:56 ` Segher Boessenkool 0 siblings, 2 replies; 5+ messages in thread From: Mathieu Malaterre @ 2018-02-09 15:55 UTC (permalink / raw) To: Segher Boessenkool; +Cc: linuxppc-dev Segher, On Fri, Feb 9, 2018 at 3:48 PM, Segher Boessenkool <segher@kernel.crashing.org> wrote: > Hi! > > On Fri, Feb 09, 2018 at 12:52:03PM +0100, Mathieu Malaterre wrote: >> Is anyone using O= output directory option ? > > Yes, always. Great ! >> It seems that git/master is failing: >> >> $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig >> $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage > > Works fine for me (exact same arch and defconfig). Two differences: > 1) I also set CROSS_COMPILE during the config step; > 2) I don't build zImage, just the default (but manual "make zImage" > afterwards works fine). Could you run command (2) a second time on your system. >> WRAP arch/powerpc/boot/zImage.coff >> powerpc-linux-gnu-ld: cannot open linker script file >> arch/powerpc/boot/zImage.coff.lds: No such file or directory >> ../arch/powerpc/boot/Makefile:375: recipe for target >> 'arch/powerpc/boot/zImage.coff' failed >> make[2]: *** [arch/powerpc/boot/zImage.coff] Error 1 > > Add V=1? Full steps: $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage -> ok so far $ make O=ppc6xx -j4 ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- make[1]: Entering directory '/home/mathieu/tmp/linux/ppc6xx' CHK include/config/kernel.release GEN ./Makefile CHK include/generated/uapi/linux/version.h Using .. as source for kernel .. is not clean, please run 'make mrproper' in the '..' directory. /home/mathieu/tmp/linux/Makefile:1074: recipe for target 'prepare3' failed make[1]: *** [prepare3] Error 1 make[1]: Leaving directory '/home/mathieu/tmp/linux/ppc6xx' Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Then even after a mrproper I enter in an odd state: $ make O=ppc6xx -j4 ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- mrproper make[1]: Entering directory '/home/mathieu/tmp/linux/ppc6xx' rm -f .tmp_symbols.txt CLEAN scripts/basic CLEAN scripts/kconfig CLEAN include/config include/generated arch/powerpc/include/generated CLEAN .config make[1]: Leaving directory '/home/mathieu/tmp/linux/ppc6xx' mathieu@vostrodell:~/tmp/linux$ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig make[1]: Entering directory '/home/mathieu/tmp/linux/ppc6xx' HOSTCC scripts/basic/fixdep GEN ./Makefile HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf # # configuration written to .config # make[1]: Leaving directory '/home/mathieu/tmp/linux/ppc6xx' $ make O=ppc6xx -j4 ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- V=1 make -C /home/mathieu/tmp/linux/ppc6xx KBUILD_SRC=/home/mathieu/tmp/linux \ -f /home/mathieu/tmp/linux/Makefile make[1]: Entering directory '/home/mathieu/tmp/linux/ppc6xx' set -e; : ' CHK include/config/kernel.release'; mkdir -p include/config/; echo "4.15.0$(/bin/bash ../scripts/setlocalversion ..)" < include/config/auto.conf > include/config/kernel.release.tmp; if [ -r include/config/kernel.release ] && cmp -s include/config/kernel.release include/config/kernel.release.tmp; then rm -f include/config/kernel.release.tmp; else : ' UPD include/config/kernel.release'; mv -f include/config/kernel.release.tmp include/config/kernel.release; fi ln -fsn .. source make -f ../scripts/Makefile.asm-generic \ src=uapi/asm obj=arch/powerpc/include/generated/uapi/asm /bin/bash ../scripts/mkmakefile \ .. . 4 15 GEN ./Makefile set -e; : ' CHK include/generated/uapi/linux/version.h'; mkdir -p include/generated/uapi/linux/; (echo \#define LINUX_VERSION_CODE 265984; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) < ../Makefile > include/generated/uapi/linux/version.h.tmp; if [ -r include/generated/uapi/linux/version.h ] && cmp -s include/generated/uapi/linux/version.h include/generated/uapi/linux/version.h.tmp; then rm -f include/generated/uapi/linux/version.h.tmp; else : ' UPD include/generated/uapi/linux/version.h'; mv -f include/generated/uapi/linux/version.h.tmp include/generated/uapi/linux/version.h; fi make -f ../scripts/Makefile.build obj=scripts/basic rm -f include/linux/version.h awk '!x[$0]++' init/modules.builtin usr/modules.builtin arch/powerpc/kernel/modules.builtin arch/powerpc/mm/modules.builtin arch/powerpc/lib/modules.builtin arch/powerpc/sysdev/modules.builtin arch/powerpc/platforms/modules.builtin arch/powerpc/math-emu/modules.builtin arch/powerpc/crypto/modules.builtin arch/powerpc/net/modules.builtin arch/powerpc/xmon/modules.builtin arch/powerpc/perf/modules.builtin kernel/modules.builtin certs/modules.builtin mm/modules.builtin fs/modules.builtin ipc/modules.builtin security/modules.builtin crypto/modules.builtin block/modules.builtin drivers/modules.builtin sound/modules.builtin firmware/modules.builtin arch/powerpc/oprofile/modules.builtin net/modules.builtin lib/modules.builtin virt/modules.builtin > ./modules.builtin (cat /dev/null; ) > scripts/basic/modules.order rm -f .tmp_quiet_recordmcount make -f ../scripts/Makefile.asm-generic \ src=asm obj=arch/powerpc/include/generated/asm if [ -f ../.config -o -d ../include/config ]; then \ echo >&2 " .. is not clean, please run 'make mrproper'"; \ echo >&2 " in the '..' directory.";\ /bin/false; \ fi; .. is not clean, please run 'make mrproper' in the '..' directory. /home/mathieu/tmp/linux/Makefile:1074: recipe for target 'prepare3' failed make[1]: *** [prepare3] Error 1 make[1]: Leaving directory '/home/mathieu/tmp/linux/ppc6xx' Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Current commit is f1517df8701c9f12dae9ce7f43a5d300a6917619 on my side, no local change. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory 2018-02-09 15:55 ` Mathieu Malaterre @ 2018-02-09 16:23 ` Mathieu Malaterre 2018-02-09 20:56 ` Segher Boessenkool 1 sibling, 0 replies; 5+ messages in thread From: Mathieu Malaterre @ 2018-02-09 16:23 UTC (permalink / raw) To: Segher Boessenkool; +Cc: linuxppc-dev On Fri, Feb 9, 2018 at 4:55 PM, Mathieu Malaterre <malat@debian.org> wrote: > Segher, > > On Fri, Feb 9, 2018 at 3:48 PM, Segher Boessenkool > <segher@kernel.crashing.org> wrote: >> Hi! >> >> On Fri, Feb 09, 2018 at 12:52:03PM +0100, Mathieu Malaterre wrote: >>> Is anyone using O= output directory option ? >> >> Yes, always. > > Great ! > >>> It seems that git/master is failing: >>> >>> $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig >>> $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage >> >> Works fine for me (exact same arch and defconfig). Two differences: >> 1) I also set CROSS_COMPILE during the config step; >> 2) I don't build zImage, just the default (but manual "make zImage" >> afterwards works fine). > > Could you run command (2) a second time on your system. > >>> WRAP arch/powerpc/boot/zImage.coff >>> powerpc-linux-gnu-ld: cannot open linker script file >>> arch/powerpc/boot/zImage.coff.lds: No such file or directory >>> ../arch/powerpc/boot/Makefile:375: recipe for target >>> 'arch/powerpc/boot/zImage.coff' failed >>> make[2]: *** [arch/powerpc/boot/zImage.coff] Error 1 >> >> Add V=1? > > Full steps: > > $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig > $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage > -> ok so far > $ make O=ppc6xx -j4 ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- > make[1]: Entering directory '/home/mathieu/tmp/linux/ppc6xx' > CHK include/config/kernel.release > GEN ./Makefile > CHK include/generated/uapi/linux/version.h > Using .. as source for kernel > .. is not clean, please run 'make mrproper' > in the '..' directory. > /home/mathieu/tmp/linux/Makefile:1074: recipe for target 'prepare3' failed > make[1]: *** [prepare3] Error 1 > make[1]: Leaving directory '/home/mathieu/tmp/linux/ppc6xx' > Makefile:146: recipe for target 'sub-make' failed > make: *** [sub-make] Error 2 > > Then even after a mrproper I enter in an odd state: > > $ make O=ppc6xx -j4 ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- mrproper > make[1]: Entering directory '/home/mathieu/tmp/linux/ppc6xx' > rm -f .tmp_symbols.txt > CLEAN scripts/basic > CLEAN scripts/kconfig > CLEAN include/config include/generated arch/powerpc/include/generated > CLEAN .config > make[1]: Leaving directory '/home/mathieu/tmp/linux/ppc6xx' > mathieu@vostrodell:~/tmp/linux$ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig > make[1]: Entering directory '/home/mathieu/tmp/linux/ppc6xx' > HOSTCC scripts/basic/fixdep > GEN ./Makefile > HOSTCC scripts/kconfig/conf.o > YACC scripts/kconfig/zconf.tab.c > LEX scripts/kconfig/zconf.lex.c > HOSTCC scripts/kconfig/zconf.tab.o > HOSTLD scripts/kconfig/conf > # > # configuration written to .config > # > make[1]: Leaving directory '/home/mathieu/tmp/linux/ppc6xx' > $ make O=ppc6xx -j4 ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- V=1 > make -C /home/mathieu/tmp/linux/ppc6xx KBUILD_SRC=/home/mathieu/tmp/linux \ > -f /home/mathieu/tmp/linux/Makefile > make[1]: Entering directory '/home/mathieu/tmp/linux/ppc6xx' > set -e; : ' CHK include/config/kernel.release'; mkdir -p > include/config/; echo "4.15.0$(/bin/bash ../scripts/setlocalversion > ..)" < include/config/auto.conf > include/config/kernel.release.tmp; > if [ -r include/config/kernel.release ] && cmp -s > include/config/kernel.release include/config/kernel.release.tmp; then > rm -f include/config/kernel.release.tmp; else : ' UPD > include/config/kernel.release'; mv -f > include/config/kernel.release.tmp include/config/kernel.release; fi > ln -fsn .. source > make -f ../scripts/Makefile.asm-generic \ > src=uapi/asm obj=arch/powerpc/include/generated/uapi/asm > /bin/bash ../scripts/mkmakefile \ > .. . 4 15 > GEN ./Makefile > set -e; : ' CHK include/generated/uapi/linux/version.h'; mkdir -p > include/generated/uapi/linux/; (echo \#define LINUX_VERSION_CODE > 265984; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) > + (c))';) < ../Makefile > include/generated/uapi/linux/version.h.tmp; > if [ -r include/generated/uapi/linux/version.h ] && cmp -s > include/generated/uapi/linux/version.h > include/generated/uapi/linux/version.h.tmp; then rm -f > include/generated/uapi/linux/version.h.tmp; else : ' UPD > include/generated/uapi/linux/version.h'; mv -f > include/generated/uapi/linux/version.h.tmp > include/generated/uapi/linux/version.h; fi > make -f ../scripts/Makefile.build obj=scripts/basic > rm -f include/linux/version.h > awk '!x[$0]++' init/modules.builtin usr/modules.builtin > arch/powerpc/kernel/modules.builtin arch/powerpc/mm/modules.builtin > arch/powerpc/lib/modules.builtin arch/powerpc/sysdev/modules.builtin > arch/powerpc/platforms/modules.builtin > arch/powerpc/math-emu/modules.builtin > arch/powerpc/crypto/modules.builtin arch/powerpc/net/modules.builtin > arch/powerpc/xmon/modules.builtin arch/powerpc/perf/modules.builtin > kernel/modules.builtin certs/modules.builtin mm/modules.builtin > fs/modules.builtin ipc/modules.builtin security/modules.builtin > crypto/modules.builtin block/modules.builtin drivers/modules.builtin > sound/modules.builtin firmware/modules.builtin > arch/powerpc/oprofile/modules.builtin net/modules.builtin > lib/modules.builtin virt/modules.builtin > ./modules.builtin > (cat /dev/null; ) > scripts/basic/modules.order > rm -f .tmp_quiet_recordmcount > make -f ../scripts/Makefile.asm-generic \ > src=asm obj=arch/powerpc/include/generated/asm > if [ -f ../.config -o -d ../include/config ]; then \ > echo >&2 " .. is not clean, please run 'make mrproper'"; \ > echo >&2 " in the '..' directory.";\ > /bin/false; \ > fi; > .. is not clean, please run 'make mrproper' > in the '..' directory. > /home/mathieu/tmp/linux/Makefile:1074: recipe for target 'prepare3' failed > make[1]: *** [prepare3] Error 1 > make[1]: Leaving directory '/home/mathieu/tmp/linux/ppc6xx' > Makefile:146: recipe for target 'sub-make' failed > make: *** [sub-make] Error 2 > > > Current commit is f1517df8701c9f12dae9ce7f43a5d300a6917619 on my side, > no local change. After yet another 'make mrproper' I can no longer reproduce the build failure. Sorry for wasting your time :( -M ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory 2018-02-09 15:55 ` Mathieu Malaterre 2018-02-09 16:23 ` Mathieu Malaterre @ 2018-02-09 20:56 ` Segher Boessenkool 1 sibling, 0 replies; 5+ messages in thread From: Segher Boessenkool @ 2018-02-09 20:56 UTC (permalink / raw) To: Mathieu Malaterre; +Cc: linuxppc-dev On Fri, Feb 09, 2018 at 04:55:20PM +0100, Mathieu Malaterre wrote: > >> $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig > >> $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage > > > > Works fine for me (exact same arch and defconfig). Two differences: > > 1) I also set CROSS_COMPILE during the config step; > > 2) I don't build zImage, just the default (but manual "make zImage" > > afterwards works fine). > > Could you run command (2) a second time on your system. That works fine, also with -j$BIG . > $ make O=ppc6xx ARCH=powerpc ppc6xx_defconfig > $ make O=ppc6xx ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- zImage > -> ok so far > $ make O=ppc6xx -j4 ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- Ah. I configure with O=, but then cd to that dir and build without O= . Also not in a subdir of the kernel source tree. make ARCH=$ARCH CROSS_COMPILE=$TARGET- -C $KERNEL_SRC O=$PWD $DEFCONFIG make ARCH=$ARCH CROSS_COMPILE=$TARGET- $MAKEOPTS (everything run in the build dir). Segher ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-02-09 20:57 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-02-09 11:52 powerpc-linux-gnu-ld: cannot open linker script file arch/powerpc/boot/zImage.coff.lds: No such file or directory Mathieu Malaterre 2018-02-09 14:48 ` Segher Boessenkool 2018-02-09 15:55 ` Mathieu Malaterre 2018-02-09 16:23 ` Mathieu Malaterre 2018-02-09 20:56 ` Segher Boessenkool
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).