Hi Cordell, On 2026-11-28 10:46, Cordell Bloor wrote: > HiĀ Aurelien, > > On 2026-11-28 08:22, Aurelien Jarno wrote: > > amd-device-libs-21 contains LLVM IR bytecode, which does not depends on > > the host architecture. Therefore the content of the package on all > > architectures is the same for a given LLVM compiler version. > > > > I therefore believe this package can be switched to arch:all. > > An LLM review of amd-device-libs-23 noted the same [1], with the most > convincing argument to me being: > > The comparable libclc-23, which also ships amdgcn bitcode, is > Architecture: all with Multi-Arch: foreign (apt-cache). > > There was a similar discussion a long time ago when the device-libs were > first packaged. A cursory inspection of the binaries showed that the bitcode > files had different hashes on different platforms. We never dug deeper to > understand if the differences are meaningful.
I have just done a check for amd-device-libs-23, the files are identical on all architectures where it got built, including hurd-amd64. I have also check amd-device-libs-21, and the files are identical on all architectures except on riscv64, presumably because it got built with a different version of llvm-toolchain-21. I can try to rebuild it with the same version once the same llvm-toolchain-21 version is available. > I've opened an issue upstream to ask for clarification [2]. The LLVM > developers I've spoke to privately have had cautious words about the > suggestion, but did not deny that it could work. In the absence of a > specific reason otherwise, I would be tempted to follow the lead of the > Debian LLVM maintainers. Thanks! > With that said, given that LLVM 21 and LLVM 22 have bugs filed for their > removal, it's likely that amd-device-libs-21 will be short-lived. The actual > switch to arch: all would probably happen for amd-device-libs-23. Indeed, I have opened the bug against the first package I have found, and then I didn't feel it was useful for the discussion to open bugs for other similar packages. Note however that I have heard that LLVM 21 will stay for forky in addition to the default version, but I don't remember when I read that. Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B [email protected] http://aurel32.net

