Summary: | mesa 32bit build fails with llvm enabled (cross compilation) | ||
---|---|---|---|
Product: | Mesa | Reporter: | Luzipher <luziphermcleod> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED NOTOURBUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
build.log of the 32bit build
emerge -pqv mesa emerge --info messages produced by compilers while running configure |
Description
Luzipher
2014-01-23 23:09:05 UTC
Created attachment 92694 [details]
emerge -pqv mesa
Created attachment 92695 [details]
emerge --info
Created attachment 92696 [details]
messages produced by compilers while running configure
Works for me with --with-llvm-prefix=<path to 32-bit LLVM prefix> instead of LLVM_CONFIG=<...> First, thanks for looking at this ! I'm unable to build without the LLVM_CONFIG set. If I remove it, the build doesn't find LLVM during the configure phase (message ist something along the line "LLVM > 3.3 needed"). You wrote "instead", so I tried to omit it, but does LLVM_CONFIG really break the build ? What exactly do you mean with "<path to 32-bit LLVM prefix>" ? I tried the following paths, all with the same result as described above: /usr/lib32 /usr/local /usr/include /usr/include/gentoo-multilib/x86 /usr/include/gentoo-multilib/x86/llvm And do you build with "llvm-shared-libs" enabled ? I don't - if I try, configure fails with "llvm-config.x86 not found". After writing the last comment, I thought about the error message I got when trying to build with "llvm-shared-libs" enabled. There is indeed no /usr/bin/llvm-config.x86 on my system, but there is a /usr/bin/i686-pc-linux-gnu-llvm-config-x86 executable. It turns out that there is a simple workaround: cd /usr/bin ln -s i686-pc-linux-gnu-llvm-config-x86 llvm-config.x86 With that symbolic link, Mesa builds for amd64 as well as x86 (with llvm-shared-libs enabled). So this seems to be a gentoo / multilib-portage problem with either correctly installing llvm or setting up the Mesa build environment. I'm going to alert the gentoo devs to this. |
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.