Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 695646 - media-libs/mesa-19.2.0_rc4 - libraries from llvm-core/llvm will be removed even if drivers in /usr/lib64/dri linking against them still exist
Summary: media-libs/mesa-19.2.0_rc4 - libraries from llvm-core/llvm will be removed ev...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 695642 (view as bug list)
Depends on:
Blocks: preserve-libs
  Show dependency tree
 
Reported: 2019-09-25 20:16 UTC by Dennis Schridde
Modified: 2024-12-11 13:57 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2019-09-25 20:16:55 UTC
$ glxinfo
name of display: :0
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib64/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib64/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib64/dri)
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  57
  Current serial number in output stream:  56

$ lddtree /usr/lib64/dri/radeonsi_dri.so 
/usr/lib64/dri/radeonsi_dri.so (interpreter => None)
    libglapi.so.0 => /lib64/libglapi.so.0
    libdrm.so.2 => /lib64/libdrm.so.2
    libLLVMX86Disassembler.so.8 => None
    libLLVMX86CodeGen.so.8 => None
    libLLVMX86Desc.so.8 => None
    libLLVMX86Info.so.8 => None
    libLLVMAMDGPUCodeGen.so.8 => None
    libLLVMAMDGPUAsmParser.so.8 => None
    libLLVMAMDGPUDesc.so.8 => None
    libLLVMAMDGPUInfo.so.8 => None
    libLLVMipo.so.8 => None
    libLLVMScalarOpts.so.8 => None
    libLLVMInstCombine.so.8 => None
    libLLVMTransformUtils.so.8 => None
    libLLVMMCJIT.so.8 => None
    libLLVMExecutionEngine.so.8 => None
    libLLVMTarget.so.8 => None
    libLLVMAnalysis.so.8 => None
    libLLVMRuntimeDyld.so.8 => None
    libLLVMMC.so.8 => None
    libLLVMCore.so.8 => None
    libLLVMSupport.so.8 => None
    libexpat.so.1 => /lib64/libexpat.so.1
    libz.so.1 => /lib64/libz.so.1
    libunwind.so.8 => /lib64/libunwind.so.8
        ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
        liblzma.so.5 => /lib64/liblzma.so.5
    libdl.so.2 => /lib64/libdl.so.2
    libsensors.so.5 => /lib64/libsensors.so.5
    libdrm_radeon.so.1 => /lib64/libdrm_radeon.so.1
    libdrm_amdgpu.so.1 => /lib64/libdrm_amdgpu.so.1
    libelf.so.1 => /lib64/libelf.so.1
    libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libstdc++.so.6
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libgcc_s.so.1
    libm.so.6 => /lib64/libm.so.6
    libpthread.so.0 => /lib64/libpthread.so.0
    libc.so.6 => /lib64/libc.so.6

I would expect these libraries to be preserved.


Portage 2.3.76 (python 2.7.13-final-42, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.29-r5, 5.3.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.3.1-gentoo-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.6
KiB Mem:    14135576 total,   1741912 free
KiB Swap:   16776188 total,  16581372 free
Timestamp of repository gentoo: Wed, 25 Sep 2019 19:15:01 +0000
Head commit of repository gentoo: 8eaab7078e1810af887e224b96052f7482edde33
Head commit of repository flatpak-overlay: df661c8fff178051bc92136c3e1d4eb3327c95f9

Head commit of repository local: 219feee0096ccf8bff2eb49267b432b5d2ef19ff

sh bash 5.0_p11
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
ccache version 3.7.4 [disabled]
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo, 3.7.4-r1::gentoo
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.15.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

gentoo
    location: /var/cache/portage/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

flatpak-overlay
    location: /var/db/repos/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/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.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/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="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --nospinner --verbose-conflicts"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/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="/tmp"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 appindicator appstream archive audit avahi ayatana bash-completion bdplus berkdb bluetooth bluray branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli clipboard color-management colord conntrack crypt cups cxx d3d9 dav1d dbus declarative device-mapper dirac djvu dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emboss encode epub exif fam faudio fax fbcon ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gbm gdal gdbm geoclue geolocation gif git glamor gles gmp gnupg google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 gzip harfbuzz hdf5 heif http2 ibus iconv icu idn imlib inotify introspection ipv6 jemalloc jpeg jpeg2k json kde kipi kms kwallet ladspa latex lcms ldap libatomic libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lv2 lvm lz4 lzma lzo mad mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nls nptl office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf pgo phonon pixman plasma png policykit postscript ppds prison pulseaudio python qml qrcode qt5 raw readline redfish samba sasl scanner schroedinger screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell ssl startup-notification steamruntime stemmer svg systemd systemtap tbb tcpd teamd telepathy tga theora threads tiff timezone truetype tslib udev udisks unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vdpau vkd3d vorbis vpx vulkan wasm wavpack wayland webchannel webengine webkit webp widgets wmf wps x264 x265 xattr xcb xcomposite xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xz yaml zeroconf zeromq zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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="karbon sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" 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="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LIRC_DEVICES="devinput" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_TARGET="lua5-2" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby24 ruby25" STEAMGAMES="dirt_rally dont_starve portal source_engine te120 trine2 witcher2" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-libs/mesa-19.2.0_rc4::gentoo was built with the following:
USE="X d3d9 dri3 egl gallium gbm gles2 llvm lm-sensors opencl osmesa unwind vaapi vdpau vulkan vulkan-overlay wayland -classic -debug -gles1 (-libglvnd) -pax_kernel (-selinux) -test -valgrind -xa -xvmc" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="radeonsi virgl (-freedreno) -i915 -i965 -intel -iris (-lima) -nouveau (-panfrost) -r100 -r200 -r300 -r600 -radeon (-vc4) (-vivante) -vmware"
CFLAGS="-pipe -O2 -march=znver1 -g"
CXXFLAGS="-pipe -O2 -march=znver1 -g"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"


sys-devel/llvm-9.0.0::gentoo was built with the following:
USE="exegesis gold libffi ncurses xml z3 -debug -doc -libedit -test -xar" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore"

Reproducible: Always
Comment 1 Matt Turner gentoo-dev 2019-09-25 23:17:26 UTC
To confirm: you mean with the preserved-libs portage mechanism?
Comment 2 Dennis Schridde 2019-09-26 06:30:03 UTC
(In reply to Matt Turner from comment #1)
> To confirm: you mean with the preserved-libs portage mechanism?

Yes, the mechanism which keeps libraries installed, even if their package gets uninstalled, if libraries / binaries from another package still use them (they appear in DT_NEEDED).
Comment 3 Matt Turner gentoo-dev 2019-09-28 06:09:47 UTC
Maybe portage has paths it considers and this isn't one of them?

It's not clear to me how a version of llvm that Mesa depends on could ever be removed though? How was llvm:8 removed from your system?
Comment 4 Dennis Schridde 2019-09-28 07:37:59 UTC
(In reply to Matt Turner from comment #3)
> Maybe portage has paths it considers and this isn't one of them?
> 
> It's not clear to me how a version of llvm that Mesa depends on could ever
> be removed though? How was llvm:8 removed from your system?

emerge -C llvm:8
Comment 5 Matt Turner gentoo-dev 2019-09-28 17:55:41 UTC
(In reply to Dennis Schridde from comment #4)
> (In reply to Matt Turner from comment #3)
> > Maybe portage has paths it considers and this isn't one of them?
> > 
> > It's not clear to me how a version of llvm that Mesa depends on could ever
> > be removed though? How was llvm:8 removed from your system?
> 
> emerge -C llvm:8

Um, okay. Sounds like you've shot yourself in the foot.

I'll just reassign to dev-portage@ and let them decide if there's something here.
Comment 6 Zac Medico gentoo-dev 2019-09-28 21:43:54 UTC
The preserve-libs mechanism only works for library dependencies that portage can resolve, an that only works if the those dependencies are resolvable via the ld.so search path (/etc/ld.so.conf) or via DT_RPATH entries in the dependent ELF files.

For llvm:8, the file /etc/env.d/10llvm-9991 contains an LD_PATH variable which adds the relevant directories to /etc/ld.so.conf. So, after you unmerge llvm:8,  /etc/env.d/10llvm-9991 will be unmerged and env-update is going to re-render /etc/ld.so.conf so that those library dependencies are no longer resolvable. This is a similar situation to bug 459038.
Comment 7 Zac Medico gentoo-dev 2019-09-28 22:10:30 UTC
*** Bug 695642 has been marked as a duplicate of this bug. ***