Bug 323

Summary: gen_matypes fails to execute during build of Mesa when using cross toolchain
Product: buildroot Reporter: Jim Persson <jim-bz>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: x86 and x86_64 Target: i686
Build:
Attachments: patch to build gen_matypes using the host compiler
Configuration file used in the test

Description Jim Persson 2009-05-08 08:01:35 UTC
Created attachment 291 [details]
patch to build gen_matypes using the host compiler

gen_matypes is built with the cross toolchain. In my case i was using the uClibc toolchain and gen_matypes is built depending on uClibc.

gen_matypes is executed on the build host during the build in order to generate an .h-file. This execution fails if the build host does not have uClibc.

A simple solution is to build gen_matypes using the host compiler.

I have attached a proposed patch that fixes the problem:

package/x11r7/mesa3d/mesa3d-7.2-gen_matypes-fix.patch

Patch have been tested successfully on x86 and x86_64 build hosts using i686 as a target architecture.
Comment 1 Jim Persson 2009-05-08 08:02:21 UTC
Created attachment 293 [details]
Configuration file used in the test
Comment 2 Peter Korsgaard 2009-05-19 15:35:35 UTC
Thanks, committed