Summary: | mesa will not compile in 32bit mode on a 64bit machine that is setup to do that | ||
---|---|---|---|
Product: | Mesa | Reporter: | Kevin DeKorte <kdekorte> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | brianp, mattst88, stereotype441 |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Kevin DeKorte
2012-01-31 11:18:23 UTC
After additional research it appears the build triplet is wrong. I don't think that the --enable-32-bit flag is being honored by libglsl Yeah, I'm pretty sure this broke a while back. It -should- work if you do: CFLAGS='-m32' CXXFLAGS='-m32' ./autogen.sh --enable-32-bit --more-options-here Which also has the added benefit of allowing you to select whether you want -O2 or not. That said, it'd probably be nice to add -m32 to CFLAGS and CXXFLAGS when --enable-32-bit is passed. Matt, do you agree? If that fixes it, then yeah. The real solution is to automake everything and then kill the --enable-{32,64}-bit flags. Adding those flags before autogen does seem to fix it, but shouldn't that be what --enable-32-bit does? I think we want the --enable-32-bit so that we can build 32bit binaries on a 64bit machine so that we can run 32bit applications. (In reply to comment #4) > Adding those flags before autogen does seem to fix it, but shouldn't that be > what --enable-32-bit does? Yes. Please send a patch. :) (In reply to comment #5) > I think we want the --enable-32-bit so that we can build 32bit binaries on a > 64bit machine so that we can run 32bit applications. No, with proper automake you specify --build, --target, --host to do this, not hacky --enable-32-bit flags. 32-bit-on-64-bit builds have been broken for some time. I report this back in October of 2011: bug #41700. I had this working yesterday and with the patch in bug #45466 I can get to compile again. Patches reverts. So, fixed, I guess. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.