Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 949593

Summary: media-libs/mesa-24.3.4-r1[opencl] fails to build with dev-lang/rust[nightly]: error: invalid value '1.84.1-nightly' for '--rust-target <RUST_TARGET>': "1.84.1-nightly" is not a valid Rust target
Product: Gentoo Linux Reporter: Enne Eziarc <gentoo+bugs>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: CONFIRMED ---    
Severity: normal CC: eschwartz, kangie, rust
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/mesonbuild/meson/pull/14030
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mesa build.log (8.8MB unzipped)

Description Enne Eziarc 2025-02-10 23:58:42 UTC
Created attachment 918626 [details]
mesa build.log (8.8MB unzipped)

Have double-checked that disabling USE=nightly (and everything depending on it) fixes the problem, but here's the standard infodump anyway:


~ # emerge --info media-libs/mesa dev-lang/rust
Portage 3.0.67 (python 3.12.8-final-0, default/linux/amd64/23.0/split-usr, gcc-14, glibc-2.40-r8, 6.13.0-zen-gb311874dddab x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.13.0-zen-gb311874dddab-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.40
KiB Mem:    65873720 total,  26210332 free
KiB Swap:   32936856 total,  31903832 free
Timestamp of repository gentoo: Mon, 10 Feb 2025 21:33:37 +0000
Head commit of repository gentoo: 4acf36025f512e4a8edf9f13766c031fa86fd0f5

Timestamp of repository guru: Mon, 10 Feb 2025 09:48:29 +0000
Head commit of repository guru: 35c553c4b49a114274758345ba82b17d1a6c7182

Head commit of repository steam-overlay: 5b7b6d25a1094a4e96c16532cb4f1a757fb00654

sh dash 0.5.12-r1
ld GNU ld (Gentoo 2.43 p3) 2.43.1
ccache version 4.10.2 [disabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.5::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.8_p1::gentoo, 3.13.1_p1-r100::gentoo
dev-lang/rust:             1.84.1-r1::gentoo
dev-lang/rust-bin:         1.84.0::gentoo
dev-util/ccache:           4.10.2-r1::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.7::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.56::gentoo
sys-apps/sandbox:          2.43::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

gentoo
    location: /usr/src/portage/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git/
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: true

crossdev
    location: /usr/src/portage/repos/crossdev
    masters: gentoo flussence
    volatile: False

flussence
    location: /home/enne/code/ebuilds
    masters: gentoo
    volatile: True

guru
    location: /usr/src/portage/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /usr/src/portage/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    volatile: False

Installed sets: @esteam, @ipv6tunnel-and-dyndns-deps, @mine-desktop, @x11-plumbing
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver2 -mtune=znver2     --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtls-dialect=gnu2 -floop-interchange -floop-nest-optimize -ftree-vectorize -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=znver2 -mtune=znver2     --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtls-dialect=gnu2 -floop-interchange -floop-nest-optimize -ftree-vectorize -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
DISTDIR="/mnt/nfs/portage/cache/distfiles"
EMERGE_DEFAULT_OPTS="--unordered-display --alert --jobs=6 --load=22 --jobs=24 --load=16"
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-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK=" /usr/share/locale -/usr/share/locale/en_GB /usr/share/man/* -/usr/share/man/man* /usr/share/wine-*/man -/usr/share/wine-*/man/man* /usr/share/gcc-data/*/*/locale /usr/share/binutils-data/*/*/locale /var/db/repos/ /etc/bash/bashrc.d/1?-gentoo-*.bash /usr/share/git-core/templates/*"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,combreloc"
LEX="flex"
MAKEOPTS="-j24 -l23"
PKGDIR="/mnt/nfs/portage/pkgdir/x86_64-pc-linux-gnu"
PORTAGE_COMPRESS=""
PORTAGE_COMPRESS_FLAGS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
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"
RUSTFLAGS="-C target-cpu=znver2"
SHELL="/bin/bash"
USE="amd64 bzip2 caps cet crypt egl iconv ipv6 libtirpc linguas_en_GB multilib ncurses nls opencl openmp pcre readline seccomp split-usr ssl test-rust unicode verify-sig vulkan wayland xattr zlib" ABI_X86="64" ADA_TARGET="gcc_13" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

media-libs/mesa-24.3.4::gentoo was built with the following:
USE="X llvm lm-sensors opencl (opengl) proprietary-codecs vaapi vdpau vulkan wayland zstd -d3d9 -debug -osmesa (-selinux) -test -unwind -valgrind -xa" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2" LLVM_SLOT="19 -15 -16 -17 -18" VIDEO_CARDS="radeonsi -d3d12 (-freedreno) -intel -lavapipe (-lima) -nouveau -nvk (-panfrost) -r300 -r600 -radeon (-v3d) (-vc4) -virgl (-vivante) -vmware -zink"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


dev-lang/rust-1.84.1-r1::gentoo was built with the following:
USE="doc nightly rustfmt system-llvm verify-sig (-big-endian) -clippy -debug -dist (-llvm-libunwind) -lto (-miri) (-parallel-compiler) -rust-analyzer -rust-src -test -wasm" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2" LLVM_SLOT="(19)" LLVM_TARGETS="AMDGPU SPIRV (X86) -AArch64 -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore -Xtensa"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-11 00:04:35 UTC
Thanks. The plan is to rejig nightly handling which may fix this.
Comment 2 Matt Jolly gentoo-dev 2025-02-25 01:51:33 UTC
It does not fix this, unfortunately: -beta and -nightly suffixes break Mesa builds; we'll need to fix this and report upstream.
Comment 3 Matt Jolly gentoo-dev 2025-02-25 03:51:46 UTC
This comes from bindgen by way of Meson:

Bindgen changed the output format for `--rust-target` validation failures in 0.71.0.

https://github.com/rust-lang/rust-bindgen/commit/7c569c99e4b63656d1308610913f4bed8a817ef6 

This commit to Meson added support for both passing `--rust-target` and detecting invalid `--rust-target` output from bindgen:

https://github.com/mesonbuild/meson/commit/79fc8941c5d3855ebd76aad90550081e455cc50f#diff-55ee56c477a470861b6146d1ed5003360dac2ec8cd7b9c66b14aaab5714a5078
Comment 4 Matt Jolly gentoo-dev 2025-02-25 03:56:06 UTC
CC Eli in case I don't get around to fixing this.
Comment 5 Eli Schwartz gentoo-dev 2025-02-25 04:07:35 UTC
I guess we can start adding additional filter checks. It would be nice if bindgen had a way to say what versions it does indeed support, but AFAIK that doesn't exist. Dunno what a reliable answer here is.

This feels very


Rust/5.0 (Glibc; Linux x86_64; rv:135.0) rustc/20100101 Rustup/1.84.1