Bug#1094763: libamdhip64-dev: CMake config helpers are installed in the wrong directory
- To: Petter Reinholdtsen <pere@hungry.com>, 1094763@bugs.debian.org, Martijn Otto <debian@martijnotto.nl>
- Subject: Bug#1094763: libamdhip64-dev: CMake config helpers are installed in the wrong directory
- From: Cordell Bloor <cgmb@slerp.xyz>
- Date: Sat, 1 Feb 2025 15:56:08 -0700
- Message-id: <[🔎] dd19e892-e918-4abc-be04-854ffba1f01c@slerp.xyz>
- Reply-to: Cordell Bloor <cgmb@slerp.xyz>, 1094763@bugs.debian.org
- In-reply-to: <sa6a5b72a6o.fsf@hjemme.reinholdtsen.name>
- References: <173826631484.10314.1386268230213178319.reportbug@vivobook.martijnotto.nl> <173826631484.10314.1386268230213178319.reportbug@vivobook.martijnotto.nl> <sa6cyg410cs.fsf@hjemme.reinholdtsen.name> <d2f8047c-de9c-4d4b-840b-53598520a9ae@slerp.xyz> <sa6a5b72a6o.fsf@hjemme.reinholdtsen.name> <173826631484.10314.1386268230213178319.reportbug@vivobook.martijnotto.nl>
Hi Petter,
On 2025-01-30 15:45, Petter Reinholdtsen wrote:
Why can it not use just clang, aka clang-19 in Trixie at the moment?
For one, the clang compiler needs a copy of rocm-device-libs to build
HIP sources. The result of building rocm-device-libs is a collection of
LLVM IR files, and clang does not promise that LLVM IR will be
compatible between major versions. That is why src:rocm-device-libs
produces rocm-device-libs-17 when compiled with clang-17. The
rocm-device-libs-17 package cannot safely be used by clang-19 for
compiling HIP programs.
We could probably compile src:rocm-device-libs with clang-19 to produce
rocm-device-libs-19. I've never tried doing that and upstream probably
won't promise that it will work, but I don't know of any reason why it
wouldn't.
And if it only work with clang-19, why search instead of just picking
the one clang-17 it need? I do not know the answer to these questions,
but suspect it might provide insights useful for deciding what cmake
should do.
Agreed.
Sincerely,
Cory Bloor
Reply to: