<?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>10275</bug_id>
          
          <creation_ts>2016-09-14 01:41:15 +0000</creation_ts>
          <short_desc>Missing i686 toolchain sdk for 2.2 M3 rc1</short_desc>
          <delta_ts>2016-09-26 14:25:15 +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>devtools / tool chain</component>
          <version>2.2</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>pidge</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>66121</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-09-14 01:41:15 +0000</bug_when>
    <thetext>There is no i686 toolchain sdk for 2.2 M3 rc1 in autobuilder public directory:
http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2_M3.rc1/toolchain/i686/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66253</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-16 16:12:32 +0000</bug_when>
    <thetext>The logic to copy the sdk&apos;s looks sound, I wonder if recent buildset configuration changes have resulted in the i686 SDK&apos;s not being generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66256</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-16 16:20:23 +0000</bug_when>
    <thetext>Hmm, from the logs at https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64/builds/961/steps/Publishing%20Artifacts/logs/stdio

cp: cannot stat ‘/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/build/tmp/deploy/sdk/poky-*i686-core-image*.sh’: No such file or directory

I&apos;m not at all certain how that&apos;s the case, however. The sdk was built without error if I look on the worker the path it&apos;s trying to cp from is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66358</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-20 13:19:47 +0000</bug_when>
    <thetext>Checking the published output of recent autobuilder runs and the i686 toolchain isn&apos;t published for any recent master build. However recent krogoth builds *do* have the toolchain published.

This leads me to suspect that a change to OE-Core is the root, rather than a change to the autobuilder…

To verify this I tried to reproduce locally. I set SDKMACHINE=&quot;i686&quot; and `bitbake core-image-sato &amp;&amp; bitbake core-image-sato -c populate_sdk` and an i686 SDK is generated:

[joshuagl@tethys poky]$ ls tmp/deploy/sdk/
poky-glibc-i686-core-image-sato-core2-64-toolchain-2.1+snapshot.host.manifest
poky-glibc-i686-core-image-sato-core2-64-toolchain-2.1+snapshot.sh
poky-glibc-i686-core-image-sato-core2-64-toolchain-2.1+snapshot.target.manifest

if I then change SDKMACHINE to SDKMACHINE=&quot;x86_64&quot; and `bitbake core-image-sato &amp;&amp; bitbake core-image-sato -c populate_sdk` artefacts for the i686 SDK are no longer present, only x86_64 toolchain artefacts:

[joshuagl@tethys poky]$ ls tmp/deploy/sdk/
poky-glibc-x86_64-core-image-sato-core2-64-toolchain-2.1+snapshot.host.manifest
poky-glibc-x86_64-core-image-sato-core2-64-toolchain-2.1+snapshot.sh
poky-glibc-x86_64-core-image-sato-core2-64-toolchain-2.1+snapshot.target.manifest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66359</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-20 15:00:26 +0000</bug_when>
    <thetext>Patch submitted: 
http://lists.openembedded.org/pipermail/openembedded-core/2016-September/126707.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66442</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-21 21:37:48 +0000</bug_when>
    <thetext>Patch merged to OE-Core &amp; Poky master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66522</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-22 21:07:56 +0000</bug_when>
    <thetext>We&apos;re still seeing failures like this even with various stamps independence patches made to uninative-tarball and buildtools-tarball.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66546</commentid>
    <comment_count>7</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-23 13:26:19 +0000</bug_when>
    <thetext>The failure is a little different after recent changes, it&apos;s now the x86_64 artefacts which can&apos;t be found at PublishArtifacts.

Interestingly the order of invocations matter.

$ MACHINE=qemux86-64 SDKMACHINE=x86_64 bitbake uninative-tarball
$ MACHINE=qemux86-64 SDKMACHINE=i686 bitbake uninative-tarball
$ ls tmp/deploy/sdk/
i686-nativesdk-libc.host.manifest  i686-nativesdk-libc.tar.bz2  i686-nativesdk-libc.target.manifest

but:

$ MACHINE=qemux86-64 SDKMACHINE=i686 bitbake uninative-tarball
$ MACHINE=qemux86-64 SDKMACHINE=x86_64 bitbake uninative-tarball
$ ls tmp/deploy/sdk/
i686-nativesdk-libc.host.manifest    x86_64-nativesdk-libc.host.manifest
i686-nativesdk-libc.tar.bz2          x86_64-nativesdk-libc.tar.bz2
i686-nativesdk-libc.target.manifest  x86_64-nativesdk-libc.target.manifest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66555</commentid>
    <comment_count>8</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-23 16:00:22 +0000</bug_when>
    <thetext>The determinism is because the SSTATE_ARCH was being set to BUILD_ARCH. We can resolve this determinism issue by setting PACKAGE_ARCH to ${SDK_ARCH}_${SDK_OS} which results in the uninative tarballs for the prior SDK_ARCH being deleted no matter which order we build in.

That still leaves the issue of the tarballs for SDKMACHINE other than the current setting being deleted from SDK_DEPLOY when SDKMACHINE changes…

A bunch of WIP patches live, transiently, at:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=joshuagl/buildtools</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66565</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-09-23 22:40:45 +0000</bug_when>
    <thetext>I think the second problem was specific to buildtools/uninative and the original toolchain issue should be resolved? We should try a full master build soon and check the artefacts that get published...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66579</commentid>
    <comment_count>10</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-26 14:25:15 +0000</bug_when>
    <thetext>This indeed appears to be fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>