Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639880 - media-libs/mesa-17.1.10 fails to build
Summary: media-libs/mesa-17.1.10 fails to build
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-05 07:01 UTC by Simeon Simeonov
Modified: 2017-12-11 22:33 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
buidllog (build.tar.gz,34.67 KB, application/gzip)
2017-12-05 19:49 UTC, Andrew Ammerlaan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Simeonov 2017-12-05 07:01:17 UTC
After running:

# emerge -uavDNt --with-bdeps\=y world
mesa is the first of two packages to be upgraded:
[ebuild     U  ]  media-libs/mesa-17.1.10::gentoo [17.0.6::gentoo]
it fails with:
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"17.1.10\" "-DPACKAGE_STRING=\"Mesa 17.1.10\"" "-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"17.1.10\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1 -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 -DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=1 -DMAJOR_IN_SYSMACROS=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -I. -I/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10/src/gallium/auxiliary -I/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10/src/loader -I../../../src/compiler/nir -I/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10/src/gallium/auxiliary/util -I/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10/include -I/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10/src -I/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10/src/gallium/include -I/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10/src/gallium/auxiliary -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -DHAVE_DLOPEN -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_ST_VDPAU -DHAVE_LLVM=0x0500 -DMESA_LLVM_VERSION_PATCH=0 -fvisibility=hidden -Werror=pointer-arith -Werror=vla -I/usr/include/libdrm -I/usr/lib64/llvm/5/include -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/include/libdrm -march=haswell -O2 -pipe -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-math-errno -fno-trapping-math -c /var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10/src/gallium/auxiliary/vl/vl_winsys_dri.c  -fPIC -DPIC -o vl/.libs/libgalliumvlwinsys_la-vl_winsys_dri.o
libtool: link: x86_64-pc-linux-gnu-ar cru .libs/libgalliumvl_stub.a vl/.libs/vl_stubs.o 
libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libgalliumvl_stub.a
make[4]: *** [Makefile:2337: gallivm/lp_bld_misc.lo] Error 1
make[4]: *** Waiting for unfinished jobs....

As you can see from the information below I am running a completely upgraded 
default/linux/amd64/17.0/no-multilib system.

# emerge --info '=media-libs/mesa-17.1.10::gentoo' 
Portage 2.3.13 (python 2.7.14-final-0, default/linux/amd64/17.0/no-multilib, gcc-6.4.0, glibc-2.25-r9, 4.14.3 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.3-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-gentoo-2.4.1
KiB Mem:    16332936 total,  13850976 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Tue, 05 Dec 2017 06:00:01 +0000
Head commit of repository gentoo: ab02997074835a280007fe5dd14deab30cd5b752
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Q3AEULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=haswell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb bindist bluetooth bluray branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups custom-cflags cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran fuse gdbm gif glamor gpm gtk gtk3 iconv icu ipv6 jpeg jpeg2k lcms libnotify mad mng modules mp3 mp4 mpeg ncurses nls nouveau nptl ogg opencl opengl openmp pam pango pcre pdf png policykit ppds python qt qt3support qt5 readline schroedinger sdl seccomp secure-delete session smp spell ssl startup-notification svg theora threads threadsafe tiff truetype type1 udev udisks unicode upower usb v4l2 vdpau vorbis vpx wavpack wxwidgets x264 x265 xattr xcb xml xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard libinput mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


# emerge -pqv '=media-libs/mesa-17.1.10::gentoo'
[ebuild     U ] media-libs/mesa-17.1.10 [17.0.6] USE="bindist classic dri3 egl gallium gbm llvm nptl opencl vdpau xvmc* -d3d9 -debug -gles1 -gles2* -openmax -osmesa -pax_kernel -pic (-selinux) -unwind% -vaapi -valgrind -vulkan -wayland -xa" VIDEO_CARDS="nouveau (-freedreno) -i915 -i965 (-imx) -intel -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) (-vivante) -vmware"
Comment 1 Simeon Simeonov 2017-12-05 09:55:39 UTC
Build log:
>>> Messages generated by process 4103 on 2017-12-05 06:47:06 CET for package media-libs/mesa-17.1.10:

ERROR: compile
ERROR: media-libs/mesa-17.1.10::gentoo failed (compile phase):
  emake failed

If you need support, post the output of `emerge --info '=media-libs/mesa-17.1.10::gentoo'`,
the complete build log and the output of `emerge -pqv '=media-libs/mesa-17.1.10::gentoo'`.
The complete build log is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/environment'.
Working directory: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_64.amd64'
S: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10'

>>> Messages generated by process 10320 on 2017-12-05 07:25:20 CET for package media-libs/mesa-17.1.10:

ERROR: compile
ERROR: media-libs/mesa-17.1.10::gentoo failed (compile phase):
  emake failed

If you need support, post the output of `emerge --info '=media-libs/mesa-17.1.10::gentoo'`,
the complete build log and the output of `emerge -pqv '=media-libs/mesa-17.1.10::gentoo'`.
The complete build log is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/environment'.
Working directory: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_64.amd64'
S: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10'
Comment 2 Simeon Simeonov 2017-12-05 10:18:50 UTC
Unable to attach /var/tmp/portage/media-libs/mesa-17.1.10/temp/build.log

It can be found here:
http://simeon.simeonov.no/files/build.log.gz
Comment 3 Pierre-Yves Bonnetain-Nesterenko 2017-12-05 10:20:52 UTC
Same problem here. End of emerge gives

make[4]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_64.amd64/src/gallium/auxiliary'
make[3]: *** [Makefile:598: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_64.amd64/src/gallium'
make[2]: *** [Makefile:851: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_64.amd64/src'
make[1]: *** [Makefile:642: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_64.amd64/src'
make: *** [Makefile:643: all-recursive] Error 1
 * ERROR: media-libs/mesa-17.1.10::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/mesa-17.1.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/mesa-17.1.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_64.amd64'
 * S: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10'
Comment 4 Simeon Simeonov 2017-12-05 12:01:00 UTC
I guess the reason is that I am running "unstable" llvm in order to satisfy the newest Firefox. Extremely irritating situation...
Comment 5 Kajzer 2017-12-05 14:41:05 UTC
It's not that, I don't have latest llvm
Anyway, it fails here as well :

libtool: relink: x86_64-pc-linux-gnu-gcc -m32 -shared  -fPIC -DPIC  -Wl,--whole-archive ./.libs/libEGL_common.a -Wl,--no-whole-archive  -lpthread -L/usr/lib32 -lxcb-dri2 -lX11-xcb -lX11 -lxcb -lxcb-dri3 -lxcb-xfixes -lxcb-present -lxcb-sync -lxshmfence -L/var/tmp/portage/media-libs/mesa-17.1.10/image//usr/lib32 -lgbm -lexpat -lm -ldl -ldrm  -m32 -march=native -O2 -Wl,-Bsymbolic -Wl,--gc-sections -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed   -pthread -Wl,-soname -Wl,libEGL.so.1 -o .libs/libEGL.so.1.0.0
./.libs/libEGL_common.a(platform_drm.o): In function `get_back_bo':
platform_drm.c:(.text+0x1dd): undefined reference to `gbm_bo_create_with_modifiers'
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'libEGL.la' with the above command before installing it
make[5]: *** [Makefile:959: install-libLTLIBRARIES] Error 1
make[5]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_32.x86/src/egl'
make[4]: *** [Makefile:1459: install-am] Error 2
make[4]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_32.x86/src/egl'
make[3]: *** [Makefile:1453: install] Error 2
make[3]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_32.x86/src/egl'
make[2]: *** [Makefile:851: install-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_32.x86/src'
make[1]: *** [Makefile:1008: install] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_32.x86/src'
make: *** [Makefile:643: install-recursive] Error 1
 * ERROR: media-libs/mesa-17.1.10::gentoo failed (install phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/mesa-17.1.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/mesa-17.1.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_32.x86'
 * S: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10'

>>> Failed to emerge media-libs/mesa-17.1.10, Log file:

>>>  '/var/tmp/portage/media-libs/mesa-17.1.10/temp/build.log'

 * Messages for package media-libs/mesa-17.1.10:

 * ERROR: media-libs/mesa-17.1.10::gentoo failed (install phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/mesa-17.1.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/mesa-17.1.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-17.1.10/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10-abi_x86_32.x86'
 * S: '/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10'
Comment 6 Simeon Simeonov 2017-12-05 16:11:23 UTC
It builds nicely with llvm:0 or USE="-llvm -opencl" on my machine.
Comment 7 Kajzer 2017-12-05 18:53:12 UTC
Maybe it builds with -llvm, I'm not sure if there wouldn't be problems with llvm disabled, never tried it though, I only have one version installed, 3.9.1-r1

sys-devel/llvm
     Available versions:  
     (0)    ~*3.4.2-r100(0/3.4) ~*3.5.2-r100(0/3.5) ~*3.6.2-r100(0/3.6) 3.7.1-r3(0/3.7.1) 3.9.1-r1(0/3.9.1)
     (4)    ~4.0.1-r1
     (5)    ~5.0.0 **5.0.1_rc2 **5.0.9999
     (6)    **9999
       {clang debug default-compiler-rt default-libcxx (+)doc gold libedit +libffi lldb multitarget ncurses ocaml python +sanitize +static-analyzer test xml ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="musl" KERNEL="Darwin FreeBSD" LLVM_TARGETS="AArch64 AMDGPU ARM AVR BPF Hexagon Lanai MSP430 Mips NVPTX Nios2 PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore" PYTHON_TARGETS="python2_7" VIDEO_CARDS="radeon"}
     Installed versions:  3.9.1-r1(06:46:58 AM 10/03/2017)(libffi ncurses sanitize static-analyzer xml -clang -debug -default-compiler-rt -default-libcxx -doc -gold -libedit -lldb -multitarget -ocaml -python -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" ELIBC="-musl" KERNEL="-Darwin -FreeBSD" LLVM_TARGETS="AMDGPU BPF NVPTX X86 -AArch64 -ARM -Hexagon -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7")
     Homepage:            https://llvm.org/
     Description:         Low Level Virtual Machine
Comment 8 Andrew Ammerlaan gentoo-dev 2017-12-05 19:49:46 UTC
Created attachment 508414 [details]
buidllog

Mesa-17.1.10 fails for me as well. Though my error seems to be different, I think it's related to llvm as well, I have llvm:4 and llvm:5 installed. And according to my notes in package.accept_keywords I added llvm:4 to satisfy mesa dependencies. 

Apparently mesa-17.0.6 wanted either llvm:0 or llvm:4, and I used llvm:4 because it can be installed at the same time as llvm:5, but this new version doesn't seem to like llvm:4 very much.
Comment 9 Matt Turner gentoo-dev 2017-12-06 00:54:35 UTC
(In reply to Kajzer from comment #5)
> It's not that, I don't have latest llvm
> Anyway, it fails here as well :

Your build failure is different than what's originally reported. Yours is bug 616398.
Comment 10 Matt Turner gentoo-dev 2017-12-06 01:00:58 UTC
The actual build error is

/var/tmp/portage/media-libs/mesa-17.1.10/work/mesa-17.1.10/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp:346:56: error: no matching function for call to ‘llvm::RTDyldMemoryManager::deregisterEHFrames(uint8_t*&, uint64_t&, size_t&)’
          mgr()->deregisterEHFrames(Addr, LoadAddr, Size);
                                                        ^

This occurs because llvm is too new for Mesa. Mesa has a policy of not supporting LLVM released after it, so unfortunately there's not much we can do.

The dependencies in the Mesa 17.2+ ebuilds have been updated to prevent this sort of thing in the future. The changes were pretty invasive, so 17.1.x wasn't changed since I think we were already trying to stabilize it. As soon as Mesa 17.2.7 is in the tree (should be this weekend) I'm going to immediately ask for its stabilization, FWIW.

It's probably easiest to just use Mesa 17.2.x with whatever version of LLVM you have installed at this point.
Comment 11 Pierre-Yves Bonnetain-Nesterenko 2017-12-09 09:01:15 UTC
I confirm that using mesa ~17.2.6, after unmasking, solves the problem at least with llvm ~4.0.1-r1.
Comment 12 Kajzer 2017-12-11 22:33:05 UTC
i915 is broken with 17.1.10, maybe stabilizing 17.2.6 directly instead of 17.1.10 was better idea.