Bug 201

Summary: [toolchain] lack of libGL.so to run qemu/qemu-system-* from toolchain tarball
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jiajun Xu <jiajun.xu>
Component: meta-yoctoAssignee: Edwin Zhai <edwin.zhai>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: High CC: josh, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, scott.a.garman, sgw
Version: 0.9   
Target Milestone: 0.9 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Jiajun Xu 2010-08-05 23:37:59 UTC
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
#####
Comment 1 Richard Purdie 2010-08-06 01:55:08 UTC
Its expected that the system running the SDK will have some kind of libGL available. We can't ship this particular library ourselves as its system and graphics stack specific.
Comment 2 Kevin Tian 2010-08-06 01:58:50 UTC
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?
Comment 3 Richard Purdie 2010-08-06 10:38:49 UTC
Yes, this sounds like the best way to resolve this
Comment 4 Joshua Lock - Disabled 2010-08-24 09:13:24 UTC
Edwin, have you looked at this yet? If not I have a patch in my local git tree.
Comment 5 Edwin Zhai 2010-08-24 16:58:41 UTC
(In reply to comment #4)
> 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?
Comment 6 Jiajun Xu 2010-08-24 18:44:06 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > 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?

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 => /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 -> libGL.so.1
lrwxrwxrwx 1 root root     12 2010-06-10 04:08 /usr/lib/mesa/libGL.so.1 -> libGL.so.1.2
-rw-r--r-- 1 root root 403812 2010-04-28 22:43 /usr/lib/mesa/libGL.so.1.2
###########
Comment 7 Joshua Lock - Disabled 2010-08-25 03:20:28 UTC
Hmm, OK - I'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'm closing it.

Jiajun, can you open a new bug for the issue of qemu not working even though you have libGL?
Comment 8 Jiajun Xu 2010-08-25 18:41:45 UTC
(In reply to comment #7)
> Hmm, OK - I'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'm closing it.
> Jiajun, can you open a new bug for the issue of qemu not working even though
> you have libGL?

Thanks, Josh.
I open a new bug, bug 228 for the libGL.so not found issue.
Comment 9 Jiajun Xu 2010-09-01 19:38:28 UTC
Verified the bug, running poky-qemu without libGL.so will cause warning now.