Created attachment 587226 [details] GCC failure I've tried compiling with GCC-9 and using Clang from the llvm-roc package They both fail with different issues
Created attachment 587228 [details] Clang failure
I had similar issues. But after emerging the package sys-devel/llvm-roc-2.7.0 my compilation errors went away. Dunno what was wrong there. Perhaps some incompatibility with previously used justxi overlay of rocm packages.
Thank you for following up!
This didn't fix things for me I've never used the overlay, this is a clean install of rocm-opencl-runtime which pulls in dev-libs/rocm-opencl-driver, sys-devel/llvm-roc-2.7.0 has already compiled at this point
Adding these libraries manually to the build.ninja file got the build working for me: /usr/lib/llvm/roc/lib/libLLVMBitWriter.so.9roc /usr/lib/llvm/roc/lib/libLLVMLinker.so.9roc /usr/lib/llvm/roc/lib/libLLVMIRReader.so.9roc /usr/lib/llvm/roc/lib/libLLVMMCParser.so.9roc /usr/lib/llvm/roc/lib/libclangSerialization.so.9roc
Created attachment 588254 [details] Fix This patch gets things working It's in the FireBurn overlay
Pull request submitted upstream https://github.com/RadeonOpenCompute/ROCm-OpenCL-Driver/pull/88
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a31c9aa8de9537fe1918546bd4895c187917eabb commit a31c9aa8de9537fe1918546bd4895c187917eabb Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2019-08-27 13:04:10 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2019-08-27 13:04:43 +0000 dev-libs/rocm-opencl-driver: Include more link libraries Closes: https://bugs.gentoo.org/692404 Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Craig Andrews <candrews@gentoo.org> .../files/rocm-opencl-driver-2.7.0-libraries.patch | 40 ++++++++++++++++++++++ .../rocm-opencl-driver-2.7.0.ebuild | 1 + 2 files changed, 41 insertions(+)