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

Bug 802357

Summary: media-libs/mesa-21.1.4 won't build if clang not installed
Product: Gentoo Linux Reporter: Preston Crow <pc-gentoo-bugs08a>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Preston Crow 2021-07-15 22:34:15 UTC
I'm trying to update to mesa-21.1.4 from 20.0.2 on a system with not much installed.  I don't happen to have anything requiring clang, so it's not installed.  Installing this version of mesa fails.  I suspect it's a new dependency, but I don't know much about mesa.

Reproducible: Always




[ebuild     U  ] media-libs/mesa-21.1.4::gentoo [20.0.2::gentoo] USE="X classic egl gles2 zstd -d3d9 -debug -dri3 -gallium -gbm -gles1 -llvm -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan -vulkan-overlay -wayland -xa -xvmc -zink% (-abi_riscv_lp64%) (-abi_riscv_lp64d%) (-libglvnd%*)" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="(-freedreno) -i915 -i965 -intel -iris (-lima) -nouveau (-panfrost) -r100 -r200 -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware" 0 KiB

 * Package:    media-libs/mesa-21.1.4
 * Repository: gentoo
 * Maintainer: x11@gentoo.org
 * USE:        X abi_x86_64 amd64 classic egl elibc_glibc gles2 kernel_linux userland_GNU zstd
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using python3.9 to build
>>> Unpacking source...
>>> Unpacking mesa-21.1.4.tar.xz to /var/tmp/portage/media-libs/mesa-21.1.4/work
>>> Source unpacked in /var/tmp/portage/media-libs/mesa-21.1.4/work
>>> Preparing source in /var/tmp/portage/media-libs/mesa-21.1.4/work/mesa-21.1.4 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/mesa-21.1.4/work/mesa-21.1.4 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
meson setup --buildtype plain --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /var/tmp/portage/media-libs/mesa-21.1.4/temp/python3.9/pkgconfig:/usr/share/pkgconfig --pkg-config-path /var/tmp/portage/media-libs/mesa-21.1.4/temp/python3.9/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/media-libs/mesa-21.1.4/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Dplatforms=x11 -Dglvnd=true -Dvulkan-layers= -Dbuild-tests=false -Dglx=dri -Dshared-glapi=enabled -Ddri3=disabled -Degl=enabled -Dgbm=disabled -Dgles1=disabled -Dgles2=enabled -Dosmesa=false -Dselinux=false -Dzstd=enabled -Dvalgrind=false -Ddri-drivers= -Dgallium-drivers= -Dvulkan-drivers= --buildtype plain -Db_ndebug=true /var/tmp/portage/media-libs/mesa-21.1.4/work/mesa-21.1.4 /var/tmp/portage/media-libs/mesa-21.1.4/work/mesa-21.1.4-abi_x86_64.amd64
The Meson build system
Version: 0.58.1
Source dir: /var/tmp/portage/media-libs/mesa-21.1.4/work/mesa-21.1.4
Build dir: /var/tmp/portage/media-libs/mesa-21.1.4/work/mesa-21.1.4-abi_x86_64.amd64
Build type: native build
Program python found: YES (/var/tmp/portage/media-libs/mesa-21.1.4/temp/python3.9/bin/python)
Project name: mesa
Project version: 21.1.4
C compiler for the host machine: x86_64-pc-linux-gnu-gcc (gcc 10.3.0 "x86_64-pc-linux-gnu-gcc (Gentoo 10.3.0-r2 p3) 10.3.0")
C linker for the host machine: x86_64-pc-linux-gnu-gcc ld.bfd 2.35.2
C++ compiler for the host machine: x86_64-pc-linux-gnu-g++ (gcc 10.3.0 "x86_64-pc-linux-gnu-g++ (Gentoo 10.3.0-r2 p3) 10.3.0")
C++ linker for the host machine: x86_64-pc-linux-gnu-g++ ld.bfd 2.35.2
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found CMake: /usr/bin/cmake (3.21.0)
Run-time dependency clang found: NO (tried cmake)

../mesa-21.1.4/meson.build:435:4: ERROR: Problem encountered: EGL requires dri
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-16 01:33:03 UTC
The real error looks like:
>../mesa-21.1.4/meson.build:435:4: ERROR: Problem encountered: EGL requires dri

I think you need to enable dri3?
Comment 2 Peter Fox 2021-07-16 22:31:37 UTC
Duplicate of bug 771759 ?
Comment 3 Preston Crow 2021-07-18 01:34:16 UTC
Yes!  That's it.  Sorry for wasting anyone's time, though if someone else makes the same mistake, at least they'll find this.  I just built and installed it with updated USE flags to include dri3.  (In my case, I also switched from "classic" to "gallium" since I don't have a video card.)

*** This bug has been marked as a duplicate of bug 771759 ***