Summary: | media-libs/mesa-20.2.4 - Build-time dependency wayland-scanner found: NO (tried pkgconfig and cmake) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ronny Boesger <ronny+bugsgentoo> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gbugs, gentoo, jstein, madgagarin, matt_muresan, sam, shimarin |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build.log + emerge --info Patch to build without wayland and xorg |
Description
Ronny Boesger
2020-12-10 09:57:08 UTC
I have encountered the same error with mesa 2020.2.4 on a headless system, where no desktop environment is running (and thus no wayland present). (In reply to Jan Henke from comment #1) > I have encountered the same error with mesa 2020.2.4 on a headless system, > where no desktop environment is running (and thus no wayland present). Similar situation. -X -wayland. hardened > selinux Created attachment 678921 [details] build.log + emerge --info emerge --info media-libs/mesa Portage 3.0.9 (python 3.8.6-final-0, default/linux/amd64/17.1/no-multilib/hardened/selinux, gcc-9.3.0, glibc-2.32-r3, 5.4.80-gentoo-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.4.80-gentoo-r1-x86_64-AMD_E2-3000_APU_with_Radeon-TM-_HD_Graphics-with-glibc2.2.5 KiB Mem: 3475780 total, 1773620 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sat, 19 Dec 2020 23:30:01 +0000 Head commit of repository gentoo: a3e4f3caa836ca5390369ad2ad6c884e0cc02197 Head commit of repository sakaki-tools: 571e34870d665e98677caecbd56cf0d399ee4b3c sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p6) 2.34.0 app-shells/bash: 5.0_p18::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 3.8.6::gentoo, 3.9.0::gentoo dev-util/cmake: 3.17.4-r1::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.2-r1::gentoo sys-devel/binutils: 2.34-r2::gentoo sys-devel/gcc: 9.3.0-r1::gentoo sys-devel/gcc-config: 2.3.2-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sakaki-tools location: /var/db/repos/sakaki-tools sync-type: git sync-uri: https://github.com/sakaki-/sakaki-tools.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=native -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O3 -march=native -pipe -fomit-frame-pointer" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=2" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O3 -march=native -pipe -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O3 -march=native -pipe -fomit-frame-pointer" GENTOO_MIRRORS="https://gentoo-mirror.alexxy.name/ https://mirror.yandex.ru/gentoo-distfiles/" LANG="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="ru" MAKEOPTS="-j3 -l2" PKGDIR="/var/cache/binpkgs" 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="acl acpi amd64 bzip2 crypt hardened iconv libglvnd libtirpc ncurses nls nptl opencl openmp pam pcre pie readline seccomp selinux split-usr ssl ssp unicode xattr xtpax zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a 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="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= media-libs/mesa-20.1.10::gentoo was built with the following: USE="classic dri3 egl gallium gbm gles2 llvm (selinux) zstd -X -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa -test -unwind -vaapi -valgrind -vdpau -vulkan -vulkan-overlay -wayland -xa -xvmc" VIDEO_CARDS="radeonsi (-freedreno) -i915 -i965 -intel -iris (-lima) -nouveau (-panfrost) -r100 -r200 -r300 -r600 -radeon (-vc4) -virgl (-vivante) -vmware" FEATURES="network-sandbox unknown-features-warn userpriv merge-sync usersandbox binpkg-docompress unmerge-logs binpkg-logs distlocks xattr preserve-libs userfetch sandbox multilib-strict ebuild-locks sfperms assume-digests binpkg-dostrip fixlafiles protect-owned config-protect-if-modified unmerge-orphans sesandbox parallel-fetch qa-unresolved-soname-deps ipc-sandbox strict selinux usersync news" Comment on attachment 678921 [details] build.log + emerge --info emerge --info media-libs/mesa Portage 3.0.9 (python 3.8.6-final-0, default/linux/amd64/17.1/no-multilib/hardened/selinux, gcc-9.3.0, glibc-2.32-r3, 5.4.80-gentoo-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.4.80-gentoo-r1-x86_64-AMD_E2-3000_APU_with_Radeon-TM-_HD_Graphics-with-glibc2.2.5 KiB Mem: 3475780 total, 1773620 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sat, 19 Dec 2020 23:30:01 +0000 Head commit of repository gentoo: a3e4f3caa836ca5390369ad2ad6c884e0cc02197 Head commit of repository sakaki-tools: 571e34870d665e98677caecbd56cf0d399ee4b3c sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p6) 2.34.0 app-shells/bash: 5.0_p18::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 3.8.6::gentoo, 3.9.0::gentoo dev-util/cmake: 3.17.4-r1::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.2-r1::gentoo sys-devel/binutils: 2.34-r2::gentoo sys-devel/gcc: 9.3.0-r1::gentoo sys-devel/gcc-config: 2.3.2-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sakaki-tools location: /var/db/repos/sakaki-tools sync-type: git sync-uri: https://github.com/sakaki-/sakaki-tools.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=native -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O3 -march=native -pipe -fomit-frame-pointer" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=2" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O3 -march=native -pipe -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O3 -march=native -pipe -fomit-frame-pointer" GENTOO_MIRRORS="https://gentoo-mirror.alexxy.name/ https://mirror.yandex.ru/gentoo-distfiles/" LANG="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="ru" MAKEOPTS="-j3 -l2" PKGDIR="/var/cache/binpkgs" 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="acl acpi amd64 bzip2 crypt hardened iconv libglvnd libtirpc ncurses nls nptl opencl openmp pam pcre pie readline seccomp selinux split-usr ssl ssp unicode xattr xtpax zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a 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="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= media-libs/mesa-20.1.10::gentoo was built with the following: USE="classic dri3 egl gallium gbm gles2 llvm (selinux) zstd -X -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa -test -unwind -vaapi -valgrind -vdpau -vulkan -vulkan-overlay -wayland -xa -xvmc" VIDEO_CARDS="radeonsi (-freedreno) -i915 -i965 -intel -iris (-lima) -nouveau (-panfrost) -r100 -r200 -r300 -r600 -radeon (-vc4) -virgl (-vivante) -vmware" FEATURES="network-sandbox unknown-features-warn userpriv merge-sync usersandbox binpkg-docompress unmerge-logs binpkg-logs distlocks xattr preserve-libs userfetch sandbox multilib-strict ebuild-locks sfperms assume-digests binpkg-dostrip fixlafiles protect-owned config-protect-if-modified unmerge-orphans sesandbox parallel-fetch qa-unresolved-soname-deps ipc-sandbox strict selinux usersync news" same with media-libs/mesa-20.2.6 and media-libs/mesa-20.3.1 Also having this happen too with mesa 20.2.4. Similar situation to above, headless system with -X -wayland (In reply to Matthew Muresan from comment #6) > Also having this happen too with mesa 20.2.4. Similar situation to above, > headless system with -X -wayland Should add only failing on my hardened system, seems to not affect my other headless system with similar use flags that is not hardened. Created attachment 681298 [details, diff]
Patch to build without wayland and xorg
I had the same problem and fixed it by slightly modifying the ebuild see attached patch file .
The root cause is that if neither wayland nor xorg useflag is set no -DPLATFORM parameter is given to mesa meson build system which results in defaulting to auto which always includes wayland platform.
To build without any platform an empty -DPLATFORM needs to be definied. Than only the builtin platforms are used like gbm.
@Jan Worked for me, too. Thanks ! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a4de1a00cc1f5de3feb0956bccf7b5cd908f921 commit 3a4de1a00cc1f5de3feb0956bccf7b5cd908f921 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2021-01-15 00:56:41 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2021-01-15 01:34:27 +0000 media-libs/mesa: Always specify -Dplatforms=... Otherwise it will default to -Dplatforms=auto, which includes Wayland. Many thanks to Jan Burgmeier for debugging the issue and providing the fix. Closes: https://bugs.gentoo.org/759139 Closes: https://bugs.gentoo.org/759319 Signed-off-by: Matt Turner <mattst88@gentoo.org> media-libs/mesa/mesa-20.2.4.ebuild | 2 +- media-libs/mesa/mesa-20.2.6.ebuild | 2 +- media-libs/mesa/mesa-20.3.2.ebuild | 2 +- media-libs/mesa/mesa-9999.ebuild | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) |