Summary: | media-libs/mesa-17.1.10 fails to build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Simeon Simeonov <sgs> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | andrewammerlaan, expert-judiciaire, jstein, tsmksubc, unheatedgarage, wyvern5 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | buidllog |
Description
Simeon Simeonov
2017-12-05 07:01:17 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' 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 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' I guess the reason is that I am running "unstable" llvm in order to satisfy the newest Firefox. Extremely irritating situation... 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' It builds nicely with llvm:0 or USE="-llvm -opencl" on my machine. 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 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.
(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. 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. I confirm that using mesa ~17.2.6, after unmasking, solves the problem at least with llvm ~4.0.1-r1. i915 is broken with 17.1.10, maybe stabilizing 17.2.6 directly instead of 17.1.10 was better idea. |