Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

just a curious question - llvm, mesa

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
honeymak
l33t
l33t
User avatar
Posts: 680
Joined: Mon Dec 30, 2002 5:15 pm

just a curious question - llvm, mesa

  • Quote

Post by honeymak » Tue Feb 24, 2026 5:29 am

Code: Select all

g64-dwm-dwl ~ # emerge llvm-core/llvm -pavc

Calculating dependencies... done!
  llvm-core/llvm-21.1.8 pulled in by:
    llvm-core/llvm-toolchain-symlinks-21 requires llvm-core/llvm:21
    llvm-core/llvmgold-21 requires llvm-core/llvm:21[binutils-plugin]
    media-libs/mesa-25.3.3 requires llvm-core/llvm:21[llvm_targets_AMDGPU(+),abi_x86_64(-)]

>>> No packages selected for removal by depclean
Packages installed:   723
Packages in world:    25
Packages in system:   50
Required packages:    723
Number to remove:     0
g64-dwm-dwl ~ # emerge media-libs/mesa -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 5.20 s (backtrack: 0/20).

[ebuild   R    ] media-libs/mesa-25.3.3::gentoo  USE="X llvm (opengl) proprietary-codecs vulkan wayland zstd -debug -lm-sensors -opencl -sysprof -test -unwind -vaapi -valgrind" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_SLOT="21 -18 -19 -20" VIDEO_CARDS="-asahi -d3d12 (-freedreno) -i915 (-imagination) -intel -lavapipe (-lima) -nouveau -nvk (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware -zink" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

i am having a minimalist gentoo running
just wondering what pkg depend on llvm
and found mesa is the destination

and there is a use flag in mesa 'llvm'
what if i don't set llvm use flag in mesa, will it use gcc instead? or is llvm already compulsory for mesa?

:oops: :oops:
hackers - make sth real
academics - read sth said to be real
Top
Asch
Tux's lil' helper
Tux's lil' helper
Posts: 85
Joined: Wed Jan 20, 2010 1:10 pm
Location: Nowhere special

  • Quote

Post by Asch » Tue Feb 24, 2026 1:26 pm

llvm is for software rendering only. You are safe to disable it. It is even recommended IMO
Top
grknight
Retired Dev
Retired Dev
Posts: 2561
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Tue Feb 24, 2026 1:27 pm

LLVM in media-libs/mesa is currently hard required for i915 (really old intel, not the kernel driver), lavapipe, radeon, and r300 VIDEO_CARDS settings. opencl USE also is worthless (read: ignored) without llvm USE.

I cannot say what internally this does beyond enabling softpipe gallium fallback instead of llvmpipe.

The llvm USE is certainly able to be removed if none of the above conditions are necessary.
Top
honeymak
l33t
l33t
User avatar
Posts: 680
Joined: Mon Dec 30, 2002 5:15 pm

  • Quote

Post by honeymak » Tue Feb 24, 2026 1:38 pm

cool answers........

looks like outta my tech capability......
i guess i will keep it default

thx cool guys

:roll: 8)
hackers - make sth real
academics - read sth said to be real
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2111
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

Re: just a curious question - llvm, mesa

  • Quote

Post by GDH-gentoo » Tue Feb 24, 2026 4:16 pm

honeymak wrote:

Code: Select all

[ebuild   R    ] media-libs/mesa-25.3.3::gentoo ... VIDEO_CARDS="-asahi -d3d12 (-freedreno) -i915 (-imagination) -intel -lavapipe (-lima) -nouveau -nvk (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware -zink" 0 KiB
No video cards that are relevant for Mesa are selected, so...
honeymak wrote:

Code: Select all

[ebuild   R    ] media-libs/mesa-25.3.3::gentoo  USE="X llvm (opengl) proprietary-codecs vulkan wayland zstd -debug -lm-sensors -opencl -sysprof -test -unwind -vaapi -valgrind" ...
... the only reason why LLVM is pulled by Mesa is that the llvm USE flag has been left set. It is set by default in the ebuild, but can be unset with /etc/portage/package.use.
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
Post Reply

5 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic