Bug 323 - gen_matypes fails to execute during build of Mesa when using cross toolchain
Summary: gen_matypes fails to execute during build of Mesa when using cross toolchain
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-08 08:01 UTC by Jim Persson
Modified: 2009-05-19 15:35 UTC (History)
1 user (show)

See Also:
Host: x86 and x86_64
Target: i686
Build:


Attachments
patch to build gen_matypes using the host compiler (529 bytes, patch)
2009-05-08 08:01 UTC, Jim Persson
Details
Configuration file used in the test (28.34 KB, application/octet-stream)
2009-05-08 08:02 UTC, Jim Persson
Details

Note You need to log in before you can comment on or make changes to this bug.
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