Bug 2315542

Summary: F42FailsToInstall, F41FailsToInstall: clang-libs (from clang component)
Product: [Fedora] Fedora Reporter: Fedora Fails To Install <fti-bugs>
Component: clangAssignee: Tom Stellard <tstellar>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, eugenemah, fedora-llvm-team, jchecahi, kkleine, mhroncok, npopov, sergesanspaille, siddharth.kde, suraj.ghimire7, tbaeder, tstellar, tuliom
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-10-03 09:04:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2260877    

Description Fedora Fails To Install 2024-09-29 13:59:41 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

Your package (clang) Fails To Install in Fedora 42:

can't install clang-libs:
  - nothing provides llvm-libs = 18.1.8 needed by clang-libs-18.1.8-3.fc41.x86_64
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-42-x86_64 --config-opts mirrored=False install clang-libs


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Timm Bäder 2024-10-01 10:08:13 UTC
Does not reproduce.

Comment 2 Miro Hrončok 2024-10-02 13:56:38 UTC
It actually does reproduce, but the reproducer as reported indeed does not work, because there are two clang-libs in the repository:

$ repoquery -q --repo=koji clang-libs
clang-libs-0:18.1.8-3.fc41.x86_64
clang-libs-0:19.1.0-1.fc42.x86_64

$ repoquery -q --repo=koji clang-libs --source
clang-18.1.8-3.fc41.src.rpm
llvm-19.1.0-1.fc42.src.rpm

This bug is about the clang-libs subpackage of clang-18, not llvm-19.

$ mock -r fedora-42-x86_64 --config-opts mirrored=False install clang-libs-18.1.8-3.fc41.x86_64
...
Problem: conflicting requests
  - nothing provides llvm-libs = 18.1.8 needed by clang-libs-18.1.8-3.fc41.x86_64

-----


But the real issue is that we have two clang-libs.

Comment 3 Miro Hrončok 2024-10-02 13:57:19 UTC
*** Bug 2316099 has been marked as a duplicate of this bug. ***

Comment 4 Miro Hrončok 2024-10-02 13:57:24 UTC
*** Bug 2315873 has been marked as a duplicate of this bug. ***

Comment 5 Miro Hrončok 2024-10-02 13:57:29 UTC
*** Bug 2316112 has been marked as a duplicate of this bug. ***

Comment 6 Nikita Popov 2024-10-03 07:39:01 UTC
I've just retired the clang, lld, lldb, compiler-rt, libomp and python-lit packages for rawhide and f41. Is that all that is needed to fix this issue, or do we need to do something more?

Comment 7 Fedora Fails To Install 2024-10-03 09:03:23 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 42.

Thanks for taking care of it!

Comment 8 Fedora Fails To Install 2024-10-03 09:04:07 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 41.

Thanks for taking care of it!

Comment 9 Miro Hrončok 2024-10-03 09:12:02 UTC
(In reply to Nikita Popov from comment #6)
> I've just retired the clang, lld, lldb, compiler-rt, libomp and python-lit
> packages for rawhide and f41. Is that all that is needed to fix this issue,
> or do we need to do something more?

It is, however, it caused bz2316262: nothing provides lld-devel(major) = 18 needed by rocm-device-libs, nothing provides compiler-rt(major) = 18 needed by hipcc

Comment 10 Timm Bäder 2024-10-04 06:09:51 UTC
The broken provides should be fixed by https://bodhi.fedoraproject.org/updates/FEDORA-2024-d1e67ee80f

Comment 11 Eugene Mah 2024-10-04 09:36:45 UTC
After updating these packages on my system, a subsequent dnf upgrade ended up downgrading lld packages

Problem 1: lld-devel-18.1.8-2.fc41.i686 from fedora has inferior architecture
- package rocm-device-libs-18-7.rocm6.2.1.fc41.x86_64 from updates-testing requires lld-devel(major) = 18, but none of the providers can be installed
- package lld-devel-18.1.8-2.fc41.x86_64 from fedora requires lld(x86-64) = 18.1.8-2.fc41, but none of the providers can be installed
- cannot install both lld-18.1.8-2.fc41.x86_64 from fedora and lld-19.1.0-1.fc41.x86_64 from @System
- cannot install the best update candidate for package rocm-device-libs-18-6.rocm6.2.0.fc41.x86_64
- cannot install the best update candidate for package lld-19.1.0-1.fc41.x86_64
Problem 2: package lld-devel-18.1.8-2.fc41.i686 from fedora requires lld-libs(x86-32) = 18.1.8-2.fc41, but none of the providers can be installed
- package rocm-device-libs-18-7.rocm6.2.1.fc41.x86_64 from updates-testing requires lld-devel(major) = 18, but none of the providers can be installed
- lld-libs-18.1.8-2.fc41.i686 from fedora has inferior architecture
- package lld-devel-18.1.8-2.fc41.x86_64 from fedora requires lld-libs(x86-64) = 18.1.8-2.fc41, but none of the providers can be installed
- cannot install both lld-libs-18.1.8-2.fc41.x86_64 from fedora and lld-libs-19.1.0-1.fc41.x86_64 from @System
- package hipcc-18-7.rocm6.2.1.fc41.x86_64 from updates-testing requires rocm-device-libs = 18-7.rocm6.2.1.fc41, but none of the providers can be installed
- cannot install the best update candidate for package lld-libs-19.1.0-1.fc41.x86_64
- cannot install the best update candidate for package hipcc-18-6.rocm6.2.0.fc41.x86_64

Package                                 Arch      Version                                  Repository                   Size
Downgrading:
lld                                    x86_64    18.1.8-2.fc41                            fedora                  123.4 KiB
replacing lld                        x86_64    19.1.0-1.fc41                            @commandline             48.2 KiB
lld-libs                               x86_64    18.1.8-2.fc41                            fedora                    5.3 MiB
replacing lld-libs                   x86_64    19.1.0-1.fc41                            @commandline              6.1 MiB
Upgrading:
hipcc                                  x86_64    18-7.rocm6.2.1.fc41                      updates-testing         666.3 KiB
replacing hipcc                      x86_64    18-6.rocm6.2.0.fc41                      <unknown>               309.8 KiB
rocm-device-libs                       x86_64    18-7.rocm6.2.1.fc41                      updates-testing           3.2 MiB
replacing rocm-device-libs           x86_64    18-6.rocm6.2.0.fc41                      <unknown>                 3.2 MiB
Installing dependencies:
lld-devel                              x86_64    18.1.8-2.fc41                            fedora                   38.7 KiB
Skipping packages with broken dependencies:
lld-devel                              i686      18.1.8-2.fc41                            fedora                   38.7 KiB

Another dnf upgrade following that complains about not being able to update to lld-19

Problem 1: installed package rocm-device-libs-18-7.rocm6.2.1.fc41.x86_64 requires lld-devel(major) = 18, but none of the providers can be installed
- cannot install both lld-devel-19.1.0-1.fc41.x86_64 from fedora and lld-devel-18.1.8-2.fc41.x86_64 from @System
- cannot install the best update candidate for package rocm-device-libs-18-7.rocm6.2.1.fc41.x86_64
- cannot install the best update candidate for package lld-devel-18.1.8-2.fc41.x86_64
Problem 2: installed package hipcc-18-7.rocm6.2.1.fc41.x86_64 requires rocm-device-libs = 18-7.rocm6.2.1.fc41, but none of the providers can be installed
- installed package rocm-device-libs-18-7.rocm6.2.1.fc41.x86_64 requires lld-devel(major) = 18, but none of the providers can be installed
- package rocm-device-libs-18-7.rocm6.2.1.fc41.x86_64 from updates-testing requires lld-devel(major) = 18, but none of the providers can be installed
- installed package lld-devel-18.1.8-2.fc41.x86_64 requires lld(x86-64) = 18.1.8-2.fc41, but none of the providers can be installed
- cannot install both lld-19.1.0-1.fc41.x86_64 from fedora and lld-18.1.8-2.fc41.x86_64 from @System
- cannot install the best update candidate for package lld-18.1.8-2.fc41.x86_64
- cannot install the best update candidate for package hipcc-18-7.rocm6.2.1.fc41.x86_64

Package                                 Arch      Version                                  Repository                   Size
Skipping packages with conflicts:
lld                                    x86_64    19.1.0-1.fc41                            fedora                   48.2 KiB
lld-devel                              x86_64    19.1.0-1.fc41                            fedora                   53.5 KiB
Skipping packages with broken dependencies:
rocm-device-libs                       x86_64    18-7.rocm6.2.1.fc41                      updates-testing           3.2 MiB

Comment 12 Nikita Popov 2024-10-04 09:50:04 UTC
I think that's because https://bodhi.fedoraproject.org/updates/FEDORA-2024-d1e67ee80f is still in pending->testing state, so it's not in the updates-testing repo yet?

Comment 13 Eugene Mah 2024-10-04 11:42:08 UTC
I had applied the update from https://bodhi.fedoraproject.org/updates/FEDORA-2024-d1e67ee80f a few days ago, prior to applying this update.

Comment 14 Tulio Magno Quites Machado Filho 2024-10-04 12:32:03 UTC
I reproduced the issue reported by Eugene Mah.
As explained on Bodhi, this is happening because source package lld reached F41 with version 18.1.8.
Meanwhile, the compat packages are still in version 18.1.7. When lld18-libs requests libLLVM.so.18.1()(64bit), llvm-libs-18.1.8 ends up being installed.