<?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>10304</bug_id>
          
          <creation_ts>2016-09-19 14:42:28 +0000</creation_ts>
          <short_desc>QEMU doesnot support e6500 emulation for gobject-introspection</short_desc>
          <delta_ts>2022-10-27 15:27:14 +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>core</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Otavio Salvador">otavio</reporter>
          <assigned_to name="Otavio Salvador">otavio</assigned_to>
          <cc>akuster808</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>otavio</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>zhenhua.luo</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66325</commentid>
    <comment_count>0</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2016-09-19 14:42:28 +0000</bug_when>
    <thetext>When building gobject-introspection QEMU aborts with invalid instruction.

qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction (core dumped)
If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the recipe should help.
(typically like this: GIR_EXTRA_LIBS_PATH=&quot;${B}/something/.libs&quot; )
Command &apos;[&apos;/home/otavio/src/yocto/build/tmp/work/ppce6500-oel-linux/gobject-introspection/1.48.0-r0/build/g-ir-scanner-qemuwrapper&apos;, &apos;/home/otavio/src/yocto/build/tmp/work/ppce6500-oel-linux/gobject-introspection/1.48.0-r0/build/tmp-introspectrk62h5p1/GLib-2.0&apos;, &apos;--introspect-dump=/home/otavio/src/yocto/build/tmp/work/ppce6500-oel-linux/gobject-introspection/1.48.0-r0/build/tmp-introspectrk62h5p1/functions.txt,/home/otavio/src/yocto/build/tmp/work/ppce6500-oel-linux/gobject-introspection/1.48.0-r0/build/tmp-introspectrk62h5p1/dump.xml&apos;]&apos; returned non-zero exit status 1
Makefile:3518: recipe for target &apos;GLib-2.0.gir&apos; failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66326</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-09-19 14:51:25 +0000</bug_when>
    <thetext>My knowledge of PPC is incredibly limited, can you handle this?  You probably need to set QEMU_EXTRAOPTIONS, ideally in the BSP.  See qemu.bbclass and meta-intel for examples.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66332</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-09-19 16:26:15 +0000</bug_when>
    <thetext>Talking with Otavio, this has the e5500 64 bit processor so its probably using the wrong system qemu and the wrong cpu option as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66335</commentid>
    <comment_count>3</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2016-09-19 18:59:02 +0000</bug_when>
    <thetext>I played with it a little and got it using the right params however it still fails badly.

| /home/otavio/src/yocto/build/tmp/work/ppce6500-oel-linux/gobject-introspection/1.48.0-r0/build/tmp-introspectyx4v7knq/GLib-2.0: Invalid ELF image for this architecture
| If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the recipe should help.
| (typically like this: GIR_EXTRA_LIBS_PATH=&quot;${B}/something/.libs&quot; )
| Command &apos;[&apos;/home/otavio/src/yocto/build/tmp/work/ppce6500-oel-linux/gobject-introspection/1.48.0-r0/build/g-ir-scanner-qemuwrapper&apos;, &apos;/home/otavio/src/yocto/build/tmp/work/ppce6500-oel-linux/gobject-introspection/1.48.0-r0/build/tmp-introspectyx4v7knq/GLib-2.0&apos;, &apos;--introspect-dump=/home/otavio/src/yocto/build/tmp/work/ppce6500-oel-linux/gobject-introspection/1.48.0-r0/build/tmp-introspectyx4v7knq/functions.txt,/home/otavio/src/yocto/build/tmp/work/ppce6500-oel-linux/gobject-introspection/1.48.0-r0/build/tmp-introspectyx4v7knq/dump.xml&apos;]&apos; returned non-zero exit status 1
| Makefile:3518: recipe for target &apos;GLib-2.0.gir&apos; failed
| make[2]: *** [GLib-2.0.gir] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66364</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-09-20 16:07:29 +0000</bug_when>
    <thetext>&quot;Invalid ELF image for this architecture&quot;

I&apos;m guessing that is from qemu, so can you verify that the binaries are the right type.  Maybe there&apos;s a bug in qemu&apos;s ELF parser?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66412</commentid>
    <comment_count>5</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2016-09-21 11:36:22 +0000</bug_when>
    <thetext>I found that the e5500 is provided by the QEMU PPC64 emulation and it turns to need to use the 32bit ABI for calling (using the qemu-ppc64abi32).

However, even doing so, it fails:

| qemu: uncaught target signal 4 (Illegal instruction) - core dumped
| Illegal instruction (core dumped)

So my guess is that the generated code is indeed invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88467</commentid>
    <comment_count>6</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2020-10-22 08:27:01 +0000</bug_when>
    <thetext>Is this being seen on current Master (3.2) ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94282</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-10-27 15:27:14 +0000</bug_when>
    <thetext>Won&apos;t fix, so long ppc...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>