Similar to https://bugs.gentoo.org/927752 1. During the build, it failed with the next message: /usr/lib/llvm/17/bin/clang -DCLC_AMDGCN -D__CLC_INTERNAL -I/usr/lib/llvm/17/include -I/var/tmp/portage/dev-libs/libclc-18.1.3/work/libclc/generic/include -cl-no-stdinc -target amdgcn-- -mcpu=tahiti -fno-builtin -nostdlib -o CMakeFiles/builtins.link.tahiti-amdgcn--.dir/convert.bc -c /var/tmp/portage/dev-libs/libclc-18.1.3/work/libclc_build/convert.cl -emit-llvm error: option 'cf-protection=return' cannot be specified on this target error: option 'cf-protection=branch' cannot be specified on this target 2. Rusticl Mesa OpenCL apps don't work with the same issue - error: option 'cf-protection=return' cannot be specified on this target error: option 'cf-protection=branch' cannot be specified on this target Error executing LLVM compilation action. Reproducible: Always
Bug reports about build failures need emerge --info as a comment and build.log as an attachment.
Created attachment 889966 [details] build log
Created attachment 889967 [details] emerge --info
Sorry, I added all the files.
I can't reproduce this bug. libclc-18.1.3* and libclc-19* compiled fine for me with clang-common >= https://bugs.gentoo.org/927752#c4 Yury Zhuravlev, could you check the output of: emerge sys-devel/clang-common --pretend --verbose It looks like you did not update sys-devel/clang-common. I guess when you initially installed clang-18, you unmasked some versions, but now 18.1.3-r3 is still masked on your system.
(In reply to Sv. Lockal from comment #5) > I can't reproduce this bug. libclc-18.1.3* and libclc-19* compiled fine for > me with clang-common >= https://bugs.gentoo.org/927752#c4 > > Yury Zhuravlev, could you check the output of: > emerge sys-devel/clang-common --pretend --verbose > > It looks like you did not update sys-devel/clang-common. I guess when you > initially installed clang-18, you unmasked some versions, but now 18.1.3-r3 > is still masked on your system. Seems like it's ok, [ebuild R ~] sys-devel/clang-common-18.1.3-r3::gentoo USE="cet -bootstrap-prefix -default-compiler-rt -default-libcxx -default-lld -hardened -llvm-libunwind -verify-sig" But I can try to reinstall it.
okey, I solved it, llvm:17 and clang:17 was from gentoo-locomotion overlay, after I rebuild it for ::gentoo version everything became fine. Thank you.