<?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>9758</bug_id>
          
          <creation_ts>2016-06-12 06:46:38 +0000</creation_ts>
          <short_desc>[build appliance] yocto 2.2: bitbake fails to build image</short_desc>
          <delta_ts>2016-06-27 08:50:03 +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>Runtime</product>
          <component>build-appliance</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ke Zou">ke.zou</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Ke Zou">ke.zou</qa_contact>
          <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>62909</commentid>
    <comment_count>0</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2016-06-12 06:46:38 +0000</bug_when>
    <thetext>Using nightly build to test:
http://autobuilder.yoctoproject.org/pub/nightly/20160605-1/build-appliance/

using vmplayer to load VM

after setting environment, bitbake fails when try to build image

sh-4.3$ bitbake core-image-minimal
Traceback (most recent call last):
  File &quot;/home/builder/poky/bitbake/bin/bitbake&quot;, line 31, in &lt;module&gt;
    import bb
  File &quot;/home/builder/poky/bitbake/lib/bb/__init__.py&quot;, line 77, in &lt;module&gt;
    import bb.msg
  File &quot;/home/builder/poky/bitbake/lib/bb/msg.py&quot;, line 32, in &lt;module&gt;
    import bb.event
  File &quot;/home/builder/poky/bitbake/lib/bb/event.py&quot;, line 32, in &lt;module&gt;
    import bb.utils
  File &quot;/home/builder/poky/bitbake/lib/bb/utils.py&quot;, line 28, in &lt;module&gt;
    import multiprocessing
ImportError: No module named &apos;multiprocessing&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63022</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-06-16 13:01:35 +0000</bug_when>
    <thetext>Good news is that after bumping the b-a revision, we avoid this issue. We do run into a locale problem, unless the bitbake environment has LC_ALL=en_US.utf-8 though...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63030</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-06-16 14:19:32 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Good news is that after bumping the b-a revision, we avoid this issue. We do
&gt; run into a locale problem, unless the bitbake environment has
&gt; LC_ALL=en_US.utf-8 though...


yes, but even then I ran into some problems with network (not coming up).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63109</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-06-17 16:09:57 +0000</bug_when>
    <thetext>I think we have a patch for the network issue and Ross has just added a patch to add python2 back into the image which should resolve some of the build issues we were seeing. Could someone run a build inside an image with master and check if there are any further issues?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63113</commentid>
    <comment_count>4</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-06-17 16:39:51 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I think we have a patch for the network issue and Ross has just added a
&gt; patch to add python2 back into the image which should resolve some of the
&gt; build issues we were seeing. Could someone run a build inside an image with
&gt; master and check if there are any further issues?

yes, I will do it. (Juro)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63161</commentid>
    <comment_count>5</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-06-20 22:46:13 +0000</bug_when>
    <thetext>It looks like all issues with BA have been resolved.
There were several patches involved:

1. BA recipe needed new SRCREV
2. BA recipe needed envar for locale LC_ALL=en_US.utf-8 (needed by python3)
3. BA recipe needed to explicitly include network components, these were removed from &quot;packagegroup-self-hosted&quot;
4. Some packages (i.e. xcb-proto, glib) would not build in BA due to some python2 modules missing 

The last commit needed was the commit 0006a7fada2fcf1d3194f6a377b5b516da08bfc7 addressing the issue #4.
(https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0006a7fada2fcf1d3194f6a377b5b516da08bfc7)

In the end I was able to run in BA:

$ bitbake core-image-minimal
$ runqemu qemux86 &lt;path&gt;core-image-minimal.ext4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63334</commentid>
    <comment_count>6</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2016-06-27 08:50:03 +0000</bug_when>
    <thetext>verified with build 2.2M1 rc2  (06-21 build)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>