Bug 622

Summary: [toolchain] no "qemu-ppc" command after toolchain running environment setup
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: liang li <liang.li2>
Component: meta-yoctoAssignee: Saul Wold <sgw>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: Medium CC: jiajun.xu, ke.yu, liangliang.wang, poky.bs.watcher, poky.watcher, sgw, yi.zhao
Version: unspecified   
Target Milestone: 1.0 M3   
Hardware: x86   
OS: ppc   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description liang li 2010-12-29 00:22:30 UTC
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 "source /opt/poky/0.9+snapshot/environment-setup-ppc603e-poky-linux"
4.run "qemu-ppc" ,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
Comment 1 liang li 2010-12-29 00:40:07 UTC
Testing Env: 
Host: Ubuntu 10.10 X86_64
Kernel: 2.6.35-22-generic
Comment 3 Saul Wold 2011-01-07 11:28:24 UTC
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.
Comment 4 liang li 2011-01-09 18:11:45 UTC
reply to comment3:
It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
TC-320 Step 3 : run "test" with qemu-${ARCH} and check the output
TC-321 Step 3 : run "test" 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 "${CXX} test.c -o test -cc++ -lm"
3. run "test" 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 "${CC} test.c -o test -cc -lm"
3. run "test" with qemu-${ARCH} and check the output

thanks.
Comment 5 Jiajun Xu 2011-02-23 22:11:11 UTC
(In reply to comment #4)
> reply to comment3:
> It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
> TC-320 Step 3 : run "test" with qemu-${ARCH} and check the output
> TC-321 Step 3 : run "test" 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 "${CXX} test.c -o test -cc++ -lm"
> 3. run "test" 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 "${CC} test.c -o test -cc -lm"
> 3. run "test" with qemu-${ARCH} and check the output
> thanks.

Hi LiLiang,
I think the "qemu-ppc" should come from native host, not from toolchain tarball. Could you make sure you have qemu-kvm-extras installed and try again?
Comment 6 liang li 2011-02-23 22:37:21 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > reply to comment3:
> > It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
> > TC-320 Step 3 : run "test" with qemu-${ARCH} and check the output
> > TC-321 Step 3 : run "test" 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 "${CXX} test.c -o test -cc++ -lm"
> > 3. run "test" 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 "${CC} test.c -o test -cc -lm"
> > 3. run "test" with qemu-${ARCH} and check the output
> > thanks.
> 
> Hi LiLiang,
> I think the "qemu-ppc" should come from native host, not from toolchain
> tarball. Could you make sure you have qemu-kvm-extras installed and try again?
Hi ,
  The "qemu-ppc" command is not installed default on ubuntu 10.10, by command "sudo apt-get install qemu-kvm-extras" can install the "qemu-ppc" command , use the command,these two cases passed.
liang li
Comment 7 Jiajun Xu 2011-02-23 22:42:45 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > reply to comment3:
> > > It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
> > > TC-320 Step 3 : run "test" with qemu-${ARCH} and check the output
> > > TC-321 Step 3 : run "test" 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 "${CXX} test.c -o test -cc++ -lm"
> > > 3. run "test" 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 "${CC} test.c -o test -cc -lm"
> > > 3. run "test" with qemu-${ARCH} and check the output
> > > thanks.
> > 
> > Hi LiLiang,
> > I think the "qemu-ppc" should come from native host, not from toolchain
> > tarball. Could you make sure you have qemu-kvm-extras installed and try again?
> Hi ,
>   The "qemu-ppc" command is not installed default on ubuntu 10.10, by command
> "sudo apt-get install qemu-kvm-extras" can install the "qemu-ppc" command , use
> the command,these two cases passed.
> liang li

Thanks for the update. So could I mark the bug as INVALID?
Comment 8 liang li 2011-02-23 22:46:45 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > (In reply to comment #4)
> > > > reply to comment3:
> > > > It is happend when do the sanity test of toolchain (case TC-320 and  TC-321):
> > > > TC-320 Step 3 : run "test" with qemu-${ARCH} and check the output
> > > > TC-321 Step 3 : run "test" 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 "${CXX} test.c -o test -cc++ -lm"
> > > > 3. run "test" 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 "${CC} test.c -o test -cc -lm"
> > > > 3. run "test" with qemu-${ARCH} and check the output
> > > > thanks.
> > > 
> > > Hi LiLiang,
> > > I think the "qemu-ppc" should come from native host, not from toolchain
> > > tarball. Could you make sure you have qemu-kvm-extras installed and try again?
> > Hi ,
> >   The "qemu-ppc" command is not installed default on ubuntu 10.10, by command
> > "sudo apt-get install qemu-kvm-extras" can install the "qemu-ppc" command , use
> > the command,these two cases passed.
> > liang li
> 
> Thanks for the update. So could I mark the bug as INVALID?
okay, thanks.
Comment 9 Jiajun Xu 2011-02-23 22:48:49 UTC
Mark the bug as INVALID becasue qemu-${ARCH} command should come from native, not toolchain tarball.
Comment 10 Jiajun Xu 2011-02-23 22:50:37 UTC
Verify it.