<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11894</bug_id>
          
          <creation_ts>2017-08-03 22:35:38 +0000</creation_ts>
          <short_desc>iwlwifi fails to build</short_desc>
          <delta_ts>2017-08-29 16:11:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-intel-corei7-64</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=11882</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>mikko.ylinen</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75635</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-08-03 22:35:38 +0000</bug_when>
    <thetext>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 &apos;/data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source&apos;
| make[1]: Entering directory &apos;/data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-build-artifacts&apos;
| /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 &apos;scripts/mod/empty.o&apos; 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 &apos;scripts/mod&apos; failed
| make[2]: *** [scripts/mod] Error 2
| /data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source/Makefile:560: recipe for target &apos;scripts&apos; failed
| make[1]: *** [scripts] Error 2
| make[1]: Leaving directory &apos;/data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-build-artifacts&apos;
| Makefile:150: recipe for target &apos;sub-make&apos; failed
| make: *** [sub-make] Error 2
| make: Leaving directory &apos;/data/poky-tmp/master/build/work-shared/intel-corei7-64/kernel-source&apos;
| 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 &apos;1&apos;

Build with rm_work enabled so there&apos;s probably a missing dependency somewhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75801</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-08-10 14:46:32 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75802</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-08-10 14:47:45 +0000</bug_when>
    <thetext>see previous</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75929</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-08-16 22:21:08 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75930</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-08-16 23:04:50 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76252</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-08-29 16:11:36 +0000</bug_when>
    <thetext>Interestingly I can&apos;t replicate this now, maybe the other fixes solved it or something in oe-core changed.  I&apos;ll close and will reopen if I hit it again.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>