Public bug reported:

When building packages that use HIP (e.g., spfft, gloo-rocm),
compilation fails with:

/usr/lib/llvm-21/lib/clang/21/include/cuda_wrappers/cmath:30:2: error: "Could 
not find standard C++ header 'cmath'..."
/usr/lib/llvm-21/lib/clang/21/include/__clang_hip_runtime_wrapper.h:112:10: 
fatal error: 'cstdlib' file not found

clang-21 selects GCC 16 as its toolchain, but hipcc doesn't depend on
libstdc++-16-dev, so C++ headers are missing during HIP device
compilation.

Fix: Add to hipcc's Depends in control:

libstdc++-16-dev | libstdc++-dev

** Affects: rocm-llvm (Ubuntu)
     Importance: Undecided
     Assignee: Igor Luppi (igorluppi)
         Status: In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143637

Title:
  hipcc: Missing libstdc++-16-dev dependency causes HIP compilation
  failures with clang-21

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rocm-llvm/+bug/2143637/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to