#1127805 libamdhip64-dev: Wrong path in CMake file

Package:
libamdhip64-dev
Source:
libamdhip64-dev
Description:
Header files for the AMD implementation of HIP
Submitter:
Matthias Urlichs
Date:
2026-02-13 08:53:02 UTC
Severity:
normal
#1127805#5
Date:
2026-02-13 08:05:54 UTC
From:
To:
Hi,

trying to build ollama with ROCm/HIP support failed because it looked in
/usr/llvm/bin to find the "amdgpu-arch" executable instead of
/usr/bin. The former doesn#t exist on Debian.

The culprit appears to be line 58 in
usr/lib/x86_64-linux-gnu/cmake/hip/hip-config-amd.cmake ::

set(HIP_CLANG_ROOT "${ROCM_PATH}/llvm")

Removing the /llvm part fixes the problem.