#1154050 migraphx: FTBFS with LLVM 23 as default: clang 23 can't find the ROCm device library

#1154050#5
Date:
2026-11-15 11:02:30 UTC
From:
To:
Hello,

We are going to switch the default LLVM version to 23 (transition bug
#1154024). llvm-defaults 0.75~exp1, in experimental, already points to
23.

migraphx fails to build in unstable with it, and builds without it:

clang++: error: cannot find ROCm device library; provide its path via
'--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build
without ROCm device library

debian/rules builds with the unversioned clang++
(-DCMAKE_CXX_COMPILER=clang++), but the ROCm device libraries in the
archive are built for LLVM 21 (rocm-device-libs-21).

To reproduce, with sbuild:

  sbuild -d unstable \
    --extra-repository='deb http://deb.debian.org/debian experimental main' \
    --build-dep-resolver=aptitude \
    --add-depends='clang (>= 1:23~), llvm-dev (>= 1:23~), libclang-dev (>= 1:23~)' \
    <package>

The --add-depends forces the llvm-defaults packages from experimental
(the default apt resolver won't pick them, aptitude does), everything
else comes from unstable.

The severity will be raised to serious once llvm-defaults 23 is in
unstable.

Cheers,
Sylvestre

#1154050#14
Date:
2026-11-17 23:03:42 UTC
From:
To:
Hi Sylvestre,

Had I noticed this bug earlier, I'd have fixed it in the 7.1.1-9 upload
today, but I pushed a fix to the VCS and it will be in the next one.

Sincerely,
Cory Bloor