Closed Mushoz closed 1 year ago
I got same problem when installing ros2-humble
package in chroot environment through paru (1.11.2-1).
To simplify the situation, I try to make an example. There are two AUR packages named A
and B
. A
requires B
. B
have only non-AUR dependencies, which means pacman can satisfy their dependencies easily. B
can be successfully built. After that, when building A
, it will be reported that B
is a missing dependency and can not be found.
As @Mushoz 's attachment showing, opencl-amd-dev
requires opencl-amd
package, and clearly, opencl-amd
has been built before making package for opencl-amd-dev
, but opencl-amd
package still can not be found.
==> Making package: opencl-amd 1:5.4.1-1 (Thu Dec 22 16:31:35 2022)
==> Checking runtime dependencies...
==> Installing missing dependencies...
...
==> Sources are ready.
opencl-amd-1:5.4.1-1: parsing pkg list...
:: opencl-amd-1:5.4.1-1 is up to date -- skipping build
==> Synchronizing chroot copy [/var/lib/aurbuild/x86_64/root] -> [jaap]...done
...
==> Making package: opencl-amd-dev 1:5.4.1-1 (Thu Dec 22 16:31:42 2022)
==> Retrieving sources...
...
==> Making package: opencl-amd-dev 1:5.4.1-1 (Thu Dec 22 16:31:45 2022)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: opencl-amd
==> ERROR: 'pacman' failed to install missing dependencies.
Usually, that re-run paru --chroot <package>
command should make the process running again. The command may do some syncing-like stuff to previous successfully built package like opencl-amd
into new chroot session, so the missing package will become available.
From your own output:
:: Proceed with installation? [Y/n] y
(14/14) checking keys in keyring [########################################################] 100%
(13/14) checking package integrity [########################################################] 100%
(13/14) loading package files [########################################################] 100%
(14/14) checking for file conflicts [########################################################] 100%
error: failed to commit transaction (conflicting files)
/opt/rocm exists in both 'opencl-amd' and 'hsakmt-roct'
/opt/rocm exists in both 'opencl-amd' and 'comgr'
/opt/rocm exists in both 'opencl-amd' and 'rocm-llvm'
Errors occurred, no packages were upgraded.
I assume this is the issue. The packages conflict and don't declare it.
Actually I get a missing dep error myself so that may be unrelated. Hmm.
Both examples seem to have been fixed in f62163632d2cdb812c7ea32502cb421cdaf95a2c
Affected Version
paru 1.11.1 paru-git compiled on the 21st of December
Description
Whenever I try to install the ROCM stack via Paru by building in a clean Chroot, the process fails because it does not build the dependencies in the correct order for them to resolve successfully. I used the following command:
paru --chroot -S rocm-hip-sdk rocm-opencl-sdk
I am reporting this as a followup from my initial question here: https://github.com/Morganamilo/paru/discussions/919
Output
Full output of the command:
paru.conf:
pacman.conf:
Please let me know if there is any more relevant information I can provide!