ERROR: iwlwifi-30-r0 do_make_scripts: Function failed: do_make_scripts (log file is located at /data/poky-tmp/master/build/work/corei7-64-intel-common-poky-linux/iwlwifi/30-r0/tasks/log.do_make_scripts.23704) ERROR: Logfile of failure stored in: /data/poky-tmp/master/build/work/corei7-64-intel-common-poky-linux/iwlwifi/30-r0/tasks/log.do_make_scripts.23704 Log data follows: | DEBUG: Executing shell function do_make_scripts | make: Entering directory '/data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source' | make[1]: Entering directory '/data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-build-artifacts' | /data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source/scripts/gcc-version.sh: line 25: x86_64-poky-linux-gcc: command not found | /data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source/scripts/gcc-version.sh: line 26: x86_64-poky-linux-gcc: command not found | make[1]: x86_64-poky-linux-gcc: Command not found | make[1]: x86_64-poky-linux-gcc: Command not found | GEN ./Makefile | scripts/kconfig/conf --silentoldconfig Kconfig | /data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source/scripts/gcc-version.sh: line 25: x86_64-poky-linux-gcc: command not found | /data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source/scripts/gcc-version.sh: line 26: x86_64-poky-linux-gcc: command not found | make[1]: x86_64-poky-linux-gcc: Command not found | make[1]: x86_64-poky-linux-gcc: Command not found | make[1]: x86_64-poky-linux-gcc: Command not found | make[1]: x86_64-poky-linux-gcc: Command not found | CC scripts/mod/empty.o | /bin/sh: 1: x86_64-poky-linux-gcc: not found | /data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source/scripts/Makefile.build:293: recipe for target 'scripts/mod/empty.o' failed | make[3]: *** [scripts/mod/empty.o] Error 127 | /data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source/scripts/Makefile.build:544: recipe for target 'scripts/mod' failed | make[2]: *** [scripts/mod] Error 2 | /data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source/Makefile:560: recipe for target 'scripts' failed | make[1]: *** [scripts] Error 2 | make[1]: Leaving directory '/data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-build-artifacts' | Makefile:150: recipe for target 'sub-make' failed | make: *** [sub-make] Error 2 | make: Leaving directory '/data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source' | WARNING: exit code 2 from a shell command. | ERROR: Function failed: do_make_scripts (log file is located at /data/poky-tmp/master/build/work/corei7-64-intel-common-poky-linux/iwlwifi/30-r0/tasks/log.do_make_scripts.23704) ERROR: Task (/home/ross/Yocto/meta-intel/common/recipes-kernel/iwlwifi/iwlwifi_git.bb:do_make_scripts) failed with exit code '1' Build with rm_work enabled so there's probably a missing dependency somewhere.
Really need additional info on this issue as I am not able to reproduce this with rm_work enabled. More information about the host configuration maybe?
see previous
I saw this happen randomly doing a build, I could not reproduce it a second time. What I did see was that the recipe-sysroot-native/sysroot-provides did not have the compiler or other cross tools. So I think ross is right about a missing dependency, possibly since make_scripts is done before do_configure, maybe some do_configure related dependency.
As far as I can tell the BASEDEPENDS seem to be correct, so I am not sure what exactly is triggering the dependency failure. My test was building build-appliance-image not with rm_work. I tried to duplicate it with INHIBIT_DEFAULT_DEPS, but it failed in other ways, not related to iwlwifi
Interestingly I can't replicate this now, maybe the other fixes solved it or something in oe-core changed. I'll close and will reopen if I hit it again.