Bug 11894 - iwlwifi fails to build
Summary: iwlwifi fails to build
Status: RESOLVED WORKSFORME
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-intel-corei7-64 (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4 M4
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-03 22:35 UTC by Ross Burton
Modified: 2017-08-29 16:11 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2017-08-03 22:35:38 UTC
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.
Comment 1 Saul Wold 2017-08-10 14:46:32 UTC
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?
Comment 2 Saul Wold 2017-08-10 14:47:45 UTC
see previous
Comment 3 Saul Wold 2017-08-16 22:21:08 UTC
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.
Comment 4 Saul Wold 2017-08-16 23:04:50 UTC
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
Comment 5 Ross Burton 2017-08-29 16:11:36 UTC
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.