Bug 2332844

Summary: OpenCL-ICD-Loader conflicts with ocl-icd
Product: [Fedora] Fedora Reporter: Yosuke Matsumura <yosukematsumura>
Component: rocclrAssignee: Jeremy Newton <alexjnewt>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 41CC: alexjnewt, dcro95, losuler, lx, rocm-packagers-sig, sametaylak29, travier, true.robot.ross
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://discussion.fedoraproject.org/t/opencl-icd-loader-causing-dependency-issues/139830/1
Whiteboard:
Fixed In Version: rocclr-6.3.1-4.fc42 rocclr-6.2.1-6.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-11 01:16:12 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:

Description Yosuke Matsumura 2024-12-17 15:51:04 UTC
I am running Fedora Atomic (Kinoite) 41 with the rocm-opencl package overlay. A few updates ago, I believe that OpenCL-ICD-Loader was added to Fedora. This is causing the following error when trying to update the system:
"package OpenCL-ICD-Loader-3.0.6-1.20241023git5907ac1.fc41.x86_64 from @System conflicts with ocl-icd provided by ocl-icd-2.3.2-7.fc41.x86_64 from fedora"

Additional information can be found in attached URL.

```
$ rpm-ostree upgrade
note: automatic updates (stage) are enabled
2 metadata, 0 content objects fetched; 788 B transferred in 2 seconds; 0 bytes content written
Checking out tree 5ec44d0... done
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora updates-archive
Updating metadata for 'fedora-cisco-openh264'... done
Updating metadata for 'updates'... done
Updating metadata for 'fedora'... done
Updating metadata for 'updates-archive'... done
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264'; generated: 2024-03-11T19:22:31Z solvables: 3
rpm-md repo 'updates'; generated: 2024-12-16T02:12:16Z solvables: 13766
rpm-md repo 'fedora'; generated: 2024-10-24T13:55:59Z solvables: 76624
rpm-md repo 'updates-archive'; generated: 2024-12-16T02:54:59Z solvables: 16407
Resolving dependencies... done
error: Could not depsolve transaction; 1 problem detected:
 Problem: conflicting requests
  - package rocm-opencl-6.2.1-2.fc41.x86_64 from updates requires ocl-icd(x86-64), but none of the providers can be installed
  - package rocm-opencl-6.2.0-1.fc41.x86_64 from fedora requires ocl-icd(x86-64), but none of the providers can be installed
  - package rocm-opencl-6.2.1-2.fc41.x86_64 from updates-archive requires ocl-icd(x86-64), but none of the providers can be installed
  - package rocm-opencl-6.2.1-4.fc41.x86_64 from updates-archive requires ocl-icd(x86-64), but none of the providers can be installed
  - package OpenCL-ICD-Loader-3.0.6-1.20241023git5907ac1.fc41.x86_64 from @System conflicts with ocl-icd provided by ocl-icd-2.3.2-7.fc41.x86_64 from fedora
```

Reproducible: Always

Steps to Reproduce:
1.On Fedora Atomic, overlay the rocm-opencl package - rpm-ostree install rocm-opencl
2.Will fail with error in description
3.
Actual Results:  
System fails to update. As is the nature of Fedora Atomic, this error prevents the entire system from updating.

Expected Results:  
Update to succeed.

Comment 2 true.robot.ross 2024-12-17 16:31:31 UTC
I can also reproduce this bug on Fedora Linux 41.20241212.0 (Silverblue)

Comment 3 dcro95 2024-12-20 12:46:17 UTC
Same problem on Fedora Workstation 41, when I tried to install rocm-opencl :

sudo dnf install rocm-opencl rocminfo rocm-clinfo rocm-hip rocm-runtime rocm-smi rocm-hip-devel
Mise à jour et chargement des dépôts :
Dépôts chargés.
Échec de la résolution de la transaction:
Problème : requêtes conflictuelles
  - le paquet rocm-opencl-6.2.1-2.fc41.x86_64 de updates requiert ocl-icd(x86-64), mais aucun des fournisseurs ne peut être installé
  - le paquet rocm-opencl-6.2.0-1.fc41.x86_64 de fedora requiert ocl-icd(x86-64), mais aucun des fournisseurs ne peut être installé
  - problème avec le paquet installé
  - le paquet installé OpenCL-ICD-Loader-3.0.6-1.20241023git5907ac1.fc41.x86_64 entre en conflit avec ocl-icd, fourni par ocl-icd-2.3.2-7.fc41.x86_64 de fedora
  - le paquet OpenCL-ICD-Loader-3.0.6-1.20241023git5907ac1.fc41.x86_64 de updates entre en conflit avec ocl-icd, fourni par ocl-icd-2.3.2-7.fc41.x86_64 de fedora

Comment 4 Bryce Torcello 2025-01-26 15:50:04 UTC
(In reply to Timothée Ravier from comment #1)
> See previous discussions with potential fix in
> https://discussion.fedoraproject.org/t/opencl-icd-loader-causing-dependency-
> issues/139830/5
> and
> https://discussion.fedoraproject.org/t/could-not-depsolve-transaction-while-
> updating-fedora-silverblue-41-41-20241213-0-with-nvidia-drivers/139642/8

Thought I should follow up here as well and note this override replace isn't working (https://discussion.fedoraproject.org/t/opencl-icd-loader-causing-dependency-issues/139830/11?u=losuler) and I'm still not able to install rocm-opencl.

Comment 5 Samet 2025-02-17 18:52:08 UTC
Any updates, or workaround on this? I'm using Fedora 41 with KDE. I cannot install rocm-opencl

Comment 6 Jeremy Newton 2025-02-18 22:31:32 UTC
Yeah I think I need to change the rocm-opencl requires on ocl-icd, I assume it works with either since it's not picky.

Comment 7 true.robot.ross 2025-02-18 22:48:58 UTC
Worth noting that this conflict also occurs with the mesa-libOpenCL package as well as the rocm-opencl package.

Comment 8 Yosuke Matsumura 2025-04-18 14:51:52 UTC
Any updates on this? I am still unable to install rocm-opencl in Fedora 42. The previously linked workaround also does not work:

$ rpm-ostree override replace --from repo='fedora' --experimental --remove=OpenCL-ICD-Loader ocl-icd
Inactive base replacements:
  ocl-icd
Checking out tree fc03a6b... done
Resolving dependencies... done
error: Could not depsolve transaction; 1 problem detected:
 Problem: package libavutil-free-7.1.1-3.fc42.x86_64 from @System requires libOpenCL.so.1()(64bit), but none of the providers can be installed
  - package libavutil-free-7.1.1-3.fc42.x86_64 from @System requires libOpenCL.so.1(OPENCL_1.0)(64bit), but none of the providers can be installed
  - package libavutil-free-7.1.1-3.fc42.x86_64 from @System requires libOpenCL.so.1(OPENCL_1.2)(64bit), but none of the providers can be installed
  - conflicting requests

Comment 9 dcro95 2025-04-21 08:02:23 UTC
I made a fresh install of Fedora Workstation 42.
Impossible to install rocm-opencl :
rocm-opencl-6.3.1-3.fc42 package ask for ocl-icd-2.3.2-8.fc42.x86_64
OpenCL-ICD-Loader-3.0.6-2 is already installed
ocl-icd-2.3.2-8.fc42.x86_64 is in conflict with OpenCL-ICD-Loader-3.0.6-2

Error message (in french) :
sudo dnf install rocm-opencl

Mise à jour et chargement des dépôts :
Dépôts chargés.
Échec de la résolution de la transaction:
Problème : problème avec le paquet installé
  - le paquet installé OpenCL-ICD-Loader-3.0.6-2.20241023git5907ac1.fc42.x86_64 entre en conflit avec ocl-icd, fourni par ocl-icd-2.3.2-8.fc42.x86_64 de fedora
  - le paquet OpenCL-ICD-Loader-3.0.6-2.20241023git5907ac1.fc42.x86_64 de fedora entre en conflit avec ocl-icd, fourni par ocl-icd-2.3.2-8.fc42.x86_64 de fedora
  - le paquet rocm-opencl-6.3.1-3.fc42.x86_64 de fedora requiert ocl-icd(x86-64), mais aucun des fournisseurs ne peut être installé
  - requêtes conflictuelles

Comment 10 Jeremy Newton 2025-05-02 22:07:19 UTC
Hi, sorry I forgot about this. I'll push the fix shortly to rawhide. I can backport to f42/41 too.

Comment 11 Fedora Update System 2025-05-02 22:28:12 UTC
FEDORA-2025-8a268a3d2c (rocclr-6.2.1-6.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-8a268a3d2c

Comment 12 Fedora Update System 2025-05-02 22:28:13 UTC
FEDORA-2025-82140f4d58 (rocclr-6.3.1-4.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-82140f4d58

Comment 13 Fedora Update System 2025-05-03 02:50:58 UTC
FEDORA-2025-82140f4d58 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-82140f4d58`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-82140f4d58

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2025-05-03 03:04:15 UTC
FEDORA-2025-8a268a3d2c has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-8a268a3d2c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-8a268a3d2c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2025-05-11 01:16:12 UTC
FEDORA-2025-82140f4d58 (rocclr-6.3.1-4.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2025-05-11 02:31:20 UTC
FEDORA-2025-8a268a3d2c (rocclr-6.2.1-6.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.