<?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>1367</bug_id>
          
          <creation_ts>2011-08-11 16:48:42 +0000</creation_ts>
          <short_desc>runqemu-extract-sdk built with meta-toolchain is unable to extract rootfs</short_desc>
          <delta_ts>2011-08-12 09:24:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>kernel analysis</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jessica">jessica.zhang</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>yp.sdk.watcher</cc>
    
    <cc>yp.watcher</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>15418</commentid>
    <comment_count>0</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-08-11 16:48:42 +0000</bug_when>
    <thetext>build meta-toolchain against latest poky master, after extract it under /opt/poky, source the environment setup script.  Then using runqemu-extract-sdk to extract a rootfs, noticed the following issues:

1. /opt/poky/1.0+snapshot/sysroots/i686-pokysdk-linux/usr/bin/pseudo is no longer executable, after fixing that, I&apos;m getting the following
2. opt/poky/1.0+snapshot/sysroots/i686-pokysdk-linux/usr/bin/runqemu-extract-sdk: line 89: /opt/poky/1.0+snapshot/sysroots/i686-pokysdk-linux/usr/bin/pseudo: No such file or directory

BTW, the runqemu-extract-sdk works fine under poky tree mode, which through bitbake meta-ide-support</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15428</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-08-11 20:29:17 +0000</bug_when>
    <thetext>Jessica,

I am not able to reproduce this after building my own meta-toolchain. 

Notably, when I extract the meta-toolchain tarball into /opt/poky, my pseudo binary exists and is executable. This tells me that perhaps something is wrong with the meta-toolchain tarball or the way you extracted it. Can you reproduce this from a new build of meta-toolchain?

Another thing to verify is your OS architecture. The uname -a command should show whether your kernel is i686 or x86_64. If that reports you&apos;re running an x86_64 kernel, then your meta-toolchain tarball was built for the wrong architecture.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15432</commentid>
    <comment_count>2</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-08-11 21:35:00 +0000</bug_when>
    <thetext>Scott,

Thanks for checking things out.   I&apos;ve used &quot;sudo tar -xvjf &lt;toolchain.tarball&gt; .&quot; under / to extracted my toolchain, is it different from how you did yours? BTW, my kernel is i686, so at least the toolchain arch is correct.  I&apos;m surprised to hear that your pseudo is executable where mine&apos;s not.
I&apos;ll rebuilt a meta-toolchain to see whether that will make things different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15445</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-08-12 08:05:05 +0000</bug_when>
    <thetext>Also, check your umask setting (just run &quot;umask&quot;). It should be set to 0022. If it&apos;s set to something else, that can interfere with file persmissions settings when creating new files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15447</commentid>
    <comment_count>4</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-08-12 09:24:52 +0000</bug_when>
    <thetext>Scott,

This is due to my corrupted cache, sstate, etc.  after cleaning up my tmpdir and sstate and rebuild toolchain, the problem is gone.  Same symptom as 1356</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>