https://bugs.freedesktop.org/show_bug.cgi?id=68544
Priority: medium Bug ID: 68544 Assignee: dri-devel@lists.freedesktop.org Summary: cannot build mesa 9.2 without llvm Severity: normal Classification: Unclassified OS: All Reporter: xavier.miller@cauwe.org Hardware: Other Status: NEW Version: 9.2 Component: Drivers/Gallium/i915g Product: Mesa
See https://bugs.gentoo.org/show_bug.cgi?id=482134
Using Gentoo on a x86/i915 configuration, LLVM is disabled.
emerge -pv1 mesa
These are the packages that would be merged, in order:
Calculating dependencies ... done! [ebuild U ] media-libs/mesa-9.2.0_rc1 [9.1.6] USE="classic egl gallium nptl -bindist -debug -gbm -gles1 -gles2 -llvm -opencl% -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau -wayland -xa -xorg -xvmc (-shared-glapi%*)" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" VIDEO_CARDS="intel (-freedreno) -i915 -i965 -ilo% -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware" 0 kB
In file included from ../../../../src/gallium/auxiliary/gallivm/lp_bld_type.h:42:0, from lp_bld_blend.c:31: ../../../../src/gallium/auxiliary/gallivm/lp_bld.h:49:27: fatal error: llvm-c/Core.h: No such file or directory compilation terminated. gmake[3]: *** [lp_bld_blend.lo] Erreur 1 gmake[3]: *** Attente des tâches non terminées.... In file included from ../../../../src/gallium/auxiliary/gallivm/lp_bld_type.h:42:0, from lp_bld_blend_aos.c:50: ../../../../src/gallium/auxiliary/gallivm/lp_bld.h:49:27: fatal error: llvm-c/Core.h: No such file or directory compilation terminated. gmake[3]: *** [lp_bld_blend_aos.lo] Erreur 1 In file included from ../../../../src/gallium/auxiliary/gallivm/lp_bld_type.h:42:0, from lp_bld_alpha.c:37: ../../../../src/gallium/auxiliary/gallivm/lp_bld.h:49:27: fatal error: llvm-c/Core.h: No such file or directory compilation terminated.
https://bugs.freedesktop.org/show_bug.cgi?id=68544
--- Comment #1 from Kris email@zero-io.net --- Created attachment 84625 --> https://bugs.freedesktop.org/attachment.cgi?id=84625&action=edit Fix order of "and"/"or" for AM_CONDITIONAL
Seems to be problem within configure.ac, occuring since:
http://cgit.freedesktop.org/mesa/mesa/commit/configure.ac?id=0d3b1b0e
Added possible patch, needs testing.
https://bugs.freedesktop.org/show_bug.cgi?id=68544
--- Comment #2 from Emil Velikov emil.l.velikov@gmail.com --- Seems like test always priorities the _and_ over _or_ :)
Kris' patch does the right thing, although it can be simplified to either:
test "x$HAVE_GALLIUM_I915" = xyes -o "x$HAVE_GALLIUM_SOFTPIPE" = xyes && test "x$MESA_LLVM" = x1
or
test "x$HAVE_GALLIUM_I915" = xyes -a "x$MESA_LLVM" = x1 -o "x$HAVE_GALLIUM_SOFTPIPE" = xyes -a "x$MESA_LLVM" = x1
Feel free to test either one(all three :P) and send the git patch to the ML mesa-dev@lists.freedesktop.org
Thanks for spotting this :)
https://bugs.freedesktop.org/show_bug.cgi?id=68544
--- Comment #3 from Xavier Miller xavier.miller@cauwe.org --- The proposed patch worked for me (Gentoo Linux, mesa-9.2.0_rc2)
https://bugs.freedesktop.org/show_bug.cgi?id=68544
--- Comment #4 from Chí-Thanh Christopher Nguyễn chithanh@gentoo.org --- Patch sent: http://lists.freedesktop.org/archives/mesa-dev/2013-August/043891.html
https://bugs.freedesktop.org/show_bug.cgi?id=68544
--- Comment #5 from Kris email@zero-io.net --- Cleaner patch already in mailing list:
http://lists.freedesktop.org/archives/mesa-dev/2013-August/043882.html
https://bugs.freedesktop.org/show_bug.cgi?id=68544
--- Comment #6 from Chí-Thanh Christopher Nguyễn chithanh@gentoo.org --- Ah sorry, I missed that somehow.
https://bugs.freedesktop.org/show_bug.cgi?id=68544
Matt Turner mattst88@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Assignee|dri-devel@lists.freedesktop |mattst88@gmail.com |.org | CC| |dri-devel@lists.freedesktop | |.org
--- Comment #7 from Matt Turner mattst88@gmail.com --- Committed, thanks! Should get picked to the 9.2 branch before release.
dri-devel@lists.freedesktop.org