Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906259 - media-libs/mesa-23.1.0 require LLVM_TARGETS="(AMDGPU*) with Intel videocard
Summary: media-libs/mesa-23.1.0 require LLVM_TARGETS="(AMDGPU*) with Intel videocard
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-13 07:55 UTC by Cănărău Constantin
Modified: 2023-05-14 12:44 UTC (History)
0 users

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 Cănărău Constantin 2023-05-13 07:55:14 UTC
New mesa 23.1.0 require LLVM_TARGETS="(AMDGPU*) with intel video card.

With dev-lang/rust, firefox and thunderbird still require llvm and clang v15, having both 15 and 16 this mean a lot of recompile time and the reason behind this is quite un-intuitive. On main PC I build packages for other four, two configs, so this is 4 llvm and 4 clangs recompilation.

Thank you for your time!

VIDEO_CARDS="intel i965 iris"

[ebuild     U  ] media-libs/mesa-23.1.0::gentoo [23.0.3-r1::gentoo] USE="X gles2 llvm lm-sensors proprietary-codecs vaapi vulkan zstd -d3d9 -debug -gles1 -opencl -osmesa (-selinux) -test -unwind -valgrind -vdpau -vulkan-overlay -wayland -xa -zink" CPU_FLAGS_X86="sse2" VIDEO_CARDS="intel -d3d12 (-freedreno) (-lima) -nouveau (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware" 0 KiB

Portage 3.0.47 (python 3.11.3-final-0, default/linux/amd64/23.0/no-multilib/systemd, gcc-13, glibc-2.37-r3, 6.3.2-gentoo-costel x86_64)
=================================================================
System uname: Linux-6.3.2-gentoo-costel-x86_64-AMD_Ryzen_9_7900X_12-Core_Processor-with-glibc2.37
KiB Mem:    31950936 total,  24346100 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 13 May 2023 06:45:01 +0000
Head commit of repository gentoo: 3e7460e7b8e762328d5509c71ffe71a6fbfee462
sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-lang/perl:             5.36.1-r1::gentoo
dev-lang/python:           3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.4::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.3::gentoo
sys-devel/gcc:             13.1.0-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.3::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://gentoo/gentoo-portage/
    priority: -1000
    volatile: False
    sync-rsync-vcs-ignore: true
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --human-readable --delete-before --progress --new-compress
    sync-rsync-verify-metamanifest: no

added
    location: /var/db/repos/added
    masters: gentoo
    priority: 100
    volatile: False

newer
    location: /var/db/repos/newer
    masters: gentoo
    priority: 100
    volatile: False

Installed sets: @desktop, @dev, @minimal, @xfce
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -g0 -march=goldmont-plus -fipa-pta -fno-semantic-interposition -fno-plt -fgraphite-identity -floop-nest-optimize -flto=auto -flto-compression-level=9 -fdevirtualize-at-ltrans"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O3 -pipe -g0 -march=goldmont-plus -fipa-pta -fno-semantic-interposition -fno-plt -fgraphite-identity -floop-nest-optimize -flto=auto -flto-compression-level=9 -fdevirtualize-at-ltrans"
DISTDIR="/mnt/linux/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=6 --load-average=30 --keep-going --with-bdeps=y --complete-graph --quiet-build=n --binpkg-respect-use=y --autounmask-write"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live candy cgroup collision-protect config-protect-if-modified distlocks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-filter unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.xservers.ro/gentoo/ http://ftp.romnet.org/gentoo/ http://distfiles.gentoo.org/"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/ro -/usr/share/locale/en -/usr/share/locale/en_US"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--enable-new-dtags,--as-needed -flto=auto"
LEX="flex"
LINGUAS="ro en"
MAKEOPTS="-j24 --load-average=30"
PKGDIR="/mnt/pi/binpkgs/nas"
PORTAGE_BINHOST="https://pi.cweb.ro/binpkgs/nas"
PORTAGE_COMPRESS="zstd"
PORTAGE_COMPRESS_FLAGS="-T0 -19"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --delete-before --progress --new-compress"
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/nas"
RUSTFLAGS="-C debuginfo=0 -C opt-level=3 -C target-cpu=goldmont-plus"
USE="X aac acpi aes alsa amd64 bluetooth branding bzip2 cairo crypt cups dbus dvb fam ffmpeg flac gdbm gif gpm gtk gtk3 iconv icu ipv6 jpeg jpeg2k libglvnd libtirpc lm-sensors lto lz4 lzma mmx mmxext mp3 ncurses networkmanager nls nptl ogg opengl openmp pam pango pclmul pcre pdf pgo png policykit popcnt portaudio pulseaudio rdrand readline sdl seccomp server sha sndio sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 systemd test-rust truetype udev udisks unicode upower usb v4l vaapi vhosts vorbis vulkan webp x264 zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel usb-audio" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ro en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex brotli browser charset fastcgi geoip2 gunzip gzip limit_conn limit_req memcached realip referer rewrite split_clients ssi userid naxsi" NGINX_MODULES_STREAM="access geoip2 limit_conn realip" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" SANE_BACKENDS="bh cardscan coolscan coolscan2 coolscan3 pie pieusb" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, RANLIB, READELF, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Cănărău Constantin 2023-05-13 08:36:05 UTC
Naive fix, also bug #906231 - libcl:

diff -u /var/db/repos/gentoo/media-libs/mesa/mesa-23.1.0.ebuild /var/db/repos/newer/media-libs/mesa/mesa-23.1.0.ebuild
--- /var/db/repos/gentoo/media-libs/mesa/mesa-23.1.0.ebuild	2023-05-13 10:43:58.727524785 +0300
+++ /var/db/repos/newer/media-libs/mesa/mesa-23.1.0.ebuild	2023-05-13 11:31:25.528145323 +0300
@@ -64,6 +64,9 @@
 		video_cards_radeon? (
 			virtual/libelf:0=[${MULTILIB_USEDEP}]
 		)
+		video_cards_intel? (
+			dev-libs/libclc[spirv(+)]
+		)
 	)
 	lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
 	opencl? (
@@ -109,7 +112,7 @@
 # 2. Specify LLVM_MIN_SLOT (inclusive), e.g. 15.
 LLVM_MAX_SLOT="16"
 LLVM_MIN_SLOT="15"
-LLVM_USE_DEPS="llvm_targets_AMDGPU(+),${MULTILIB_USEDEP}"
+LLVM_USE_DEPS="${MULTILIB_USEDEP}"
 PER_SLOT_DEPSTR="
 	(
 		!opencl? ( sys-devel/llvm:@SLOT@[${LLVM_USE_DEPS}] )
Comment 2 Matt Turner gentoo-dev 2023-05-14 12:44:57 UTC
(In reply to Cănărău Constantin from comment #0)
> New mesa 23.1.0 require LLVM_TARGETS="(AMDGPU*) with intel video card

Yes, this is expected. See https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c4bdcbd3b25bdc3b4ccd6ab7d839840dbbef813

Separately, the libclc dependency was fixed in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f123e9823effa97371014375576f27efdede3928 for bug 906231.