<?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>201</bug_id>
          
          <creation_ts>2010-08-05 23:37:59 +0000</creation_ts>
          <short_desc>[toolchain] lack of libGL.so to run qemu/qemu-system-* from toolchain tarball</short_desc>
          <delta_ts>2010-12-21 06:07:21 +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>0.9</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Edwin Zhai">edwin.zhai</assigned_to>
          <cc>josh</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>scott.a.garman</cc>
    
    <cc>sgw</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>9272</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-05 23:37:59 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.04 LTS 
Kernel: 2.6.32-21-generic-pae 
toolchain tarball from milestone build (20100731) on autobuilder,
http://yoctobuild01.jf.intel.com/milestone/20100731-1/.
poky commit info: 81315907f9ab575a7e2294577d285082494d74ea from poky master
tree

The qemu/qemu-system-* from toolchain tarball built from autobuilder need shared libraryies, like libGL.so, to run.

#####
root@vt-nhm4:/opt/poky# ./sysroots/i586-pokysdk-linux/usr/bin/qemu
./sysroots/i586-pokysdk-linux/usr/bin/qemu: error while loading shared libraries: libGL.so: cannot open shared object file: No such file or directory
#####</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9273</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-06 01:55:08 +0000</bug_when>
    <thetext>Its expected that the system running the SDK will have some kind of libGL available. We can&apos;t ship this particular library ourselves as its system and graphics stack specific.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9274</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2010-08-06 01:58:50 +0000</bug_when>
    <thetext>I remember that we have same error before, when just running qemu from poky build directory. Later some sanity checks are added with informative hint to user which packages should be installed. Could we have same hint for SDK?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9279</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-06 10:38:49 +0000</bug_when>
    <thetext>Yes, this sounds like the best way to resolve this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9364</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2010-08-24 09:13:24 +0000</bug_when>
    <thetext>Edwin, have you looked at this yet? If not I have a patch in my local git tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9366</commentid>
    <comment_count>5</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2010-08-24 16:58:41 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Edwin, have you looked at this yet? If not I have a patch in my local git tree.

Josh,
Thanks, Can you post your commits?

Talked with Jiajun, he said he has such issue even when libGL.so installed. Jiajun, can you provide more details?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9368</commentid>
    <comment_count>6</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-24 18:44:06 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; Edwin, have you looked at this yet? If not I have a patch in my local git tree.
&gt; Josh,
&gt; Thanks, Can you post your commits?
&gt; Talked with Jiajun, he said he has such issue even when libGL.so installed.
&gt; Jiajun, can you provide more details?

Yes. My system has libGL.so installed.
###########
root@vt-nhm4:/opt/poky# /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm
/opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm: error while loading shared libraries: libGL.so: cannot open shared object file: No such file or directory

root@vt-nhm4:/opt/poky# ldd /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm | grep libGL
        libGL.so =&gt; /usr/lib/mesa/libGL.so (0xb74d4000)

root@vt-nhm4:/opt/poky# ls /usr/lib/mesa/libGL.so* -l
lrwxrwxrwx 1 root root     10 2010-06-10 04:08 /usr/lib/mesa/libGL.so -&gt; libGL.so.1
lrwxrwxrwx 1 root root     12 2010-06-10 04:08 /usr/lib/mesa/libGL.so.1 -&gt; libGL.so.1.2
-rw-r--r-- 1 root root 403812 2010-04-28 22:43 /usr/lib/mesa/libGL.so.1.2
###########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9372</commentid>
    <comment_count>7</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2010-08-25 03:20:28 +0000</bug_when>
    <thetext>Hmm, OK - I&apos;ve added a patch to check for the existence of libGL when using poky-qemu with 66790ecb4a5faee06b844b41e2524af640fdb3da

poky-qemu: check for existence of required libraries

I think that fixes the initially reported bug, so I&apos;m closing it.

Jiajun, can you open a new bug for the issue of qemu not working even though you have libGL?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9395</commentid>
    <comment_count>8</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-25 18:41:45 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Hmm, OK - I&apos;ve added a patch to check for the existence of libGL when using
&gt; poky-qemu with 66790ecb4a5faee06b844b41e2524af640fdb3da
&gt; poky-qemu: check for existence of required libraries
&gt; I think that fixes the initially reported bug, so I&apos;m closing it.
&gt; Jiajun, can you open a new bug for the issue of qemu not working even though
&gt; you have libGL?

Thanks, Josh.
I open a new bug, bug 228 for the libGL.so not found issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9522</commentid>
    <comment_count>9</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-09-01 19:38:28 +0000</bug_when>
    <thetext>Verified the bug, running poky-qemu without libGL.so will cause warning now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>