Created attachment 526680 [details] Build log media-libs/mesa-17.3.8 fail to build make[5]: Entering directory '/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8-abi_x86_32.x86/src/egl' /bin/mkdir -p '/var/tmp/portage/media-libs/mesa-17.3.8/image//usr/lib' /bin/mkdir -p '/var/tmp/portage/media-libs/mesa-17.3.8/image//usr/include/EGL' /bin/sh ../../libtool --mode=install /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c libEGL.la '/var/tmp/portage/media-libs/mesa-17.3.8/image//usr/lib' /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c -m 644 /var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/include/EGL/eglext.h /var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/include/EGL/egl.h /var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/include/EGL/eglextchromium.h /var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/include/EGL/eglmesaext.h /var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/include/EGL/eglplatform.h '/var/tmp/portage/media-libs/mesa-17.3.8/image//usr/include/EGL' /bin/mkdir -p '/var/tmp/portage/media-libs/mesa-17.3.8/image//usr/lib/pkgconfig' /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c -m 644 main/egl.pc '/var/tmp/portage/media-libs/mesa-17.3.8/image//usr/lib/pkgconfig' libtool: warning: relinking 'libEGL.la' libtool: install: (cd /var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8-abi_x86_32.x86/src/egl; /bin/sh "/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8-abi_x86_32.x86/libtool" --tag CC --mode=relink x86_64-pc-linux-gnu-gcc -m32 -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/include -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/mapi -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/egl/main -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/gbm/main -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -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_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_ST_VDPAU -DHAVE_LLVM=0x0500 -DMESA_LLVM_VERSION_PATCH=1 -fvisibility=hidden -I/usr/include/libdrm -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_X11 -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/loader -I../../src/egl/drivers/dri2 -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/egl/drivers/dri2 -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/gbm/backends/dri -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/egl/wayland/wayland-egl -I../../src/egl/wayland/wayland-drm -I/var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/egl/wayland/wayland-drm -DDEFAULT_DRIVER_DIR=\"/usr/lib/dri\" -D_EGL_BUILT_IN_DRIVER_DRI2 -O2 -pipe -fpic -g -Wall -Werror=implicit-function-declaration -Werror=missing-prototypes -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99 -no-undefined -version-number 1:0 -Wl,-Bsymbolic -Wl,--gc-sections -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed -o libEGL.la -rpath /usr/lib libEGL_common.la ../../src/mapi/shared-glapi/libglapi.la -inst-prefix-dir /var/tmp/portage/media-libs/mesa-17.3.8/image/) libtool: relink: x86_64-pc-linux-gnu-gcc -m32 -shared -fPIC -DPIC -Wl,--whole-archive ./.libs/libEGL_common.a -Wl,--no-whole-archive -L/usr/lib -lxcb-dri2 -lX11-xcb -lX11 -lxcb -lxcb-dri3 -lxcb-xfixes -lxcb-present -lxcb-sync -lxshmfence -lwayland-client -L/var/tmp/portage/media-libs/mesa-17.3.8/image//usr/lib -lgbm -lpthread -lz -lwayland-server -lexpat -lm -ldl -ldrm -lglapi -m32 -O2 -g -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 `swrast_put_image2': /var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/egl/drivers/dri2/platform_drm.c:501: undefined reference to `gbm_bo_get_bpp' ./.libs/libEGL_common.a(platform_drm.o): In function `swrast_get_image': /var/tmp/portage/media-libs/mesa-17.3.8/work/mesa-17.3.8/src/egl/drivers/dri2/platform_drm.c:546: undefined reference to `gbm_bo_get_bpp' collect2: error: ld returned 1 exit status Looks like https://bugs.freedesktop.org/show_bug.cgi?id=102077 May be problem in profile default/linux/amd64/17.1/systemd
Created attachment 526682 [details] emerge --info
This is workaroung # qlist media-libs/mesa | grep /usr/lib/ | xargs rm # emerge -1 media-libs/mesa
Alternatively, this one works too: USE=-abi_x86_32 emerge mesa -u1
It seems same here: --------------------------------------------- ./.libs/libEGL_common.a(platform_drm.o): In function `swrast_put_image2': platform_drm.c:(.text+0xa34): undefined reference to `gbm_bo_get_bpp' ./.libs/libEGL_common.a(platform_drm.o): In function `swrast_get_image': platform_drm.c:(.text+0xba8): undefined reference to `gbm_bo_get_bpp' collect2: error: ld returned 1 exit status libtool: error: error: relink 'libEGL.la' with the above command before installing it make[5]: *** [Makefile:994: install-libLTLIBRARIES] Error 1 ---------------------------------------------
None of the suggested workarounds is doing it for me: qlist media-libs/mesa | grep /usr/lib/ outputs nothing, and USE=-abi_x86_32 emerge mesa -u1 outputs: WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict: media-libs/mesa:0 (media-libs/mesa-17.3.8:0/0::gentoo, ebuild scheduled for merge) conflicts with >=media-libs/mesa-9.1.6[abi_x86_32(-),abi_x86_64(-)] required by (virtual/opengl-7.0-r1:0/0::gentoo, installed) >>> Auto-cleaning packages... >>> No outdated packages were found on your system. Any clues? I'm on (binary) nvidia-drivers (I don't know whether that's a thing or not here)
> WARNING: One or more updates/rebuilds have been skipped due to a dependency > conflict: Is is dependency conflict and not a bug. You have to solve it. This bug about mesa build system. Libraries trying to link with existent (previous) version of mesa.
I had the same problem, in the last update the gcc is upgrade but I follow the wiki. None solution works for me, any ideas? If I change mesa to testing the problem is the same, and disable abi_x86_32 is not an option.
(In reply to groche97 from comment #7) > I had the same problem, in the last update the gcc is upgrade but I follow > the wiki. > None solution works for me, any ideas? If you haven't tried already, consider unmerging mesa off of your system first then attempting to re-emerge mesa-17.3.8.
Finaly I found a similar problem in this tread https://bugs.gentoo.org/616398 The solution to remove /usr/lib{32,64}/libgbm.so* works for me.
Unmerging and merging back did the trick for me.
(In reply to groche97 from comment #9) > Finaly I found a similar problem in this tread https://bugs.gentoo.org/616398 > The solution to remove /usr/lib{32,64}/libgbm.so* works for me. This was the solution for my system as well.
Unmerging then re-emerging worked for me :)
*** Bug 653072 has been marked as a duplicate of this bug. ***
I had the same problem with mesa-17.3.9; unmerging and re-emerging fixed it.
All versions in tree now use Meson (and thus not libtool).