<?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>10918</bug_id>
          
          <creation_ts>2017-01-12 10:55:26 +0000</creation_ts>
          <short_desc>devtool fails to build linux-yocto with yocto-bsp generated configuration</short_desc>
          <delta_ts>2017-06-14 17:06:49 +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>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrea Galbusera">gizero</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>69747</commentid>
    <comment_count>0</comment_count>
    <who name="Andrea Galbusera">gizero</who>
    <bug_when>2017-01-12 10:55:26 +0000</bug_when>
    <thetext>Steps to Repeat
================
$ git clone git://git.yoctoproject.org/poky
$ cd poky
$ git checkout master
$ source oe-init-build-env
$ yocto-bsp create -c my-qemux86 qemu
Answers: 1/y/n/2/n/n/y

* add meta-my-qemux86 to bblayers.conf
* Comment AUTOREVs in meta-my-qemux86/recipes-kernel/linux/linux-yocto_4.8.bbappend (to stick with current srcrevs)

$ MACHINE=&quot;my-qemux86&quot; devtool modify linux-yocto (no complaints)
$ MACHINE=&quot;my-qemux86&quot; devtool build linux-yocto

Observed Behavior
==================
Build Configuration:                                                                                                                                                                               [90/2513]
BB_VERSION        = &quot;1.32.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;my-qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.2&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-poky
meta-yocto-bsp    = &quot;master:81021bc0aa0f64e67535f6a9551e921a64fe4395&quot;
meta-my-qemux86
workspace         = &quot;&lt;unknown&gt;:&lt;unknown&gt;&quot;

Initialising tasks: 100% |############################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-yocto-4.8.12+git999-r0.1 do_kernel_metadata: Could not generate configuration queue for my-qemux86.
ERROR: linux-yocto-4.8.12+git999-r0.1 do_kernel_metadata: Function failed: do_kernel_metadata (log file is located at /home/gizero/work/upstreaming/build2/tmp/work/my_qemux86-poky-linux/linux-yocto/4.8.12
+git999-r0.1/temp/log.do_kernel_metadata.7604)
ERROR: Logfile of failure stored in: /home/gizero/work/upstreaming/build2/tmp/work/my_qemux86-poky-linux/linux-yocto/4.8.12+git999-r0.1/temp/log.do_kernel_metadata.7604
Log data follows:
| DEBUG: Executing shell function do_kernel_metadata
| ERROR: Could not generate configuration queue for my-qemux86.
| ERROR: could not find file my-qemux86.scc, included from /home/gizero/work/upstreaming/build2/workspace/sources/linux-yocto/oe-local-files/my-qemux86-standard.scc
| ERROR: could not process input files: /home/gizero/work/upstreaming/build2/workspace/sources/linux-yocto/oe-local-files/my-qemux86-standard.scc /home/gizero/work/upstreaming/build2/workspace/sources/lin
ux-yocto/oe-local-files/my-qemux86-standard.scc /home/gizero/work/upstreaming/build2/workspace/sources/linux-yocto/oe-local-files/my-qemux86-user-config.cfg /home/gizero/work/upstreaming/build2/workspace/
sources/linux-yocto/oe-local-files/my-qemux86-user-features.scc features/nfsd/nfsd-enable.scc features/debug/printk.scc features/netfilter/netfilter.scc cfg/virtio.scc
|        See /tmp/tmp.CIOS1kojOq for details
| ERROR: Function failed: do_kernel_metadata (log file is located at /home/gizero/work/upstreaming/build2/tmp/work/my_qemux86-poky-linux/linux-yocto/4.8.12+git999-r0.1/temp/log.do_kernel_metadata.7604)
ERROR: Task (/home/gizero/work/upstreaming/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_kernel_metadata) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 397 tasks of which 393 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/gizero/work/upstreaming/poky/meta/recipes-kernel/linux/linux-yocto_4.8.bb:do_kernel_metadata
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.


Expected Behavior
==================
Build completes successfully</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69748</commentid>
    <comment_count>1</comment_count>
    <who name="Andrea Galbusera">gizero</who>
    <bug_when>2017-01-12 11:00:02 +0000</bug_when>
    <thetext>Seems more a yocto-bsp&apos;s issue than a devtool&apos;s one. The missing files fails to be copied to workspace/sources/linux-yocto/oe-local-files/ by &quot;devtool modify&quot; because they are not included in the meta-my-qemux86/recipes-kernel/linux/linux-yocto_4.8.bbappend&apos;s SRC_URI as generated by yocto-bsp. Manually adding them seems to fix the thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72185</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-04-07 17:35:00 +0000</bug_when>
    <thetext>I got the same Andrea&apos;s conclusion and I will rephrase it with my comments:

Paul,

this is the problem: the yocto-bsp creates a bbappend and includes some scc files and inside these, there are references to other scc not tracked at SRC. When devtool modify is executed, the latter does not move all scc to the workspace/sources/linux-yocto/oe-local-files folder, leading to the original problem.

Another workaround is to flip priorities between meta-my-* and workspace, the latter having lower priority than the later. In this case, scc are found.

I will work on a fix at devtool, but I just wanted to let the latest findings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72488</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-04-13 18:41:33 +0000</bug_when>
    <thetext>Moving to 2.4M1, not a blocker for 2.3. In parallel, investigation is being done by Bruce Ashfield</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73964</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-06-09 20:38:53 +0000</bug_when>
    <thetext>Sent series to review: https://lists.yoctoproject.org/pipermail/poky/2017-June/011020.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74155</commentid>
    <comment_count>5</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-06-14 17:06:49 +0000</bug_when>
    <thetext>Patch at poky:

commit 2db8f3265e3b253f9e21301661f9fbe102aa595a
Refs: yocto-2.3-516-g2db8f3265e3
Author:     Leonardo Sandoval &lt;leonardo.sandoval.gonzalez@linux.intel.com&gt;
AuthorDate: Fri Jun 9 13:32:28 2017 -0700
Commit:     Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
CommitDate: Tue Jun 13 10:47:09 2017 +0100

    linux-yocto: include missing description files and conf fragments

    Include missing description files and configuration fragments into the SRC_URI.

    [YOCTO #10918]</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>