Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915014 - media-libs/mesa-23.2.1[opencl] fails to build due to -mtls-dialect=gnu2 flag
Summary: media-libs/mesa-23.2.1[opencl] fails to build due to -mtls-dialect=gnu2 flag
Status: RESOLVED FIXED
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-10-01 11:44 UTC by Eugene Shalygin
Modified: 2023-10-03 16:14 UTC (History)
4 users (show)

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


Attachments
meson-log (meson-log.txt,239.16 KB, text/plain)
2023-10-01 12:15 UTC, Eugene Shalygin
Details
build.log (build.log.zst,162.74 KB, application/zstd)
2023-10-01 12:17 UTC, Eugene Shalygin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2023-10-01 11:44:08 UTC
mesa configure script checks for-mtls-dialect=gnu2 support (and detects that it is supported by GCC), and then passes the option to bindgen, which does not recognize it.

Reproducible: Always

Steps to Reproduce:
1. USE="opencl" emerge -1v mesa

Actual Results:  
 


$ emerge --info media-libs/mesa 
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-13, glibc-2.38-r4, 6.5.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.5.5-gentoo-x86_64-AMD_Ryzen_9_5900HX_with_Radeon_Graphics-with-glibc2.38
KiB Mem:    65271060 total,   2704892 free
KiB Swap:  100663292 total, 100662268 free
Timestamp of repository gentoo: Sun, 01 Oct 2023 07:01:34 +0000
Head commit of repository gentoo: c3c4df66548a67cf7796eb8c030635827be4b657

Timestamp of repository brother-overlay: Fri, 18 Aug 2023 01:47:53 +0000
Head commit of repository brother-overlay: 20786946bc66b74d29aa45b7beec92dc2ca9e07a

Timestamp of repository dwosky: Thu, 28 Sep 2023 18:46:33 +0000
Head commit of repository dwosky: ed2a61f4b4781a2c43ea5c2f5640ca8309bebe81

Timestamp of repository mv: Wed, 27 Sep 2023 05:31:32 +0000
Head commit of repository mv: 6ae225856412ed30eececd1e213df2a2e480b5fd

Timestamp of repository nest: Sat, 23 Sep 2023 06:46:32 +0000
Head commit of repository nest: d2fa85731519611d617c192e384a639b0444a86c

Head commit of repository paludis-gentoo-overlay: 751ef7414a0982fbdc8c7c54319b9efb0b0f46a2

Timestamp of repository waffle-builds: Thu, 14 Sep 2023 05:49:28 +0000
Head commit of repository waffle-builds: ca80a0b31d7677c156a5ed2628b57602b03f2a80

Head commit of repository zeule: bf7f396855ee3ed83fd6ce220012769213c3dcf0

Head commit of repository 4nykey: 1fd6e3c6622c06cb1b24569c8ed07b715c34dac6

Head commit of repository bobwya: 4e7595c2eaaa86ce6c06e9beda79d1221d6fd659

Head commit of repository cg: 54d9dc8edba6dc0053a98d5a3419ac4aa05ac1a9

Head commit of repository dotnet: 92d51a2a1994ed83e3b54da79ba667aa7c22f4a8

Head commit of repository gamerlay: 9da008cc5ddc541c4bd8cbecac77bd3e59bc4ca6

Head commit of repository guru: 2487eafda90ed51e414083ee0a11e71918cbdb18

Head commit of repository haarp: c8682dd4a6799fbf67a79b6b686b878b9a12730f

Head commit of repository interactive-fiction: 31b83c15417dfbee38ad1ca05908ee6696953b18

Head commit of repository kde: 54f60e4658b1699606f2ad8b992b8582b98b501d

Head commit of repository lto-overlay: a24c46a21cf51e3465d8f349a2b90b95a6c397af

Head commit of repository qt: 64756889b8d567a1cfc0b142704b028c89b9b48b

Head commit of repository science: be746c92aa23f5f3de6eb15673510b39e8cdd115

Head commit of repository steam-overlay: e6ea1449bcfc7c9157fc23be050ae15534992f22

Head commit of repository x11: 00109758b71fe651b0c367b3eeb9bcbac24dc533

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.5::gentoo
dev-lang/rust-bin:         1.72.0::gentoo
dev-util/cmake:            3.27.6-r1::gentoo
dev-util/meson:            1.2.2::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.5::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.1::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r4::gentoo
Repositories:

gentoo
    location: /var/portage/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: True

brother-overlay
    location: /var/portage/repository/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo
    volatile: True

dwosky
    location: /var/portage/repository/dwosky
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/dwosky.git
    masters: gentoo
    volatile: True

mv
    location: /var/portage/repository/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo
    volatile: True

nest
    location: /var/portage/repository/nest
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/nest.git
    masters: gentoo
    volatile: True

paludis-gentoo-overlay
    location: /var/portage/repository/paludis-gentoo-overlay
    sync-type: git
    sync-uri: https://github.com/MageSlayer/paludis-gentoo-overlay
    masters: gentoo
    volatile: True

waffle-builds
    location: /var/portage/repository/waffle-builds
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/waffle-builds.git
    masters: gentoo
    volatile: True

zeule
    location: /var/portage/repository/zeule
    sync-type: git
    sync-uri: https://github.com/zeule/gentoo-zeule.git
    masters: gentoo qt kde guru mv lto-overlay brother-overlay
    volatile: True

4nykey
    location: /var/portage/repository/4nykey
    sync-type: git
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo
    priority: 50
    volatile: True

bobwya
    location: /var/portage/repository/bobwya
    sync-type: git
    sync-uri: https://github.com/bobwya/miscellaneous_ebuilds.git
    masters: gentoo
    priority: 50
    volatile: True

cg
    location: /var/portage/repository/cg
    sync-type: git
    sync-uri: https://github.com/brothermechanic/cg.git
    masters: gentoo
    priority: 50
    volatile: True

dotnet
    location: /var/portage/repository/dotnet
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/dotnet.git
    masters: gentoo
    priority: 50
    volatile: True

gamerlay
    location: /var/portage/repository/gamerlay
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/gamerlay.git
    masters: gentoo
    priority: 50
    volatile: True

guru
    location: /var/portage/repository/guru
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50
    volatile: True

haarp
    location: /var/portage/repository/haarp
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/haarp.git
    masters: gentoo
    priority: 50
    volatile: True

interactive-fiction
    location: /var/portage/repository/interactive-fiction
    sync-type: git
    sync-uri: git://repo.or.cz/gentoo-interactive-fiction.git
    masters: gentoo
    priority: 50
    volatile: True

kde
    location: /var/portage/repository/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50
    volatile: True

lto-overlay
    location: /var/portage/repository/lto-overlay
    sync-type: git
    sync-uri: https://github.com/InBetweenNames/gentooLTO.git
    masters: gentoo mv
    priority: 50
    volatile: True

qt
    location: /var/portage/repository/qt
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50
    volatile: True

science
    location: /var/portage/repository/science
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50
    volatile: True

steam-overlay
    location: /var/portage/repository/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50
    volatile: True

x11
    location: /var/portage/repository/x11
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50
    volatile: True

xanf
    location: /home/eugene/develop/xanf/distribution/Gentoo/repository
    masters: gentoo
    priority: 80
    volatile: True

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @FREE @EULA 2dboy-EULA xv CC-Sampling-Plus-1.0 GPL2 as-is ValveSteamLicense unRAR bakoma fairuse Skype-TOS Zarf CDF android szip freedist MPEG-4 intel-ucode AVASYS linux-fw-redistributable no-source-code bh-luxi free-noncomm MSttfEULA NVIDIA-r1 GPL LPPL CC-BY-NC-4.0 OSGi-Specification-2.0 sun-jsr67 JasPer2.0 Amazon-EULA all-rights-reserved MS-vscode-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf /usr/share/themes/oxygen-gtk/gtk-3.0"
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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --load-average 6.0 --quiet-build --keep-going"
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 collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://ftp.gwdg.de/pub/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--hash-style=gnu"
LEX="flex"
LINGUAS=" en en_GB eo de uk"
MAKEOPTS="-j6"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--quiet"
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"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi activities alsa amd64 amr apng attica avahi bash-completion bluetooth branding bs2b btrfs bzip2 cairo canberra caps cdda cdr chromaprint cli crypt css cups dbus declarative designer dirac djvu dri dts dv dvd dvdnav dvdr efi egl elfutils emacs encode exif faac ffmpeg flac fontconfig fortran fuse gdbm geoip gif git gmp gnuplot gnutls gold gpm gsm gstreamer gtk gui harfbuzz iconv icu idn imagemagick inotify iproute2 ipv6 jemalloc jit jpeg jpeg2k jpegxl kde kerberos kipi kwallet lame lapack latex lcms libass libinput libnotify libsamplerate libsecret libtirpc live lm-sensors logitech lto luajit luatex lzma mad metalink mng mp3 mp4 mpeg mpi mpris mtp multicall multilib ncurses netlink network networkmanager nfs nftables nls nptl numa ogg openexr opengl openmp openssl pam pango pch pcre pdf pipewire pkcs11 plasma png policykit postscript ppds pulseaudio qml qrcode qt5 quicktime quvi radio readline romio rss rtmp samba scanner screencast sctp sdl seccomp semantic-desktop slp smp sound speex spell sqlite ssl startup-notification svg symlink system-icu system-png system-sqlite systemd taglib test-rust theora threads thumbnail tiff truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vdpau vim-syntax vorbis vpx vulkan wayland webengine webp widgets wifi x264 x265 xattr xcb xcomposite xft xinerama xml xmp xrandr xv xvid yv12 zeroconf zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2021" 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 proxy" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt gpsclock timing" INPUT_DEVICES="libinput evdev libinput" KERNEL="linux" L10N="en en-GB eo de uk" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="net" VIDEO_CARDS="v4l radeon amdgpu radeonsi" 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, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

media-libs/mesa-23.2.0_rc3::gentoo was built with the following:
USE="X gles1 gles2 llvm lm-sensors opencl osmesa proprietary-codecs vaapi vdpau vulkan wayland xa zink zstd -d3d9 -debug (-selinux) -test -unwind -valgrind -vulkan-overlay" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2" VIDEO_CARDS="radeon radeonsi -d3d12 (-freedreno) -intel -lavapipe (-lima) -nouveau (-panfrost) -r300 -r600 (-v3d) (-vc4) -virgl (-vivante) -vmware"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
FEATURES="multilib-strict network-sandbox distlocks protect-owned qa-unresolved-soname-deps splitdebug sfperms fixlafiles parallel-fetch binpkg-dostrip strict usersandbox binpkg-logs binpkg-docompress config-protect-if-modified assume-digests buildpkg-live usersync unmerge-orphans userpriv merge-sync ebuild-locks sandbox warn-on-large-env collision-protect binpkg-multi-instance unknown-features-warn userfetch xattr pid-sandbox compressdebug ipc-sandbox preserve-libs strict-keepdir unmerge-logs news"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--hash-style=gnu -march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-01 11:49:01 UTC
Please include the build.log and meson-log.txt. Might be related to bug 914989.
Comment 2 Eugene Shalygin 2023-10-01 12:15:13 UTC
Created attachment 871924 [details]
meson-log
Comment 3 Eugene Shalygin 2023-10-01 12:17:21 UTC
Created attachment 871925 [details]
build.log
Comment 4 Adrien Dessemond 2023-10-01 13:06:48 UTC
Same issue here, USE=-opencl seems to be a workaround.
Comment 5 Larry the Git Cow gentoo-dev 2023-10-03 16:14:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0ad7b00c772c71a74ec42be0bf594ee9198b71c

commit c0ad7b00c772c71a74ec42be0bf594ee9198b71c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-10-03 16:13:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-03 16:13:51 +0000

    dev-util/meson: backport PEP632 py3.12 fixes, revert bindgen breakage
    
    * Backport PEP632 fixes for Python 3.12
    * Revert bindgen patch on 1.2.x branch which broke Mesa
    
    Closes: https://bugs.gentoo.org/914989
    Closes: https://bugs.gentoo.org/915014
    Closes: https://bugs.gentoo.org/911418
    Closes: https://bugs.gentoo.org/911990
    Closes: https://bugs.gentoo.org/912397
    Closes: https://bugs.gentoo.org/912437
    Closes: https://bugs.gentoo.org/912452
    Closes: https://bugs.gentoo.org/912282
    Signed-off-by: Sam James <sam@gentoo.org>

 ...ndency-ensure-that-setuptools-doesn-t-inj.patch |  39 ++++++
 ...le-stop-using-distutils-schemes-on-suffic.patch |  72 +++++++++++
 ...le-refactor-pypy-detection-into-a-consist.patch |  36 ++++++
 ...le-stop-using-distutils-link-to-libpython.patch |  72 +++++++++++
 ...est-case-to-not-import-distutils-on-pytho.patch |  31 +++++
 ...e-PyPI-metadata-as-supporting-python-3.12.patch |  25 ++++
 ...-apply-global-project-and-environment-C-a.patch | 141 +++++++++++++++++++++
 dev-util/meson/meson-1.2.2-r1.ebuild               | 122 ++++++++++++++++++
 8 files changed, 538 insertions(+)