<?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>10784</bug_id>
          
          <creation_ts>2016-12-12 00:31:45 +0000</creation_ts>
          <short_desc>devtool: Misleading error message when running &quot;devtool runqemu&quot; before building image</short_desc>
          <delta_ts>2025-10-30 15:14:07 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry Bruce">henry.bruce</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>giouli.tsami</cc>
    
    <cc>jaewon</cc>
    
    <cc>libertad.gonzalez.de.la.cruz</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69021</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-12-12 00:31:45 +0000</bug_when>
    <thetext>If you don&apos;t build an image before running &quot;devtool runqemu&quot;, it outputs &quot;ERROR: QEMU is not available within this SDK&quot;. This implies that there is a component missing from the SDK, not that there is no image run.

Observed behavior
=================
Install eSDK for QEMU target
Run environment setup script (e.g. source environment-setup-i586-poky-linux)
Run &quot;devtool runqemu&quot;
See error: &quot;ERROR: QEMU is not available within this SDK&quot;.

Expected behavior
=================
Install eSDK for QEMU target
Run environment setup script (e.g. source environment-setup-i586-poky-linux)
Run &quot;devtool runqemu&quot;
See error message something like
&quot;ERROR: No QEMU image found. Have you run &apos;devtool build-image&apos;?&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69064</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-12-12 22:55:30 +0000</bug_when>
    <thetext>After an offline discussion with Henry, this is with SDK_EXT_TYPE = &quot;minimal&quot;, where by default there isn&apos;t anything installed into the SDK, thus the message isn&apos;t wrong - there is no qemu binary available. Running devtool build-image installs one as a side-effect of building the image (at least for qemu* machines).

There are a couple of things we could do to mitigate this:

1) We could check for the image being present first and display an error about that if there isn&apos;t one.

2) We could check if qemu really should be able to be run or not and make the error based on that (we would probably need to check the environment for the new QB_* variables), using a separate &quot;qemu binary not available&quot; or similar error for the existing check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81561</commentid>
    <comment_count>2</comment_count>
    <who name="Jaewon Lee">jaewon</who>
    <bug_when>2018-09-14 00:55:50 +0000</bug_when>
    <thetext>Hi, we have a similar issue. It is failing with &apos;QEMU is not available within this SDK&apos; because it is just checking the current &apos;bindir_native&apos; for the binary,  but we set a custom sysroot bindir in the qemuboot.conf by appending to do_write_qemuboot_conf. So if we just get rid of that check runqemu runs fine. Anyway we can support paul&apos;s 2nd idea and see if it actually be run before throwing an error?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81718</commentid>
    <comment_count>3</comment_count>
    <who name="Jaewon Lee">jaewon</who>
    <bug_when>2018-10-04 00:09:16 +0000</bug_when>
    <thetext>woops never mind was not within the eSDK. this is only supposed to run withing the eSDK. working for me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96875</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:35 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>