Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 752045 - dev-libs/libclc-0.2.0_pre20191024 Fails to compile: cannot find ROCm device library.
Summary: dev-libs/libclc-0.2.0_pre20191024 Fails to compile: cannot find ROCm device l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-31 17:50 UTC by Andrew Nowa Ammerlaan
Modified: 2020-11-01 19:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,290.06 KB, text/plain)
2020-10-31 17:51 UTC, Andrew Nowa Ammerlaan
Details
environment (environment,93.65 KB, text/plain)
2020-10-31 17:51 UTC, Andrew Nowa Ammerlaan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Nowa Ammerlaan gentoo-dev 2020-10-31 17:50:40 UTC
libclc-0.2.0_pre20191024 fails to compile for me. I get this error:

clang-11: error: cannot find ROCm device library. Provide its path via --rocm-path or --rocm-device-lib-path, or pass -nogpulib to build without ROCm device library.
make: *** [Makefile:2490: amdgcn--amdhsa/lib/workitem/get_global_size.cl.bc] Error 1

Build log attached
Comment 1 Andrew Nowa Ammerlaan gentoo-dev 2020-10-31 17:51:29 UTC
Created attachment 669446 [details]
build.log
Comment 2 Andrew Nowa Ammerlaan gentoo-dev 2020-10-31 17:51:46 UTC
Created attachment 669449 [details]
environment
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-11-01 07:21:34 UTC
Do you have AMDGPU LLVM target enabled?  If not, could you try rebuilding LLVM & Clang with it?
Comment 4 Andrew Nowa Ammerlaan gentoo-dev 2020-11-01 08:35:52 UTC
> Do you have AMDGPU LLVM target enabled?

Yes, I have these llvm versions installed:

10.0.1(10)^t{tbz2}(15:04:02 30/10/20)(libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar -z3 ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="-Darwin" LLVM_TARGETS="AMDGPU X86-AArch64 -ARC -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore") 

11.0.0(11)^t{tbz2}(14:08:12 30/10/20)(libffi ncurses xml -debug -doc -exegesis -gold -libedit -test -xar -z3 ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="-Darwin" LLVM_TARGETS="AMDGPU X86 -AArch64 -ARC -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore")

And these LLVM_TARGETS set: LLVM_TARGETS="X86 AMDGPU"
Comment 5 Andrew Nowa Ammerlaan gentoo-dev 2020-11-01 19:13:34 UTC
The new snapshot libclc-0.2.0_pre20201001 fixes this for me :)