<?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>622</bug_id>
          
          <creation_ts>2010-12-29 00:22:30 +0000</creation_ts>
          <short_desc>[toolchain] no &quot;qemu-ppc&quot; command after toolchain running environment setup</short_desc>
          <delta_ts>2011-02-24 11:57:08 +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>ppc</op_sys>
          <bug_status>VERIFIED</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.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="liang li">liang.li2</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>jiajun.xu</cc>
    
    <cc>ke.yu</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11351</commentid>
    <comment_count>0</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2010-12-29 00:22:30 +0000</bug_when>
    <thetext>1.download toolchain package:
http://autobuilder.pokylinux.org/nightly/20101225-1/toolchain/x86_64/poky-eglibc-x86_64-powerpc-toolchain-sdk-0.9+snapshot-20101227.tar.bz2
2.decompress it and copy poky directory to /opt of the host file system.
3.run &quot;source /opt/poky/0.9+snapshot/environment-setup-ppc603e-poky-linux&quot;
4.run &quot;qemu-ppc&quot; ,get below output:
qemu-ppc not installed .
5.qemu-ppc file not found in /opt/poky/0.9+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin (see below):
liangli@liangli-OptiPlex-745:/opt/poky/0.9+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin$ ls qemu*
qemu      qemu-img  qemu-mips    qemu-nbd         qemu-system-mips  qemu-system-x86_64
qemu-arm  qemu-io   qemu-mipsel  qemu-system-arm  qemu-system-ppc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11352</commentid>
    <comment_count>1</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2010-12-29 00:40:07 +0000</bug_when>
    <thetext>Testing Env: 
Host: Ubuntu 10.10 X86_64
Kernel: 2.6.35-22-generic</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11378</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-01-04 20:57:13 +0000</bug_when>
    <thetext>still happend:
http://autobuilder.pokylinux.org/milestone/20110101-1/toolchain/x86_64/poky-eglibc-x86_64-powerpc-toolchain-sdk-0.9+snapshot-20110102.tar.bz2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11437</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-01-07 11:28:24 +0000</bug_when>
    <thetext>There is the qemu-system-ppc, that is what is used by the poky-qemu script, is there a reason you are trying to run qemu-ppc directly, as you should be using the poky-qemu script.

Please comment on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11439</commentid>
    <comment_count>4</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-01-09 18:11:45 +0000</bug_when>
    <thetext>reply to comment3:
It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
TC-320 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output
TC-321 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output

from sanity tests on qemumips and qemuarms,both command qemu-mips and qemu-arm exists.
and from ubuntu itself can build qemu-ppc package manually successful.
If this is  not the problem , I will close this defect.

TC-320 and TC-321 description below (pls refer it, and if the case is invalid pls tell me):
TC-320 : g++ from sdk toolchain can build c program and run with qemu-${ARCH} command
1. Install toolchain tarball and setup cross compile environment
2. compile program test.c &quot;${CXX} test.c -o test -cc++ -lm&quot;
3. run &quot;test&quot; with qemu-${ARCH} and check the output
TC-321 : gcc from sdk toolchain can build c program and run with qemu-${ARCH} command
1. Install toolchain tarball and setup cross compile environment
2. compile program test.c &quot;${CC} test.c -o test -cc -lm&quot;
3. run &quot;test&quot; with qemu-${ARCH} and check the output

thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12035</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-23 22:11:11 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; reply to comment3:
&gt; It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
&gt; TC-320 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; TC-321 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; from sanity tests on qemumips and qemuarms,both command qemu-mips and qemu-arm
&gt; exists.
&gt; and from ubuntu itself can build qemu-ppc package manually successful.
&gt; If this is  not the problem , I will close this defect.
&gt; TC-320 and TC-321 description below (pls refer it, and if the case is invalid
&gt; pls tell me):
&gt; TC-320 : g++ from sdk toolchain can build c program and run with qemu-${ARCH}
&gt; command
&gt; 1. Install toolchain tarball and setup cross compile environment
&gt; 2. compile program test.c &quot;${CXX} test.c -o test -cc++ -lm&quot;
&gt; 3. run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; TC-321 : gcc from sdk toolchain can build c program and run with qemu-${ARCH}
&gt; command
&gt; 1. Install toolchain tarball and setup cross compile environment
&gt; 2. compile program test.c &quot;${CC} test.c -o test -cc -lm&quot;
&gt; 3. run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; thanks.

Hi LiLiang,
I think the &quot;qemu-ppc&quot; should come from native host, not from toolchain tarball. Could you make sure you have qemu-kvm-extras installed and try again?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12037</commentid>
    <comment_count>6</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-02-23 22:37:21 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; reply to comment3:
&gt; &gt; It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
&gt; &gt; TC-320 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; TC-321 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; from sanity tests on qemumips and qemuarms,both command qemu-mips and qemu-arm
&gt; &gt; exists.
&gt; &gt; and from ubuntu itself can build qemu-ppc package manually successful.
&gt; &gt; If this is  not the problem , I will close this defect.
&gt; &gt; TC-320 and TC-321 description below (pls refer it, and if the case is invalid
&gt; &gt; pls tell me):
&gt; &gt; TC-320 : g++ from sdk toolchain can build c program and run with qemu-${ARCH}
&gt; &gt; command
&gt; &gt; 1. Install toolchain tarball and setup cross compile environment
&gt; &gt; 2. compile program test.c &quot;${CXX} test.c -o test -cc++ -lm&quot;
&gt; &gt; 3. run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; TC-321 : gcc from sdk toolchain can build c program and run with qemu-${ARCH}
&gt; &gt; command
&gt; &gt; 1. Install toolchain tarball and setup cross compile environment
&gt; &gt; 2. compile program test.c &quot;${CC} test.c -o test -cc -lm&quot;
&gt; &gt; 3. run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; thanks.
&gt; 
&gt; Hi LiLiang,
&gt; I think the &quot;qemu-ppc&quot; should come from native host, not from toolchain
&gt; tarball. Could you make sure you have qemu-kvm-extras installed and try again?
Hi ,
  The &quot;qemu-ppc&quot; command is not installed default on ubuntu 10.10, by command &quot;sudo apt-get install qemu-kvm-extras&quot; can install the &quot;qemu-ppc&quot; command , use the command,these two cases passed.
liang li</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12039</commentid>
    <comment_count>7</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-23 22:42:45 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; reply to comment3:
&gt; &gt; &gt; It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
&gt; &gt; &gt; TC-320 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; &gt; TC-321 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; &gt; from sanity tests on qemumips and qemuarms,both command qemu-mips and qemu-arm
&gt; &gt; &gt; exists.
&gt; &gt; &gt; and from ubuntu itself can build qemu-ppc package manually successful.
&gt; &gt; &gt; If this is  not the problem , I will close this defect.
&gt; &gt; &gt; TC-320 and TC-321 description below (pls refer it, and if the case is invalid
&gt; &gt; &gt; pls tell me):
&gt; &gt; &gt; TC-320 : g++ from sdk toolchain can build c program and run with qemu-${ARCH}
&gt; &gt; &gt; command
&gt; &gt; &gt; 1. Install toolchain tarball and setup cross compile environment
&gt; &gt; &gt; 2. compile program test.c &quot;${CXX} test.c -o test -cc++ -lm&quot;
&gt; &gt; &gt; 3. run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; &gt; TC-321 : gcc from sdk toolchain can build c program and run with qemu-${ARCH}
&gt; &gt; &gt; command
&gt; &gt; &gt; 1. Install toolchain tarball and setup cross compile environment
&gt; &gt; &gt; 2. compile program test.c &quot;${CC} test.c -o test -cc -lm&quot;
&gt; &gt; &gt; 3. run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; &gt; thanks.
&gt; &gt; 
&gt; &gt; Hi LiLiang,
&gt; &gt; I think the &quot;qemu-ppc&quot; should come from native host, not from toolchain
&gt; &gt; tarball. Could you make sure you have qemu-kvm-extras installed and try again?
&gt; Hi ,
&gt;   The &quot;qemu-ppc&quot; command is not installed default on ubuntu 10.10, by command
&gt; &quot;sudo apt-get install qemu-kvm-extras&quot; can install the &quot;qemu-ppc&quot; command , use
&gt; the command,these two cases passed.
&gt; liang li

Thanks for the update. So could I mark the bug as INVALID?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12040</commentid>
    <comment_count>8</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-02-23 22:46:45 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; reply to comment3:
&gt; &gt; &gt; &gt; It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
&gt; &gt; &gt; &gt; TC-320 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; &gt; &gt; TC-321 Step 3 : run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; &gt; &gt; from sanity tests on qemumips and qemuarms,both command qemu-mips and qemu-arm
&gt; &gt; &gt; &gt; exists.
&gt; &gt; &gt; &gt; and from ubuntu itself can build qemu-ppc package manually successful.
&gt; &gt; &gt; &gt; If this is  not the problem , I will close this defect.
&gt; &gt; &gt; &gt; TC-320 and TC-321 description below (pls refer it, and if the case is invalid
&gt; &gt; &gt; &gt; pls tell me):
&gt; &gt; &gt; &gt; TC-320 : g++ from sdk toolchain can build c program and run with qemu-${ARCH}
&gt; &gt; &gt; &gt; command
&gt; &gt; &gt; &gt; 1. Install toolchain tarball and setup cross compile environment
&gt; &gt; &gt; &gt; 2. compile program test.c &quot;${CXX} test.c -o test -cc++ -lm&quot;
&gt; &gt; &gt; &gt; 3. run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; &gt; &gt; TC-321 : gcc from sdk toolchain can build c program and run with qemu-${ARCH}
&gt; &gt; &gt; &gt; command
&gt; &gt; &gt; &gt; 1. Install toolchain tarball and setup cross compile environment
&gt; &gt; &gt; &gt; 2. compile program test.c &quot;${CC} test.c -o test -cc -lm&quot;
&gt; &gt; &gt; &gt; 3. run &quot;test&quot; with qemu-${ARCH} and check the output
&gt; &gt; &gt; &gt; thanks.
&gt; &gt; &gt; 
&gt; &gt; &gt; Hi LiLiang,
&gt; &gt; &gt; I think the &quot;qemu-ppc&quot; should come from native host, not from toolchain
&gt; &gt; &gt; tarball. Could you make sure you have qemu-kvm-extras installed and try again?
&gt; &gt; Hi ,
&gt; &gt;   The &quot;qemu-ppc&quot; command is not installed default on ubuntu 10.10, by command
&gt; &gt; &quot;sudo apt-get install qemu-kvm-extras&quot; can install the &quot;qemu-ppc&quot; command , use
&gt; &gt; the command,these two cases passed.
&gt; &gt; liang li
&gt; 
&gt; Thanks for the update. So could I mark the bug as INVALID?
okay, thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12041</commentid>
    <comment_count>9</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-23 22:48:49 +0000</bug_when>
    <thetext>Mark the bug as INVALID becasue qemu-${ARCH} command should come from native, not toolchain tarball.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12042</commentid>
    <comment_count>10</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-23 22:50:37 +0000</bug_when>
    <thetext>Verify it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>