<?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>3009</bug_id>
          
          <creation_ts>2012-08-24 09:58:18 +0000</creation_ts>
          <short_desc>qemu emulator from the toolchain installed by ADT installer failed to execute binary file</short_desc>
          <delta_ts>2012-09-19 03:05:19 +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>adt</component>
          <version>1.3</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="liang li">liang.li2</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>columba.livia</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</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>24444</commentid>
    <comment_count>0</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-24 09:58:18 +0000</bug_when>
    <thetext>run &quot;adt_installer&quot; to build toolchain,error met when follow these step:
1.source 1.2+snapshot/environment-setup-armv5te-poky-linux-gnueabi
2.qemu-arm (qemu-ppc,qemu-mips,qemu-x86,qemu-x86_64)
bash: /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-arm: cannot execute binary file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24445</commentid>
    <comment_count>1</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-24 10:05:03 +0000</bug_when>
    <thetext>the adt-installer is from :
http://autobuilder.pokylinux.org/nightly/20120822-1/adt_installer/adt_installer.tar.bz2
git info:19ff55a53b436d463f9577adaed15be77708f0d2
git branch:poky/master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24916</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-09-07 10:56:43 +0000</bug_when>
    <thetext>With 1.3 beta 20120905 build, this issue still happens.
adt_intaller from http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-1.3-beta/adt_installer-QA/

Steps:
1. download adt_installer.tar.bz2 from http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-1.3-beta/adt_installer-QA/
2. Install adt_installer: $ ./adt_installer
3. source /opt/poky/1.2+snapshot/environment-setup-armv5te-poky-linux-gnueabi
4. run &quot;qemu-arm&quot;

Error message:
###############
$ which qemu-arm 
/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-arm
$ qemu-arm
bash: /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-arm: cannot execute binary file
################

There is no this issue when install from meta-toolchain tarball:
#############
$ sudo sh poky-eglibc-x86_64-arm-toolchain-gmae-1.2+snapshot-20120905.sh
$ source /opt/poky/1.2+snapshot/environment-setup-armv5te-poky-linux-gnueabi
$ which qemu-arm
/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-arm
$ qemu-arm 
qemu-arm version 0.15.1, Copyright (c) 2003-2008 Fabrice Bellard
usage: qemu-arm [options] program [arguments...]
Linux CPU emulator (compiled for arm emulation)

Standard options:
-h                print this help
-version          display version information and exit
-g port           wait gdb connection to port
-L path           set the elf interpreter prefix (default=/usr/gnemul/qemu-arm)
-s size           set the stack size in bytes (default=8388608)
-cpu model        select CPU (-cpu ? for list)
-drop-ld-preload  drop LD_PRELOAD for target process
-E var=value      sets/modifies targets environment variable(s)
-U var            unsets targets environment variable(s)
-0 argv0          forces target process argv[0] to be argv0
-B address        set guest_base address to address
-R size           reserve size bytes for guest virtual address space

Debug options:
-d options   activate log (logfile=/tmp/qemu.log)
-p pagesize  set the host page size to &apos;pagesize&apos;
-singlestep  always run in singlestep mode
-strace      log system calls

Environment variables:
QEMU_STRACE       Print system calls and arguments similar to the
                  &apos;strace&apos; program.  Enable by setting to any value.
You can use -E and -U options to set/unset environment variables
for target process.  It is possible to provide several variables
by repeating the option.  For example:
    -E var1=val2 -E var2=val2 -U LD_PRELOAD -U LD_DEBUG
Note that if you provide several changes to single variable
last change will stay in effect.
##############</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24940</commentid>
    <comment_count>3</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-09-07 18:13:37 +0000</bug_when>
    <thetext>The adtrepo.yoctoproject.org and adtrepo-dev.yoctoproject.org do not contain the latest packages. So, they cannot be used. Until this is fixed, use a local repo. It will work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25142</commentid>
    <comment_count>4</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-09-13 07:40:29 +0000</bug_when>
    <thetext>the error still met in 1.3 M4 RC2 from below:
http://autobuilder.yoctoproject.org/pub/nightly/20120910-5/adt_installer-QA/adt_installer.tar.bz2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25224</commentid>
    <comment_count>5</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-09-13 21:30:20 +0000</bug_when>
    <thetext>Beth and I took a look at this issue today, and we sure do still failing against M4 RC2 repo and it&apos;s fine against latest master, seems this commit fix the issue (http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c8e3e0149a23ee7f1477a73821d09e68883d988a) so we probably need to respin M4 build for RC3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25345</commentid>
    <comment_count>6</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-09-18 10:33:19 +0000</bug_when>
    <thetext>no such error in 1.3 M4 RC3 from below:
http://autobuilder.yoctoproject.org/pub/nightly/20120916-2/adt_installer-QA/adt_installer.tar.bz2

git info:e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c
git branch:poky/1.3_M4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25352</commentid>
    <comment_count>7</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-09-18 11:54:46 +0000</bug_when>
    <thetext>This was also related to bug #3083 which was fixed by the following patch:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c8e3e0149a23ee7f1477a73821d09e68883d988a

Together with the adtrepo changes, this issue does not happen anymore. Closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25371</commentid>
    <comment_count>8</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-09-18 17:29:34 +0000</bug_when>
    <thetext>please refer to last comments for the commit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25383</commentid>
    <comment_count>9</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-09-19 03:05:19 +0000</bug_when>
    <thetext>verified on :
git info:e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c
git branch:poky/1.3_M4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>