Bug 163

Summary: mesa-dri recipe build fails on 64bit host
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Nitin Kamble <nitin.a.kamble>
Component: coreAssignee: Ke Yu <ke.yu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: kevin.tian, meta.mr.watcher, meta.watcher, nitin.a.kamble, sgw
Version: 0.9   
Target Milestone: 0.9 M3   
Hardware: x86   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Nitin Kamble 2010-07-29 16:46:50 UTC
This issue happens only on 64bit build host which does not have 32bit glibc installed.

While building on 64bit host, mesa-dri recipe build fails while running generated "compile" program. The build time generated "compile" programs tries to dynamically links with 32bit glibc on the host. If you install 32bit glibc on the 64bit build host then the issues goes away.

Command Run:
MACHINE=qemux86 bitbake mesa-dri

Error seen:
| make[3]: Entering directory `/home/nitin/build/build0/tmp/work/i586-poky-linux/mesa-dri-7.8.2-r0/Mesa-7.8.2/src/mesa/shad
er/slang/library'
| ../../../../../src/glsl/apps/compile fragment slang_common_builtin.gc slang_common_builtin_gc.h
| make[3]: ../../../../../src/glsl/apps/compile: Command not found
| make[3]: *** [slang_common_builtin_gc.h] Error 127
| make[3]: Leaving directory `/home/nitin/build/build0/tmp/work/i586-poky-linux/mesa-dri-7.8.2-r0/Mesa-7.8.2/src/mesa/shade
r/slang/library'
| make[2]: *** [glsl_builtin] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory `/home/nitin/build/build0/tmp/work/i586-poky-linux/mesa-dri-7.8.2-r0/Mesa-7.8.2/src/mesa'
| make[1]: *** [subdirs] Error 1
| make[1]: Leaving directory `/home/nitin/build/build0/tmp/work/i586-poky-linux/mesa-dri-7.8.2-r0/Mesa-7.8.2/src'
| make: *** [default] Error 1
| FATAL: oe_runmake failed
NOTE: package mesa-dri-7.8.2-r0: task do_compile: Failed

We discussed it on the jabber, and proposed 2 solutions to this issue:
1. give warning that build host does not have 32bit glibc installed
2. make generated "compile" program dynamically links with the i586 version glibc generated by poky for the target.
Comment 1 Ke Yu 2010-09-01 19:00:26 UTC
It is fixed by commit: d9b1d4312cf1f981c5201b027b18594e9ad5a861
"mesa-dri: fix x86-64 target compilation" (http://git.pokylinux.org/?p=poky.git;a=commit;h=d9b1d4312cf1f981c5201b027b18594e9ad5a861)
Comment 2 Ke Yu 2010-09-01 21:24:16 UTC
Add reporter Nitin to CC list for Verification
Comment 3 Nitin Kamble 2010-09-02 08:52:26 UTC
The current build does not show this issue anymore.