<?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>228</bug_id>
          
          <creation_ts>2010-08-25 18:41:13 +0000</creation_ts>
          <short_desc>[toolchain] qemu/qemu-system-* not work even with libGL.so installed</short_desc>
          <delta_ts>2010-12-21 06:07:10 +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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Edwin Zhai">edwin.zhai</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</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>9394</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-25 18:41:13 +0000</bug_when>
    <thetext>With the qemu from toolchain tarball, qemu command will report libGL not found even I have libGL.so installed on system.

###########
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>9429</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-26 08:23:10 +0000</bug_when>
    <thetext>Just to confirm, is this a 32 bit toolchain on a 32 bit system?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9439</commentid>
    <comment_count>2</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-26 18:43:42 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Just to confirm, is this a 32 bit toolchain on a 32 bit system?

Yes. 

root@vt-nhm4:/opt/poky# uname -a
Linux vt-nhm4 2.6.32-21-generic-pae #32-Ubuntu SMP Fri Apr 16 09:39:35 UTC 2010 i686 GNU/Linux

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>9441</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-27 03:53:11 +0000</bug_when>
    <thetext>Just to further investigate this, can you run:

&apos;file /usr/lib/mesa/libGL.so.1.2&apos;
&apos;file /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm&apos;

and also attach the results of &quot;strace -f /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm&quot; so we can see which files this is accessing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9444</commentid>
    <comment_count>4</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-27 08:22:42 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Just to further investigate this, can you run:
&gt; &apos;file /usr/lib/mesa/libGL.so.1.2&apos;
&gt; &apos;file /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm&apos;
&gt; and also attach the results of &quot;strace -f
&gt; /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm&quot; so we can see
&gt; which files this is accessing.

Yes. Pls. see following log:

root@vt-nhm4:/opt/poky# file /usr/lib/mesa/libGL.so.1.2
/usr/lib/mesa/libGL.so.1.2: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

root@vt-nhm4:/opt/poky# file /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm
/opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped


root@vt-nhm4:/opt/poky# strace -f /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm
execve(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm&quot;, [&quot;/opt/poky/sysroots/i586-pokysdk-&quot;...], [/* 20 vars */]) = 0
brk(0)                                  = 0x8782000
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7803000
access(&quot;/etc/ld.so.preload&quot;, R_OK)      = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/i686/sse2/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/i686/sse2&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/i686/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/i686&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/sse2/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/sse2&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/i686/sse2/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/i686/sse2&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/i686/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/i686&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/sse2/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/sse2&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib&quot;, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/tls/i686/sse2/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/tls/i686/sse2&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/tls/i686/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/tls/i686&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/tls/sse2/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/tls/sse2&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/tls/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/tls&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/i686/sse2/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/i686/sse2&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/i686/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/i686&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/sse2/librt.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/sse2&quot;, 0xbfaa1b00) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/librt.so.1&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\33\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=34784, ...}) = 0
mmap2(NULL, 81688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb77ef000
mmap2(0xb77f7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xb77f7000
mmap2(0xb77f9000, 40728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb77f9000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libpthread.so.0&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/libpthread.so.0&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0H\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=84308, ...}) = 0
mmap2(NULL, 94712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb77d7000
mmap2(0xb77eb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb77eb000
mmap2(0xb77ed000, 4600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb77ed000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libutil.so.1&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/libutil.so.1&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\n\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=9692, ...}) = 0
mmap2(NULL, 12428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb77d3000
mmap2(0xb77d5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb77d5000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libcurl.so.5&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0n\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=262728, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77d2000
mmap2(NULL, 261916, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7792000
mmap2(0xb77d1000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3f) = 0xb77d1000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libz.so.1&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\26\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=75668, ...}) = 0
mmap2(NULL, 74404, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb777f000
mmap2(0xb7791000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7791000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libncurses.so.5&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\340\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=260216, ...}) = 0
mmap2(NULL, 265440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb773e000
mmap2(0xb7776000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x37) = 0xb7776000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libSDL-1.2.so.0&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`L\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=337664, ...}) = 0
mmap2(NULL, 364112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb76e5000
mmap2(0xb7736000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x51) = 0xb7736000
mmap2(0xb7738000, 24144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7738000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libX11.so.6&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340E\1\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=1156480, ...}) = 0
mmap2(NULL, 1156500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb75ca000
mmap2(0xb76e1000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x117) = 0xb76e1000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libm.so.6&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/libm.so.6&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@4\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=149332, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75c9000
mmap2(NULL, 151680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb75a3000
mmap2(0xb75c7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0xb75c7000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libdl.so.2&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/libdl.so.2&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \n\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0700, st_size=9676, ...}) = 0
mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb759f000
mmap2(0xb75a1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb75a1000
close(3)                                = 0
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/i686/sse2/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/i686/sse2&quot;, 0xbfaa19e8) = -1 ENOENT (No such file or directory)
open(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/i686/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/i686&quot;, 0xbfaa19e8) = -1 ENOENT (No such file or directory)
open(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/sse2/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/sse2&quot;, 0xbfaa19e8) = -1 ENOENT (No such file or directory)
open(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/tls&quot;, 0xbfaa19e8) = -1 ENOENT (No such file or directory)
open(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/i686/sse2/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/i686/sse2&quot;, 0xbfaa19e8) = -1 ENOENT (No such file or directory)
open(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/i686/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/i686&quot;, 0xbfaa19e8) = -1 ENOENT (No such file or directory)
open(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/sse2/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/sse2&quot;, 0xbfaa19e8) = -1 ENOENT (No such file or directory)
open(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(&quot;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/i586-nativesdk-pokysdk-linux/opt/poky/sysroots/i586-pokysdk-linux/usr/lib&quot;, 0xbfaa19e8) = -1 ENOENT (No such file or directory)
open(&quot;/var/run/ld.so.cache&quot;, O_RDONLY)  = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/lib/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/libGL.so&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
writev(2, [{&quot;/opt/poky/sysroots/i586-pokysdk-&quot;..., 61}, {&quot;: &quot;, 2}, {&quot;error while loading shared libra&quot;..., 36}, {&quot;: &quot;, 2}, {&quot;libGL.so&quot;, 8}, {&quot;: &quot;, 2}, {&quot;cannot open shared object file&quot;, 30}, {&quot;: &quot;, 2}, {&quot;No such file or directory&quot;, 25}, {&quot;\n&quot;, 1}], 10/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
) = 169
exit_group(127)                         = ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9445</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-27 08:47:28 +0000</bug_when>
    <thetext>So it never looks in /usr/lib/mesa/ for the lib.

On your system I&apos;d guess you have a /etc/ld.so.conf file which points to /etc/ld.so.conf.d/* and in there a GL.conf which details the /usr/lib/mesa/ directory. ldconfig will make sure this directory is processed and included in ld.so.cache.

In the log we see this access:

open(&quot;/var/run/ld.so.cache&quot;, O_RDONLY)  = -1 ENOENT (No such file or directory)

but this is a none standard path thanks to some patches in Poky. We should probably update the patch to move this into the /opt/poky directory and then symlink that one to the system one?

Can you try running:

LD_LIBRARY_PATH=/opt/poky/sysroots/i586-pokysdk-linux/lib:/opt/poky/sysroots/i586-pokysdk-linux/usr/lib:/usr/lib/mesa:/usr/lib/:/lib/ /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm

to prove that this is the only problem.

You could also try symlinking /var/run/ld.so.cache to /etc/ld.so.cache and trying the plain command and see if that works too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9454</commentid>
    <comment_count>6</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-28 22:03:45 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; So it never looks in /usr/lib/mesa/ for the lib.
&gt; On your system I&apos;d guess you have a /etc/ld.so.conf file which points to
&gt; /etc/ld.so.conf.d/* and in there a GL.conf which details the /usr/lib/mesa/
&gt; directory. ldconfig will make sure this directory is processed and included in
&gt; ld.so.cache.
&gt; In the log we see this access:
&gt; open(&quot;/var/run/ld.so.cache&quot;, O_RDONLY)  = -1 ENOENT (No such file or directory)
&gt; but this is a none standard path thanks to some patches in Poky. We should
&gt; probably update the patch to move this into the /opt/poky directory and then
&gt; symlink that one to the system one?
&gt; Can you try running:
&gt; LD_LIBRARY_PATH=/opt/poky/sysroots/i586-pokysdk-linux/lib:/opt/poky/sysroots/i586-pokysdk-linux/usr/lib:/usr/lib/mesa:/usr/lib/:/lib/
&gt; /opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm
&gt; to prove that this is the only problem.
&gt; You could also try symlinking /var/run/ld.so.cache to /etc/ld.so.cache and
&gt; trying the plain command and see if that works too.

You are right. After symlinking /var/run/ld.so.cache to /etc/ld.so.cache, the command can work now.

If I export LD_LIBRARY_PATH, the command &quot;/opt/poky/sysroots/i586-pokysdk-linux/usr/bin/qemu-system-arm&quot; can work, but other command like ls, dmesg, etc, will meet segment fault.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9530</commentid>
    <comment_count>7</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2010-09-01 21:57:09 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; 
&gt; open(&quot;/var/run/ld.so.cache&quot;, O_RDONLY)  = -1 ENOENT (No such file or directory)
&gt; 
&gt; but this is a none standard path thanks to some patches in Poky. We should
&gt; probably update the patch to move this into the /opt/poky directory and then
&gt; symlink that one to the system one?
&gt; 

RP,
I do not fully understand. Even we move this into /opt/poky/ld.so.cache, then symlink this to /etc/ld.so.cache on target image, we still have error when openning &quot;/opt/poky/ld.so.cache&quot; to run qemu on another machine.


Thanks,
edwin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9955</commentid>
    <comment_count>8</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2010-09-27 00:40:32 +0000</bug_when>
    <thetext>RP,
Any comments for my question?
Thanks,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10251</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-08 07:23:35 +0000</bug_when>
    <thetext>Commit ad042da70348e9f301a25b855248e8fbce495ab8 should fix this issue by creating an appropriate symlink.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10757</commentid>
    <comment_count>10</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-10-21 07:16:28 +0000</bug_when>
    <thetext>Verify with 20101018 build, the bug is fixed. There is no libGL.so error now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>