Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652664 - multilib media-libs/mesa-17.3.8 fail to build with undefined reference to gbm_bo_get_bpp
Summary: multilib media-libs/mesa-17.3.8 fail to build with undefined reference to gbm...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 653072 (view as bug list)
Depends on: 652762 668900
Blocks:
  Show dependency tree
 
Reported: 2018-04-06 10:21 UTC by Михаил
Modified: 2018-11-29 05:17 UTC (History)
12 users (show)

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


Attachments
Build log (build.log.xz,70.66 KB, application/x-xz)
2018-04-06 10:21 UTC, Михаил
Details
emerge --info (einfo,6.53 KB, text/plain)
2018-04-06 10:22 UTC, Михаил
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Михаил 2018-04-06 10:21:18 UTC
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
Comment 1 Михаил 2018-04-06 10:22:39 UTC
Created attachment 526682 [details]
emerge --info
Comment 2 Михаил 2018-04-06 11:41:33 UTC
This is workaroung

# qlist media-libs/mesa | grep /usr/lib/ | xargs rm
# emerge -1 media-libs/mesa
Comment 3 vltg0903 2018-04-06 14:03:29 UTC
Alternatively, this one works too:

USE=-abi_x86_32 emerge mesa -u1
Comment 4 Alex 2018-04-07 08:47:46 UTC
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
---------------------------------------------
Comment 5 manu 2018-04-08 20:34:55 UTC
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)
Comment 6 Михаил 2018-04-09 15:43:40 UTC
> 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.
Comment 7 groche97 2018-04-09 16:25:27 UTC
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.
Comment 8 lkd-gentoo 2018-04-09 16:29:48 UTC
(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.
Comment 9 groche97 2018-04-09 17:00:26 UTC
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.
Comment 10 manu 2018-04-09 18:34:57 UTC
Unmerging and merging back did the trick for me.
Comment 11 mod 2018-04-10 18:54:27 UTC
(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.
Comment 12 Lyall Pearce 2018-04-15 06:20:43 UTC
Unmerging then re-emerging worked for me :)
Comment 13 edwargix 2018-04-16 05:46:09 UTC
*** Bug 653072 has been marked as a duplicate of this bug. ***
Comment 14 Norman Shulman 2018-08-08 23:15:27 UTC
I had the same problem with mesa-17.3.9; unmerging and re-emerging fixed it.
Comment 15 Matt Turner gentoo-dev 2018-11-29 05:17:43 UTC
All versions in tree now use Meson (and thus not libtool).