Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't build mesa with nvk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
0x1000000
n00b
n00b


Joined: 22 Apr 2024
Posts: 4

PostPosted: Thu May 23, 2024 6:13 am    Post subject: Can't build mesa with nvk Reply with quote

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
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 101

PostPosted: Thu May 23, 2024 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21908

PostPosted: Thu May 23, 2024 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1746

PostPosted: Thu May 23, 2024 4:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
0x1000000
n00b
n00b


Joined: 22 Apr 2024
Posts: 4

PostPosted: Fri May 24, 2024 7:32 am    Post subject: Reply with quote

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
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1746

PostPosted: Fri May 24, 2024 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum