<?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>163</bug_id>
          
          <creation_ts>2010-07-29 16:46:50 +0000</creation_ts>
          <short_desc>mesa-dri recipe build fails on 64bit host</short_desc>
          <delta_ts>2010-12-21 06:09:40 +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>OE-Core</product>
          <component>core</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</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 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nitin Kamble">nitin.a.kamble</reporter>
          <assigned_to name="Ke Yu">ke.yu</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>nitin.a.kamble</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>9157</commentid>
    <comment_count>0</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-07-29 16:46:50 +0000</bug_when>
    <thetext>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 &quot;compile&quot; program. The build time generated &quot;compile&quot; 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&apos;
| ../../../../../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&apos;
| 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&apos;
| 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&apos;
| 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 &quot;compile&quot; program dynamically links with the i586 version glibc generated by poky for the target.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9519</commentid>
    <comment_count>1</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2010-09-01 19:00:26 +0000</bug_when>
    <thetext>It is fixed by commit: d9b1d4312cf1f981c5201b027b18594e9ad5a861
&quot;mesa-dri: fix x86-64 target compilation&quot; (http://git.pokylinux.org/?p=poky.git;a=commit;h=d9b1d4312cf1f981c5201b027b18594e9ad5a861)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9528</commentid>
    <comment_count>2</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2010-09-01 21:24:16 +0000</bug_when>
    <thetext>Add reporter Nitin to CC list for Verification</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9550</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-09-02 08:52:26 +0000</bug_when>
    <thetext>The current build does not show this issue anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>