Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clang profile, two llvm versions
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
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 399

PostPosted: Wed Dec 11, 2024 6:43 pm    Post subject: Clang profile, two llvm versions Reply with quote

Can I remove one LLVM ?
I have llvm 18 and 19.
I have been using stable Gentoo.

Code:
alculating dependencies... done!
  media-libs/mesa-24.2.6-r2 pulled in by:
    x11-base/xorg-server-21.1.14 requires >=media-libs/mesa-18[X(+),egl(+),gbm(+)]
    x11-drivers/xf86-video-ati-22.0.0 requires media-libs/mesa


Can I remove 18 ?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22870

PostPosted: Wed Dec 11, 2024 7:21 pm    Post subject: Reply with quote

Try it and see. What is the output of emerge --ask --verbose --depclean sys-devel/llvm?
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 399

PostPosted: Wed Dec 11, 2024 8:03 pm    Post subject: Reply with quote

Code:
  sys-devel/llvm-18.1.8-r1 pulled in by:
    @system requires sys-devel/llvm
    media-libs/mesa-24.2.6-r2 requires sys-devel/llvm:18[llvm_targets_AMDGPU(+),abi_x86_64(-)]
    sys-devel/llvm-toolchain-symlinks-18-r1 requires sys-devel/llvm:18

  sys-devel/llvm-19.1.4 pulled in by:
    @system requires sys-devel/llvm
    sys-devel/clang-19.1.4 requires ~sys-devel/llvm-19.1.4:19/19.1=[-debug,abi_x86_64(-)], ~sys-devel/llvm-19.1.4[llvm_targets_Lanai], ~sys-devel/llvm-19.1.4[llvm_targets_Sparc], ~sys-devel/llvm-19.1.4[llvm_targets_BPF], ~sys-devel/llvm-19.1.4[llvm_targets_AArch64], ~sys-devel/llvm-19.1.4[llvm_targets_X86], ~sys-devel/llvm-19.1.4[llvm_targets_MSP430], ~sys-devel/llvm-19.1.4[llvm_targets_AVR], ~sys-devel/llvm-19.1.4[llvm_targets_PowerPC], ~sys-devel/llvm-19.1.4[llvm_targets_ARM], ~sys-devel/llvm-19.1.4:19=[-debug,abi_x86_64(-)], ~sys-devel/llvm-19.1.4[llvm_targets_SystemZ], ~sys-devel/llvm-19.1.4[llvm_targets_NVPTX], ~sys-devel/llvm-19.1.4[llvm_targets_VE], ~sys-devel/llvm-19.1.4[llvm_targets_Hexagon], ~sys-devel/llvm-19.1.4[llvm_targets_RISCV], ~sys-devel/llvm-19.1.4[llvm_targets_LoongArch], ~sys-devel/llvm-19.1.4[llvm_targets_XCore], ~sys-devel/llvm-19.1.4[llvm_targets_WebAssembly], ~sys-devel/llvm-19.1.4[llvm_targets_AMDGPU], ~sys-devel/llvm-19.1.4[llvm_targets_Mips]
    sys-devel/lld-19.1.4 requires ~sys-devel/llvm-19.1.4[-debug,-zstd], sys-devel/llvm:19
    sys-devel/llvm-toolchain-symlinks-19 requires sys-devel/llvm:19
    sys-libs/compiler-rt-19.1.4 requires sys-devel/llvm:19
    sys-libs/libcxx-19.1.4 requires sys-devel/llvm:19
    sys-libs/libcxxabi-19.1.4 requires sys-devel/llvm:19
    sys-libs/llvm-libunwind-19.1.4 requires sys-devel/llvm:19
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1777
Location: South America

PostPosted: Wed Dec 11, 2024 8:50 pm    Post subject: Reply with quote

RIA77 wrote:
Can I remove 18 ?

No. Mesa specifically needs 18, at least for now:

RIA77 wrote:
Code:
media-libs/mesa-24.2.6-r2 requires sys-devel/llvm:18[llvm_targets_AMDGPU(+),abi_x86_64(-)]

_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2528

PostPosted: Wed Dec 11, 2024 9:13 pm    Post subject: Re: Clang profile, two llvm versions Reply with quote

RIA77 wrote:

Can I remove 18 ?


If emerge --depclean does not want to clean it, something holds on to it. GDH-Gentoo has already given you the answer to what it is.

You don't need to remove it, it won't do much for you. It won't even free significant amount of space and it doesn't run by itself, so you don't have a good reason to want to remove it until emerge --depclean decides so.

Best Regards,
Georgi
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3459
Location: Canada

PostPosted: Thu Dec 12, 2024 12:09 am    Post subject: Re: Clang profile, two llvm versions Reply with quote

logrusx wrote:
RIA77 wrote:

Can I remove 18 ?


If emerge --depclean does not want to clean it, something holds on to it. GDH-Gentoo has already given you the answer to what it is.

You don't need to remove it, it won't do much for you. It won't even free significant amount of space and it doesn't run by itself, so you don't have a good reason to want to remove it until emerge --depclean decides so.

Best Regards,
Georgi


But then you may be recompiling the version you do not use if it is updated, and clang with llvm is a non-trivial compilation. Recent introduction of 19 and update of 18 took my laptop few hours to deal with.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3459
Location: Canada

PostPosted: Thu Dec 12, 2024 12:15 am    Post subject: Reply with quote

GDH-gentoo wrote:
RIA77 wrote:
Can I remove 18 ?

No. Mesa specifically needs 18, at least for now:

RIA77 wrote:
Code:
media-libs/mesa-24.2.6-r2 requires sys-devel/llvm:18[llvm_targets_AMDGPU(+),abi_x86_64(-)]



Also qttools it seems. Actually nothing needs 19 version :)
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 407

PostPosted: Thu Dec 12, 2024 1:04 am    Post subject: Reply with quote

media-libs/mesa (and intel_clc) works find with LLVM_SLOT=19. It's just the ebuids that are missing an update.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2528

PostPosted: Thu Dec 12, 2024 4:50 am    Post subject: Reply with quote

bstaletic wrote:
media-libs/mesa (and intel_clc) works find with LLVM_SLOT=19. It's just the ebuids that are missing an update.

If you're sure about that, file a bug.

Best Regards,
Georgi
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 407

PostPosted: Thu Dec 12, 2024 8:32 am    Post subject: Reply with quote

I should have been more careful with my wording, but in my defense, it was almost 03:00 and I should have been asleep.

I've ran the tests with LLVM_SLOT=19 set on libclc, intel_clc and mesa. All tests pass, but I only have VIDEO_CARDS=intel, so I don't know if my testing is enough for the bug report.
I've been running with only llvm:19 on my system for a few months now.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2528

PostPosted: Thu Dec 12, 2024 9:00 am    Post subject: Reply with quote

Look at the stabilization bugs. Your input might still be useful.

Best Regards,
Georgi
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 399

PostPosted: Thu Dec 12, 2024 6:28 pm    Post subject: Reply with quote

Can I force rebuild of mesa with llvm 18 and not 19 ?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22870

PostPosted: Thu Dec 12, 2024 6:45 pm    Post subject: Reply with quote

As I understand it, Mesa is already using LLVM 18, so there is nothing to force. There was discussion here of whether LLVM 19 would be viable for Mesa.
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 399

PostPosted: Thu Dec 12, 2024 7:31 pm    Post subject: Reply with quote

Yes, sorry.
Force rebuild with llvm 19 and remove llvm 18.
Or rebuild whole world with 18 and remove 19 ?
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1777
Location: South America

PostPosted: Thu Dec 12, 2024 8:11 pm    Post subject: Reply with quote

Unless you want to create a maintenance problem, leave both versions alone.

LLVM 18 is needed for Mesa. Some of its components link to this version's libraries, so you can't get rid of it for now.

And you'll have LLVM 19 because you are on an LLVM profile, 19 is the latest stable, and Gentoo is rolling release.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
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