View previous topic :: View next topic |
Author |
Message |
0x1000000 n00b
Joined: 22 Apr 2024 Posts: 8
|
Posted: Thu May 23, 2024 6:13 am Post subject: Can't build mesa with nvk |
|
|
I have unmasked the newer versions of mesa.
Set the VIDEO_CARDS:
Code: | VIDEO_CARDS="nouveau nvk" |
But when I try to emerge mesa:
Code: | doas emerge --pretend "=media-libs/mesa-9999"
[ebuild U ] media-libs/mesa-9999 [24.1.0_rc4] USE="X llvm (opengl) proprietary-codecs vulkan wayland zstd -d3d9 -debug -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan-overlay -xa (-zink)" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2" LLVM_SLOT="17 -15 -16" VIDEO_CARDS="nouveau -d3d12 (-freedreno) -intel -lavapipe (-lima) (-nvk) (-panfrost) -r300 -r600 -radeon -radeonsi* (-v3d) (-vc4) -virgl (-vivante) -vmware" |
The nvk USE flag is not enabled for it.
Also when I do:
Code: | equery uses media-libs/mesa
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-libs/mesa-9999:
U I
+ + X : Add support for X11
+ - abi_x86_32 : 32-bit (x86) libraries
+ + cpu_flags_x86_sse2 : Use the SSE2 instruction set
- - d3d9 : Enable Direct 3D9 API through Nine state tracker. Can be used together with patched wine.
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
+ - llvm : Enable LLVM backend for Gallium3D.
- - llvm_slot_15 : Use LLVM 15.
- - llvm_slot_16 : Use LLVM 16.
+ - llvm_slot_17 : Use LLVM 17.
- - lm-sensors : Enable Gallium HUD lm-sensors support.
- - opencl : Enable the Rusticl Gallium OpenCL state tracker.
- - osmesa : Build the Mesa library for off-screen rendering.
+ - proprietary-codecs : Enable codecs for patent-encumbered audio and video formats.
- - test : Enable dependencies and/or preparations necessary to run tests (usually controlled by
FEATURES=test but can be toggled independently)
- - unwind : Add support for call stack unwinding and function name resolution
- - vaapi : Enable Video Acceleration API for hardware decoding
- - valgrind : Enable annotations for accuracy. May slow down runtime slightly. Safe to use even if not
currently using dev-debug/valgrind
- - vdpau : Enable the VDPAU acceleration interface for the Gallium3D Video Layer.
- - video_cards_d3d12 : VIDEO_CARDS seeting to build driver for Microsoft WSL video cards
- - video_cards_intel : VIDEO_CARDS setting to build driver for Intel video cards
- - video_cards_lavapipe : VIDEO_CARDS setting to build Vulkan software rasterizer using LLVMpipe
+ + video_cards_nouveau : VIDEO_CARDS setting to build reverse-engineered driver for nvidia cards
- - video_cards_r300 : VIDEO_CARDS setting to build only r300, r400 and r500 based chips code for radeon
- - video_cards_r600 : VIDEO_CARDS setting to build only r600, r700, Evergreen and Northern Islands based chips code
for radeon
- - video_cards_radeon : VIDEO_CARDS setting to build driver for ATI radeon video cards
- - video_cards_radeonsi : VIDEO_CARDS setting to build only Southern Islands based chips code for radeon
- - video_cards_virgl : VIDEO_CARDS setting to build driver for virgil (virtual 3D GPU)
- - video_cards_vmware : VIDEO_CARDS setting to build driver for vmware video cards
+ + vulkan : Add support for 3D graphics and computing via the Vulkan cross-platform API
- - vulkan-overlay : Build vulkan-overlay-layer which displays Frames Per Second and other statistics
+ + wayland : Enable support for dev-libs/wayland
- - xa : Enable the XA (X Acceleration) API for Gallium3D.
+ - zstd : Enable support for ZSTD compression
|
The nvk flag is not there at all. |
|
Back to top |
|
|
xgivolari Tux's lil' helper
Joined: 26 Jul 2021 Posts: 102
|
Posted: Thu May 23, 2024 6:44 am Post subject: |
|
|
The USE-flag video_cards_nvk is masked. This is indicated by the (brackets) in your emerge output. To unmask it for mesa, create the file "/etc/portage/profile/package.use.mask" with the content "media-libs/mesa -video_cards_nvk". |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22578
|
Posted: Thu May 23, 2024 12:16 pm Post subject: |
|
|
As a general comment, flags are masked for good reason. You should understand why it was masked before you override the mask, so that you can decide whether that good reason applies to your environment. Reviewing the comment associated with the mask is often a good place to start in understanding why the mask was created. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2366
|
Posted: Thu May 23, 2024 4:27 pm Post subject: |
|
|
Code: | grep -r nvk -B 10 /var/db/repos/gentoo/profiles/
/var/db/repos/gentoo/profiles/base/package.use.mask-dev-python/sympy aesara
/var/db/repos/gentoo/profiles/base/package.use.mask-
/var/db/repos/gentoo/profiles/base/package.use.mask-# Sam James <sam@gentoo.org> (2024-05-09)
/var/db/repos/gentoo/profiles/base/package.use.mask-# Experimental option upstream which seems undertested and underdocumented.
/var/db/repos/gentoo/profiles/base/package.use.mask-# Fails to build with stricter C compilers too (bug #919685).
/var/db/repos/gentoo/profiles/base/package.use.mask-net-misc/openssh xmss
/var/db/repos/gentoo/profiles/base/package.use.mask-
/var/db/repos/gentoo/profiles/base/package.use.mask-# Matt Turner <mattst88@gentoo.org> (2024-05-08)
/var/db/repos/gentoo/profiles/base/package.use.mask-# Brand new, introduces lots of new aspects to the build.
/var/db/repos/gentoo/profiles/base/package.use.mask-# Masked for further testing.
/var/db/repos/gentoo/profiles/base/package.use.mask:media-libs/mesa video_cards_nvk
|
In this case it hasn't been tested, maybe at all. I'm not sure if there's an equivalent for use flags of ~amd64 for packages, a profile use mask may be the only way to mark a use flag as testing.
Best Regards,
Georgi |
|
Back to top |
|
|
0x1000000 n00b
Joined: 22 Apr 2024 Posts: 8
|
Posted: Fri May 24, 2024 7:32 am Post subject: |
|
|
xgivolari wrote: | The USE-flag video_cards_nvk is masked. This is indicated by the (brackets) in your emerge output. To unmask it for mesa, create the file "/etc/portage/profile/package.use.mask" with the content "media-libs/mesa -video_cards_nvk". |
Thanks that worked! I tried to unmask it before but I did "-nvk" instead of "-video_cards_nvk", that was the issue. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2366
|
Posted: Fri May 24, 2024 8:30 am Post subject: |
|
|
0x1000000 wrote: | xgivolari wrote: | The USE-flag video_cards_nvk is masked. This is indicated by the (brackets) in your emerge output. To unmask it for mesa, create the file "/etc/portage/profile/package.use.mask" with the content "media-libs/mesa -video_cards_nvk". |
Thanks that worked! I tried to unmask it before but I did "-nvk" instead of "-video_cards_nvk", that was the issue. |
Yes, VIDEO_CARDS is one of the USE_EXPAND variables meaning its contents are expanded into a set of use flags.
Best Regards,
Georgi |
|
Back to top |
|
|
|