Bug 2714

Summary: qemu-native do compile error
Product: [Build System, Metadata & Runtime] BitBake Reporter: Laurentiu Serban <laurentiu.serban>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, josh, poky.bs.watcher, poky.watcher, sgw
Version: 1.1.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Laurentiu Serban 2012-07-06 22:40:40 UTC
An error occurs when compiling qemu-native:
This is the log (log.do_compile6446)

NOTE: make -j 8
  LINK  i386-softmmu/qemu
  LINK  x86_64-softmmu/qemu-system-x86_64
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libGL.so: undefined reference to `_XGetRequest'
collect2: ld returned 1 exit status
make[1]: *** [qemu] Error 1
make: *** [subdir-i386-softmmu] Error 2
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libGL.so: undefined reference to `_XGetRequest'
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-x86_64] Error 1
make: *** [subdir-x86_64-softmmu] Error 2
ERROR: oe_runmake failed
ERROR: Function 'do_compile' failed (see /home/lserban/work/edison/build/tmp/work/x86_64-linux/qemu-native-0.14.0-r4/temp/log.do_compile.6446 for further information)
Comment 1 Laurentiu Serban 2012-07-07 17:20:48 UTC
This occurs on Ubuntu 12.04
Comment 3 Richard Purdie 2012-07-09 12:01:22 UTC
Fixing this would mean backporting the XGetRequest patch against libx11 from 1.4.4.back to 1.3.4 and also backporting the libsdl patch. I'm not sure this is desireable for a release like edison at this point.
Comment 4 Saul Wold 2012-07-09 21:29:55 UTC
when did our GL patch get updated for 1.1.2?  That itself seems strange or did this not work correctly in 1.1 also?
Comment 5 Joshua Lock - Disabled 2012-07-10 23:02:21 UTC
I did much of the 1.1.2 development on Ubuntu 12.04 and whilst I did see this issue it was not reproducible with a clean build directory.

IIRC I determined that this issue was due to some of my build directory having existed from Ubuntu 11.10, before I updated to Ubuntu 12.04.

I'd be interested to know if you can reproduce this with a clean build dir and shared state. This should be pretty easy to test as relatively few recipes need building.

I'll be at a machine on which I can test this later in the week if nobody can get to it before then.
Comment 6 Jessica 2012-07-12 15:15:17 UTC
Given the stage and resource limitation of 1.1.2, we won't be able to fix this issue for 1.1.2 but please try to capture the clear steps to reproduce the bug so we can use that in the 1.1.2 release note
Comment 7 Joshua Lock - Disabled 2012-07-12 21:51:07 UTC
Just to confirm on Ubunutu 12.04 LTS (64-bit) I just did a fresh clone of poky, switched branch to Edison and ran a build with a vanilla local.conf (other than bumping BB_NUMBER_THREADS and PARALLEL_MAKE) and did not see this issue.