Summary: | media-libs/mesa-10.1.1 fails to build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nikoli <nikoli> |
Component: | [OLD] Library | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ab4bd, alexander, derk.tebokkel, fabio.coatti, me, randy-andy- |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://cgit.freedesktop.org/mesa/mesa/commit/?id=065b6ca52b6a34b1fa6713f41641738401e47710 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Nikoli
2014-04-29 02:25:08 UTC
Errr... I think this change: - $(use_with llvm-shared-libs) \ + --enable-llvm-shared-libs \ was supposed to say --with-llvm-shared-libs Mesa is actually compiled against the static libraries for me (which fails if they are not available). (In reply to Jana Saout from comment #1) > was supposed to say > > --with-llvm-shared-libs Yeah. Even though mesa compiles fine on my system without this option (which is strange because I have llvm[ncurses]), it triggers PaX memory protections, so I even can't start X. Changing --enable-llvm-shared-libs to --with-llvm-shared-libs solved the issue for me. Indeed, fixing this typo solves problem. * QA Notice: Unrecognized configure options: * * --with-llvm-shared-libs * --with-llvm-shared-libs Seems this option should just be removed from configure. If you look at configure/configure.ac, you will find that {enable,with}-llvm-shared-libs options are messed up. %) # Check whether --enable-llvm-shared-libs was given. if test "${enable_llvm_shared_libs+set}" = set; then : enableval=$enable_llvm_shared_libs; else with_llvm_shared_libs=yes fi So "--enable-llvm-shared-libs" option do absolutely nothing, but if it is not passed to configure, then mesa is built with llvm shared libs. %) diff -u /var/tmp/portage/media-libs/mesa-10.1.0/work/Mesa-10.1.0/configure.ac /var/tmp/portage/media-libs/mesa-10.1.1/work/Mesa-10.1.1/configure.ac [snip] @@ -1529,11 +1546,11 @@ [enable_gallium_llvm="$enableval"], [enable_gallium_llvm=auto]) -AC_ARG_WITH([llvm-shared-libs], - [AS_HELP_STRING([--with-llvm-shared-libs], - [link with LLVM shared libraries @<:@default=disabled@:>@])], +AC_ARG_ENABLE([llvm-shared-libs], + [AS_HELP_STRING([--enable-llvm-shared-libs], + [link with LLVM shared libraries @<:@default=enabled@:>@])], [], - [with_llvm_shared_libs=no]) + [with_llvm_shared_libs=yes]) AC_ARG_WITH([llvm-prefix], [AS_HELP_STRING([--with-llvm-prefix], [snip] The bug was introduced upstream in http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d7c8836a6076a5006763fb5fab7e7882e03659 and fixed in http://cgit.freedesktop.org/mesa/mesa/commit/?id=065b6ca52b6a34b1fa6713f41641738401e47710 No, it was introduces in http://cgit.freedesktop.org/mesa/mesa/commit/?h=10.1&id=933215ac63e43c7960e8e71f42748007ce810df7 I wasn't sure if there was already an upstream bug, so I opened one: https://bugs.freedesktop.org/show_bug.cgi?id=78095 Thanks for the analysis, Alexander & Nikoli. Should be fixed now. + 01 May 2014; Michał Górny <mgorny@gentoo.org> mesa-10.1.1.ebuild: + Remove --enable-llvm-shared-libs since the switch is broken in this version + and causes shared linking to be disabled. In fact, the default is for shared + linking to be enabled, so removing the switch leaves it that way. Would be nice to revbump mesa-10.1.1. See: https://bugs.gentoo.org/show_bug.cgi?id=509272 https://bugs.gentoo.org/show_bug.cgi?id=509034#c2 |