<?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>1732</bug_id>
          
          <creation_ts>2011-11-04 03:26:07 +0000</creation_ts>
          <short_desc>[Build Appliance] Build core-image-minimal on sugarbay using Self Hosted Image</short_desc>
          <delta_ts>2012-01-10 13:05:58 +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>Meta-yocto</product>
          <component>meta-yocto</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>(P1) (QA Testing Completed) Development (100% completed) : core-image-minimal can build on sugarbay</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Edwin Zhai">edwin.zhai</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>edwin.zhai</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>shane.wang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17092</commentid>
    <comment_count>0</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-11-04 03:26:07 +0000</bug_when>
    <thetext>build an qemu image, in which &quot;bitbake core-image-minimal&quot; work.

e.g. on x86-64 host, we build a image for L1 target(qemux86). Inside of L1 target, we build one core-image-minimal for L2 target(say qemuarm).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17093</commentid>
    <comment_count>1</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-11-04 03:27:09 +0000</bug_when>
    <thetext>Saul did initial works and populate one layer in one contrib branch to start working. We are trying to reproduce it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17203</commentid>
    <comment_count>2</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-11-14 23:33:21 +0000</bug_when>
    <thetext>
(In reply to comment #1)
&gt; Saul did initial works and populate one layer in one contrib branch to start
&gt; working. We are trying to reproduce it.

I found n450 is pretty slow so later I changed to use sugarbay.

Based on Saul&apos;s base work, with many fixings and workarounds, &quot;bitbake core-image-minimal&quot; can build fine.

The fixings and workarounds are:
1) fix the mis-built/install python module grp;

2) disable buuilding qemu-native since libGL.so, libGLU.so, libSDL.so are missing. Need to add the bits.

3) eglibc_initial do_install failure: I suspect this is related to the incompatibility between eglibc&apos;s build scripts and make-3.82 -- after I downgraded to make-3.81, the do_install issus disappeared. I&apos;ll continue to investigate this.

4) eglibc do_configure ERROR: no rpcgen found I had to install eglibc-utils_2.13-r17+svnr14157_x86_64.ipk into the target to resolve this issue.
	
5) eglibc: do_install ERROR: cannot stat bootparam_prot.h  The cause is: rpcgen doesn&apos;t work properly --&gt; /lib/cpp doesn&apos;t exist: we need to ln -s /usr/bin/cpp /lib/cpp(need to fix the gcc&apos;s do_package for cpp-symlinks).

6) do_rootfs failure: ImportError: No module named tarfile I had to install python-compression_2.7.2-r0.2_x86_64.ipk into target.

7) do_rootfs failure:
...
ERROR: ld.so: object &apos;libpseudo.so&apos; from LD_PRELOAD cannot be preloaded: ignored.
...
log_check: There were error messages in the logfile
log_check: Matched keyword: [ERR]

This is cause by the pseudo ERROR line(why the pseudo ERROR is caused needs further investigation)

BTW, &quot;runqemu qemux86 core-image-minimal&quot; still fails: libGL.so, libGLU.so, libSDL.so are missing. Need to make qemu-native pass the build as I mentioned in previous mail.


I&apos;ll make the patches for the issues 1), 4), 5) and 6).
I&apos;m debugging issues 2), 3) and 7). I think I&apos;ll fix 2) and 3) soon, but 7) may take more time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17274</commentid>
    <comment_count>3</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-11-21 01:12:58 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Saul did initial works and populate one layer in one contrib branch to start
&gt; &gt; working. We are trying to reproduce it.
&gt; 
&gt; I found n450 is pretty slow so later I changed to use sugarbay.
&gt; 
&gt; Based on Saul&apos;s base work, with many fixings and workarounds, &quot;bitbake
&gt; core-image-minimal&quot; can build fine.
&gt; 
&gt; The fixings and workarounds are:
&gt; 1) fix the mis-built/install python module grp;
&gt; 
&gt; 2) disable buuilding qemu-native since libGL.so, libGLU.so, libSDL.so are
&gt; missing. Need to add the bits.
&gt; 
&gt; 3) eglibc_initial do_install failure: I suspect this is related to the
&gt; incompatibility between eglibc&apos;s build scripts and make-3.82 -- after I
&gt; downgraded to make-3.81, the do_install issus disappeared. I&apos;ll continue to
&gt; investigate this.
&gt; 
&gt; 4) eglibc do_configure ERROR: no rpcgen found I had to install
&gt; eglibc-utils_2.13-r17+svnr14157_x86_64.ipk into the target to resolve this
&gt; issue.
&gt; 
&gt; 5) eglibc: do_install ERROR: cannot stat bootparam_prot.h  The cause is: rpcgen
&gt; doesn&apos;t work properly --&gt; /lib/cpp doesn&apos;t exist: we need to ln -s /usr/bin/cpp
&gt; /lib/cpp(need to fix the gcc&apos;s do_package for cpp-symlinks).
&gt; 
&gt; 6) do_rootfs failure: ImportError: No module named tarfile I had to install
&gt; python-compression_2.7.2-r0.2_x86_64.ipk into target.
&gt; 
&gt; 7) do_rootfs failure:
&gt; ...
&gt; ERROR: ld.so: object &apos;libpseudo.so&apos; from LD_PRELOAD cannot be preloaded:
&gt; ignored.
&gt; ...
&gt; log_check: There were error messages in the logfile
&gt; log_check: Matched keyword: [ERR]
&gt; 
&gt; This is cause by the pseudo ERROR line(why the pseudo ERROR is caused needs
&gt; further investigation)
&gt; 
&gt; BTW, &quot;runqemu qemux86 core-image-minimal&quot; still fails: libGL.so, libGLU.so,
&gt; libSDL.so are missing. Need to make qemu-native pass the build as I mentioned
&gt; in previous mail.
&gt; 
&gt; 
&gt; I&apos;ll make the patches for the issues 1), 4), 5) and 6).
&gt; I&apos;m debugging issues 2), 3) and 7). I think I&apos;ll fix 2) and 3) soon, but 7) may
&gt; take more time.

I&apos;ve merged the current v1 patches into http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=dcui/self-hosted-v1.

1) eglibc-initial do_install issue.still haven&apos;t figured out which place of the complex eglibc makefiles is wrong as to make-3.82. :-(

2) do_rootfs &quot;ERROR: ld.so: object &apos;libpseudo.so&apos; from LD_PRELOAD cannot be preloaded: ignored.&quot; Working on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17334</commentid>
    <comment_count>4</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-11-22 08:27:51 +0000</bug_when>
    <thetext>QA will try minimal build on sugarbay with the self hosted image.
So test plan for the feature is ready.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17486</commentid>
    <comment_count>5</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-12-04 18:24:05 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; 
&gt; I&apos;ve merged the current v1 patches into
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=dcui/self-hosted-v1.
&gt; 
&gt; 1) eglibc-initial do_install issue.still haven&apos;t figured out which place of the
&gt; complex eglibc makefiles is wrong as to make-3.82. :-(
This turned to be a bug of make-3.82:
http://savannah.gnu.org/bugs/?30723
http://cvs.savannah.gnu.org/viewvc/make/main.c?root=make&amp;r1=1.243&amp;r2=1.244
http://old.nabble.com/-bug--30723--implicit-re-executing-of-subdirs-breaks-$(origin)-with-make-3.82-td29394353.html

The patch has been in poky master now.

&gt; 
&gt; 2) do_rootfs &quot;ERROR: ld.so: object &apos;libpseudo.so&apos; from LD_PRELOAD cannot be
&gt; preloaded: ignored.&quot; Working on this.
This seems to be a bug of busybox: I reported a new bug 1784 for this.
Now we use non-busybox-version utilities to work this issue around.

The latest patches are at
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=dcui/self-hosted-v4
All the patches are in poky master now, except the patch &quot;runqemu-ifup, runqemu-internal: be wiser when locating the network tools&quot;: RP asked us to improve the patch by defining a shell function to share code.

We&apos;l setup a semi-formal branch the self-hosted-image. And will update the Build  Appliance wiki later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17807</commentid>
    <comment_count>6</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-12-21 19:11:38 +0000</bug_when>
    <thetext>I tested the feature with 1.2_M1 branch, now I could build a self-hosted image for sugarbay and build a minimal image with it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18058</commentid>
    <comment_count>7</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2012-01-10 13:05:58 +0000</bug_when>
    <thetext>All the patches are in poky master.
So let me mark it to RESOLVED|FIXED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>