Created attachment 674251 [details] build log FAILED: lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_rtl_amd64.S.o /usr/lib/ccache/bin/x86_64-pc-linux-gnu-clang -I/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/.. -x c -O2 -pipe -march=native -Wall -Wno-unused-parameter -m64 -fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fPIE -fno-rtti -msse3 -Wframe-larger-than=530 -Wglobal-constructors --sysroot=. -MD -MT lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_rtl_amd64.S.o -MF lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_rtl_amd64.S.o.d -o lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_rtl_amd64.S.o -c /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:7:1: error: expected identifier or '(' .section .text ^ /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:16:5: error: invalid preprocessing directive # Save scratch registers. ^ /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:44:5: error: invalid preprocessing directive # Align stack frame. ^ /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:55:5: error: invalid preprocessing directive # Unalign stack frame back. ^ /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:60:5: error: invalid preprocessing directive # Restore scratch registers. ^ /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:96:5: error: invalid preprocessing directive # Save scratch registers. ^ /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:124:5: error: invalid preprocessing directive # Align stack frame. ^ /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:135:5: error: invalid preprocessing directive # Unalign stack frame back. ^ /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:140:5: error: invalid preprocessing directive # Restore scratch registers. ^ 9 errors generated.
Created attachment 674254 [details] emerge info
Created attachment 674257 [details] emerge -pqv
this is caused by a change in cmake see also https://gitlab.kitware.com/cmake/cmake/-/issues/21469 a temporary fix for now is to downgrade cmake to something <3.19.0 it seems the cmake change would be reverted in cmake-3.19.1. furthermore compiler-rt-sanitizers has adjusted its buildsystem to the cmake change but that needs a backport of the fix to the 11.0. branch
After temporary downgrade cmake to 3.18 it compiled as expected. Created the following bug to ask for cmake slotting: https://bugs.gentoo.org/756070
with cmake-3.19.1, which is in ::gentoo now, it compiles...
*** This bug has been marked as a duplicate of bug 755824 ***