sys-libs/compiler-rt-sanitizers-13.0.0-r1 include patches that use macro __GLIBC_PREREQ, but this macro is only available in glibc. Reproducible: Always Steps to Reproduce: 1. emerge "=sys-libs/compiler-rt-sanitizers-13.0.0-r1" Actual Results: /tmp/portage/sys-libs/compiler-rt-sanitizers-13.0.0-r1/work/compiler-rt/lib/msan/msan_interceptors.cpp:660:46: error: function-like macro '__GLIBC_PREREQ' is not defined #if SANITIZER_FREEBSD || SANITIZER_NETBSD || SANITIZER_STAT_LINUX ^ /tmp/portage/sys-libs/compiler-rt-sanitizers-13.0.0-r1/work/compiler-rt/lib/msan/msan_interceptors.cpp:659:50: note: expanded from macro 'SANITIZER_STAT_LINUX' #define SANITIZER_STAT_LINUX (SANITIZER_LINUX && __GLIBC_PREREQ(2, 33)) ^ /tmp/portage/sys-libs/compiler-rt-sanitizers-13.0.0-r1/work/compiler-rt/lib/msan/msan_interceptors.cpp:699:46: error: function-like macro '__GLIBC_PREREQ' is not defined #if SANITIZER_FREEBSD || SANITIZER_NETBSD || SANITIZER_STAT_LINUX ^ /tmp/portage/sys-libs/compiler-rt-sanitizers-13.0.0-r1/work/compiler-rt/lib/msan/msan_interceptors.cpp:659:50: note: expanded from macro 'SANITIZER_STAT_LINUX' #define SANITIZER_STAT_LINUX (SANITIZER_LINUX && __GLIBC_PREREQ(2, 33)) ^ 2 errors generated. Expected Results: Those patches should only be applied on glibc system.
Created attachment 759938 [details] emerge --info
Please do include the full build.log and emerge --info. It helps debugging for those who can't reproduce (or for whom it'd be a huge amount of effort). Avoiding conditional patching is preferred and more upstreamable.
Created attachment 759939 [details] build.log
We actually just need https://github.com/llvm/llvm-project/commit/b4fb42300e39c99ac5bb9d02b304b713fabdec4d which should be in 13.0.1.
Should be fixed in 13.0.1 which is in tree now.