<?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>12838</bug_id>
          
          <creation_ts>2018-07-02 07:33:11 +0000</creation_ts>
          <short_desc>[2.2.4 rc1] wic-tools failed bitbake</short_desc>
          <delta_ts>2018-07-05 14:44:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.2.4</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Chan">aaron.chun.yew.chan</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>aaron.chun.yew.chan</cc>
    
    <cc>apoorv.sangal</cc>
    
    <cc>bluelightning</cc>
    
    <cc>ee.peng.yeoh</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="Aaron Chan">aaron.chun.yew.chan</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80993</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Chan">aaron.chun.yew.chan</who>
    <bug_when>2018-07-02 07:33:11 +0000</bug_when>
    <thetext>### Shell environment set up for builds. ###
You can now run &apos;bitbake &lt;target&gt;&apos;
Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support
You can also run generated qemu images with a command like &apos;runqemu qemux86&apos;
NOTE: Started PRServer with DBfile: /home/ab/yocto-worker01/nightly-wic/build/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 37847, PID: 6058
Parsing recipes...WARNING: /home/ab/yocto-worker01/nightly-wic/build/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb: The meta-qt4 layer should be added, this layer provides Qt 4.x libraries. Its intended use is for passing LSB tests as Qt4 is a requirement for LSB.
WARNING: /home/ab/yocto-worker01/nightly-wic/build/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb: The meta-qt4 layer should be added, this layer provides Qt 4.x libraries. Its intended use is for passing LSB tests as Qt4 is a requirement for LSB.
done.
ERROR: Nothing PROVIDES &apos;wic-tools&apos;. Close matches:
  i2c-tools
  kexec-tools
Parsing of 864 .bb files complete (0 cached, 864 parsed). 1320 targets, 47 skipped, 0 masked, 0 errors.
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

It appears that in 2.2 (morty) - https://layers.openembedded.org/layerindex/recipe/59615/ is not found in build/meta/recipes-core/meta/wic-tools.bb

Some experiment is done to include wic-tools (pyro) into 2.2 (morty)


~/yocto-worker01/nightly-wic/build/build$ bitbake wic-tools
NOTE: Started PRServer with DBfile: /home/ab/yocto-worker01/nightly-wic/build/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 40517, PID: 8426
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 1320 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:00
Parsing of 865 .bb files complete (864 cached, 1 parsed). 1321 targets, 48 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.32.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky-lsb&quot;
DISTRO_VERSION    = &quot;2.2.4&quot;
TUNE_FEATURES     = &quot;m64 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;morty:df76669bdd70aa0d903c4211dde731221c7e756d&quot;

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: wic-tools-1.0-r0 do_build_sysroot: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:do_build_sysroot(d)
     0003:
File: &apos;/home/ab/yocto-worker01/nightly-wic/build/meta/recipes-core/meta/wic-tools.bb&apos;, lineno: 24, function: do_build_sysroot
     0020:# be removed before wic has a chance to use it, hence the exclusion below.
     0021:RM_WORK_EXCLUDE += &quot;${PN}&quot;
     0022:
     0023:python do_build_sysroot () {
 *** 0024:    bb.build.exec_func(&quot;extend_recipe_sysroot&quot;, d)
     0025:}
     0026:addtask do_build_sysroot after do_prepare_recipe_sysroot before do_build
File: &apos;/home/ab/yocto-worker01/nightly-wic/build/bitbake/lib/bb/build.py&apos;, lineno: 198, function: exec_func
     0194:    except:
     0195:        oldcwd = None
     0196:
     0197:    flags = d.getVarFlags(func)
 *** 0198:    cleandirs = flags.get(&apos;cleandirs&apos;)
     0199:    if cleandirs:
     0200:        for cdir in d.expand(cleandirs).split():
     0201:            bb.utils.remove(cdir, True)
     0202:            bb.utils.mkdirhier(cdir)
Exception: AttributeError: &apos;NoneType&apos; object has no attribute &apos;get&apos;

ERROR: wic-tools-1.0-r0 do_build_sysroot: Function failed: do_build_sysroot
ERROR: Logfile of failure stored in: /home/ab/yocto-worker01/nightly-wic/build/build/tmp/work/core2-64-poky-linux/wic-tools/1.0-r0/temp/log.do_build_sysroot.29826
ERROR: Task (/home/ab/yocto-worker01/nightly-wic/build/meta/recipes-core/meta/wic-tools.bb:do_build_sysroot) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 621 tasks of which 456 didn&apos;t need to be rerun and 1 failed.
NOTE: The errors for this build are stored in /home/ab/yocto-worker01/nightly-wic/build/build/tmp/log/error-report/error_report_20180702093606.txt
You can send the errors to a reports server by running:
  send-error-report /home/ab/yocto-worker01/nightly-wic/build/build/tmp/log/error-report/error_report_20180702093606.txt [-s server]
NOTE: The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.

Summary: 1 task failed:
  /home/ab/yocto-worker01/nightly-wic/build/meta/recipes-core/meta/wic-tools.bb:do_build_sysroot
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80997</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-07-02 21:33:30 +0000</bug_when>
    <thetext>Morty didn&apos;t include wic-tools, I think previously we used to have to
build the components manually, e.g.:

bitbake parted-native syslinux-native gptfdisk-native dosfstools-native mtools-native bmap-tools-native grub-efi-native cdrtools-native syslinux grub-efi

For example the automated tests changes can be seen here:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a79b32c75af78c602d1822dc2d60f24b74fc549c

You can&apos;t copy in the recipe from pyro since pyro uses recipe specific
sysroots and functions very differently to morty so the recipe will be
incompatible.

I&apos;d suggest just building the dependencies manually as above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81014</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-07-05 14:44:14 +0000</bug_when>
    <thetext>As Richard explained above this is expected (if not desirable) behaviour.  Closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>