Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 813105 - dev-libs/libclc-0.2.0_pre20201001 - Unknown command line argument '--amdhsa-code-object-version=3'
Summary: dev-libs/libclc-0.2.0_pre20201001 - Unknown command line argument '--amdhsa-c...
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: 2021-09-14 22:06 UTC by Bertrand Jacquin
Modified: 2021-11-07 19:12 UTC (History)
2 users (show)

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


Attachments
emerge --info (info.log,18.29 KB, text/x-log)
2021-09-14 22:07 UTC, Bertrand Jacquin
Details
build.log (build.log,7.33 KB, text/x-log)
2021-09-14 22:07 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2021-09-14 22:06:53 UTC
Hi,

dev-libs/libclc-0.2.0_pre20201001 fails to build with llvm-12 with the following error:

[4/936] /usr/lib/llvm/12/bin/clang -DCLC_R600 -D__CLC_INTERNAL -I/var/tmp/portage/dev-libs/libclc-0.2.0_pre20201001/work/libclc-0.2.0_pre20201001/generic/include -target r600-- -mcpu=cedar -fno-builtin -nostdlib -o CMakeFiles/builtins.link.cedar-r600--.dir/convert.bc -c convert.cl -emit-llvm
FAILED: CMakeFiles/builtins.link.cedar-r600--.dir/convert.bc
/usr/lib/llvm/12/bin/clang -DCLC_R600 -D__CLC_INTERNAL -I/var/tmp/portage/dev-libs/libclc-0.2.0_pre20201001/work/libclc-0.2.0_pre20201001/generic/include -target r600-- -mcpu=cedar -fno-builtin -nostdlib -o CMakeFiles/builtins.link.cedar-r600--.dir/convert.bc -c convert.cl -emit-llvm
clang (LLVM option parsing): Unknown command line argument '--amdhsa-code-object-version=3'.  Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean '--pgo-memop-max-version=3'?
ninja: build stopped: subcommand failed.
 * ERROR: dev-libs/libclc-0.2.0_pre20201001::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 3356:  Called cmake_src_compile
 *   environment, line 1394:  Called cmake_build
 *   environment, line 1363:  Called eninja
 *   environment, line 1870:  Called die

Note that llvm on my system is built with LLVM_TARGETS="BPF (X86) -AArch64 -AMDGPU -ARC -ARM -AVR (-CSKY) -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -XCore"

Full logs and emerge --info attached



Reproducible: Always
Comment 1 Bertrand Jacquin 2021-09-14 22:07:20 UTC
Created attachment 739332 [details]
emerge --info
Comment 2 Bertrand Jacquin 2021-09-14 22:07:37 UTC
Created attachment 739335 [details]
build.log
Comment 3 Bertrand Jacquin 2021-11-07 19:12:25 UTC
Resolving since this issue is no longer applicable to dev-libs/libclc-13.0.0