Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can not emerge media-libs/mesa-17.2.7
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nipa
n00b
n00b


Joined: 23 Dec 2017
Posts: 8

PostPosted: Sat Dec 23, 2017 4:59 pm    Post subject: Can not emerge media-libs/mesa-17.2.7 Reply with quote

Since a few weeks, I'm fairly positive since updating to 17.0 profiles, I have problems emerging mesa.

emerge --info '=media-libs/mesa-17.2.7::gentoo'

Code:

Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r9, 4.14.8-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.8-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-4800MQ_CPU_@_2.70GHz-with-gentoo-2.4.1
KiB Mem:    16372080 total,   5545004 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Fri, 22 Dec 2017 21:30:01 +0000
Head commit of repository gentoo: 43bce31d0ce8232b3eb0d2ec4c889dcc1a89c86f
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-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5::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:

nipa
    location: /usr/local/portage-overlay-nipa
    masters: gentoo

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-write --jobs=5 --load-average=2.0"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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 acl acpi activities aes alsa amd64 avx avx2 bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cddb cdio cdr cli cracklib crypt cryptsetup cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fma3 fortran gdbm gif glamor gpg gpm gtk iconv icu id3tag imagemagic inotify ipv4 ipv6 jepg2k jpeg kde kipi kwallet lame lcms ldap libnotify libsamplerate lzma mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ntp ogg opengl openmp openvpn otr pam pango pcre pdf phonon plasma pm-utils png policykit popcnt ppds pulseaudio qemu qml qt3support qt5 quicktime rar readline real rss sdl seccomp semantic-desktop session spell spice sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd taglib tcpd threads tiff truetype udev udisks unicode upower usb v4l v4l2 vcd vim-syntax vorbis wavpack widgets wifi wma wmf wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xorg xv xvid 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 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="efi-64" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


emerge -pqv '=media-libs/mesa-17.2.7::gentoo'

Code:

[ebuild     U ] media-libs/mesa-17.2.7 [17.0.6] USE="classic dri3 egl gallium gbm llvm nptl wayland -bindist -d3d9 -debug -gles1 -gles2 -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -unwind% -vaapi -valgrind -vdpau -vulkan -xa -xvmc" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="intel (-freedreno) -i915 -i965 (-imx) -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl% (-vivante) -vmware"


The build log is huge (~15 MB) - here are the last lines:

Code:

Making install in egl
make[3]: Entering directory '/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/src/egl'
make  install-am
make[4]: Entering directory '/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/src/egl'
make[5]: Entering directory '/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/src/egl'
 /bin/mkdir -p '/var/tmp/portage/media-libs/mesa-17.2.7/image//usr/lib32'
 /bin/mkdir -p '/var/tmp/portage/media-libs/mesa-17.2.7/image//usr/include/EGL'
 /bin/mkdir -p '/var/tmp/portage/media-libs/mesa-17.2.7/image//usr/lib32/pkgconfig'
 /bin/sh ../../libtool   --mode=install /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c   libEGL.la '/var/tmp/portage/media-libs/mesa-17.2.7/image//usr/lib32'
 /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c -m 644 /var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/include/EGL/eglext.h /var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/include/EGL/egl.h /var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/include/EGL/eglextchromium.h /var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/include/EGL/eglmesaext.h /var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/include/EGL/eglplatform.h '/var/tmp/portage/media-libs/mesa-17.2.7/image//usr/include/EGL'
 /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c -m 644 main/egl.pc '/var/tmp/portage/media-libs/mesa-17.2.7/image//usr/lib32/pkgconfig'
libtool: warning: relinking 'libEGL.la'
libtool: install: (cd /var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/src/egl; /bin/sh "/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/libtool"  --tag CC --mode=relink x86_64-pc-linux-gnu-gcc -m32 -I/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/include -I/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/src/egl/main -I/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/src/gbm/main -I/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/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 -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_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_WAYLAND_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=0x0400 -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.2.7/work/mesa-17.2.7/src/loader -I../../src/egl/drivers/dri2 -I/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/src/egl/drivers/dri2 -I/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/src/gbm/backends/dri -I/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/src/egl/wayland/wayland-egl -I../../src/egl/wayland/wayland-drm -I/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7/src/egl/wayland/wayland-drm -DDEFAULT_DRIVER_DIR=\"/usr/lib32/dri\" -D_EGL_BUILT_IN_DRIVER_DRI2 -O2 -pipe -march=native -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-math-errno -fno-trapping-math -no-undefined -version-number 1:0 -Wl,-Bsymbolic -Wl,--gc-sections -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed -o libEGL.la -rpath /usr/lib32 libEGL_common.la -inst-prefix-dir /var/tmp/portage/media-libs/mesa-17.2.7/image/)
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 -lz -L/var/tmp/portage/media-libs/mesa-17.2.7/image//usr/lib32 -lgbm -lwayland-client -lwayland-server -lexpat -lm -ldl -ldrm  -m32 -O2 -march=native -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+0x24d): 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:973: install-libLTLIBRARIES] Error 1
make[5]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/src/egl'
make[4]: *** [Makefile:1477: install-am] Error 2
make[4]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/src/egl'
make[3]: *** [Makefile:1471: install] Error 2
make[3]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/src/egl'
make[2]: *** [Makefile:854: install-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/src'
make[1]: *** [Makefile:1011: install] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.2.7/work/mesa-17.2.7-abi_x86_32.x86/src'
make: *** [Makefile:651: install-recursive] Error 1


Further Information
  • I carefully followed the instructions for updating to profile 17.0
  • I did not recently update GCC, so that should not be the cause.
  • I went through #501328 (which, given its age, was already a long shot) and neither setting opengl to xorg-x11 (was already set to that value; unset/reset anyway) nor rm /usr/lib*/libEGL* /usr/lib*/libOpenVG.so (that turned out to be a bad idea) worked. I couldn't patch the Gallium source because I didn't find it.
  • I noticed undefined reference to `gbm_bo_create_with_modifiers' in the error log and found Freedesktop bug #100259, but could not make sense of the discussion.

It would be great if anyone could help me out. But please be gentle, I'm not a Gentoo expert. :)
Back to top
View user's profile Send private message
kajzer
Guru
Guru


Joined: 27 Nov 2014
Posts: 545

PostPosted: Sat Dec 23, 2017 8:31 pm    Post subject: Reply with quote

I had the same error, you can find that thread here :
https://forums.gentoo.org/viewtopic-t-1073516-highlight-.html

In short, solution is to delete this file and then emerge mesa again :
Code:
/usr/lib32/libgbm.so
Back to top
View user's profile Send private message
nipa
n00b
n00b


Joined: 23 Dec 2017
Posts: 8

PostPosted: Sat Dec 23, 2017 10:04 pm    Post subject: Reply with quote

That worked, thank you very much!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum