Summary: | [bisected] 0d108116bd80b757fb01a84a9f1946ef870b57b8 breaks osmesa when cross compiling | ||
---|---|---|---|
Product: | Mesa | Reporter: | Alexandre Demers <alexandre.f.demers> |
Component: | Mesa core | Assignee: | Matt Turner <mattst88> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | medium | CC: | mesa-dev |
Version: | git | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://lists.freedesktop.org/archives/mesa-dev/2013-January/033797.html | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Alexandre Demers
2013-01-23 00:49:04 UTC
Now that all of the build system is converted to automake, we can do real cross compile builds: CFLAGS="-m32" CXXFLAGS="-m32" ./configure --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu This works for me and builds a 32-bit OSMesa. Let me know if it does for you. (In reply to comment #1) > Now that all of the build system is converted to automake, we can do real > cross compile builds: > > CFLAGS="-m32" CXXFLAGS="-m32" ./configure --build=x86_64-pc-linux-gnu > --host=i686-pc-linux-gnu > > This works for me and builds a 32-bit OSMesa. Let me know if it does for you. I'll try with the --build and --host options, however it was not needed before. Also, I'm wondering why they should be set if we have --enable-32-bit and --enable-64-bit options we can push at autogen.sh. These two options should take care of it. Otherwise, they are useless and they should be removed. (In reply to comment #2) > I'll try with the --build and --host options, however it was not needed > before. Also, I'm wondering why they should be set if we have > --enable-32-bit and --enable-64-bit options we can push at autogen.sh. --build and --host is how autotools cross compiles. > These > two options should take care of it. Otherwise, they are useless and they > should be removed. They haven't worked in years, so.. :) (In reply to comment #3) > (In reply to comment #2) > > I'll try with the --build and --host options, however it was not needed > > before. Also, I'm wondering why they should be set if we have > > --enable-32-bit and --enable-64-bit options we can push at autogen.sh. > > --build and --host is how autotools cross compiles. > > > These > > two options should take care of it. Otherwise, they are useless and they > > should be removed. > > They haven't worked in years, so.. :) Good news, it works with the options. I've been able to remove other variables I had to set to make it work before. I still need to set LLVM_CONFIG though. In the past, I was able to use --enable-XX-bit without any magic until about a year ago. Then, I added CFLAGS and CXXFLAGS with some paths for libraries. But if you tell me the options are broken and won't be fixed, I'm in favor of getting --enable-XX-bit out and documenting how to use the --build and --host options. I think this bug can be closed, but devs should take position about getting rid of the --enable-XX-bit options. Patch sent. (In reply to comment #5) > Patch sent. ... Anyone able to test the patch? (In reply to comment #6) > (In reply to comment #5) > > Patch sent. > > ... Anyone able to test the patch? Yes I can. What should be tested exactly? (In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > Patch sent. > > > > ... Anyone able to test the patch? > > Yes I can. What should be tested exactly? Testing that 32-bit builds work on 64-bit systems. (In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #6) > > > (In reply to comment #5) > > > > Patch sent. > > > > > > ... Anyone able to test the patch? > > > > Yes I can. What should be tested exactly? > > Testing that 32-bit builds work on 64-bit systems. I should have been more precise: Do you mean I should test it without any CFLAGS="-m32", CXXFLAGS="-m32", --build=x86_64-pc-linux-gnu and --host=i686-pc-linux-gnu flags? (In reply to comment #9) > (In reply to comment #8) > > (In reply to comment #7) > > > (In reply to comment #6) > > > > (In reply to comment #5) > > > > > Patch sent. > > > > > > > > ... Anyone able to test the patch? > > > > > > Yes I can. What should be tested exactly? > > > > Testing that 32-bit builds work on 64-bit systems. > > I should have been more precise: Do you mean I should test it without any > CFLAGS="-m32", CXXFLAGS="-m32", --build=x86_64-pc-linux-gnu and > --host=i686-pc-linux-gnu flags? Oh, I see, sorry. Try to build the way that you were when you encountered this problem, CFLAGS="-m32" CXXFLAGS="-m32" ./configure --enable-32-bit (In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #8) > > > (In reply to comment #7) > > > > (In reply to comment #6) > > > > > (In reply to comment #5) > > > > > > Patch sent. > > > > > > > > > > ... Anyone able to test the patch? > > > > > > > > Yes I can. What should be tested exactly? > > > > > > Testing that 32-bit builds work on 64-bit systems. > > > > I should have been more precise: Do you mean I should test it without any > > CFLAGS="-m32", CXXFLAGS="-m32", --build=x86_64-pc-linux-gnu and > > --host=i686-pc-linux-gnu flags? > > Oh, I see, sorry. > > Try to build the way that you were when you encountered this problem, > > CFLAGS="-m32" CXXFLAGS="-m32" ./configure --enable-32-bit When going back to my previous command (the used when I reported this bug), it now works with your patch. Committed. |
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.