[Mesa-dev] [Bug 44618] New: Cross-compilation broken by glsl builtin_compiler
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jan 10 02:07:11 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=44618
Bug #: 44618
Summary: Cross-compilation broken by glsl builtin_compiler
Classification: Unclassified
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Other
AssignedTo: mesa-dev at lists.freedesktop.org
ReportedBy: thierry.reding at avionic-design.de
When cross-compiling Mesa 7.11 and later, it errors out when trying to generate
the glsl builtins. The reason is that the builtin_compiler binary is built for
the host system instead of the build system. This was already discussed after
the commit that introduced this error but was never solved:
http://lists.freedesktop.org/archives/mesa-dev/2011-January/004780.html
AFAICT there are two solutions:
1) Fix the build system to generate the builtin_compiler for the build system
using something like CC_FOR_BUILD (I don't know if SCons has an
equivalent)
which will require pretty much all of the src/glsl subdirectory to be
built
twice.
2) Modify the build system to allow the builtin_compiler to be overridden,
such that Mesa can be built once for the build host, and the resulting
builtin_compiler binary can be used in the Mesa cross-build.
I believe 1) would be the best option. 2) is cumbersome and will require two
complete builds, while 1) would only require parts of the src/glsl directory
to be rebuilt. 1) also has the advantage that the build will work
out-of-the-box
without the user having to follow special instructions.
I'm willing to spend some time on this, but wanted to discuss things first.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list