[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 03:05:56 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot8` while building `clang,compiler-rt` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/5005
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
Checking undefined symbols...
+ cut -f 1,2 -d ' '
+ grep -Ev '^#|^$' /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/scripts/global_symbols.txt
+ sort -u
+ grep -E '^\+[^+]'
+ diff -u expected.new undefined.new
+ cp -f symbolizer.o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/sanitizer_common/symbolizer/RTSanitizerCommonSymbolizerInternal.aarch64.o
+ echo 'Success!'
Success!
[1885/2002] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp:213:27: error: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
213 | if (ObjId <= 0 || ObjId >= __xray_num_objects()) {
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1892/2002] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1923/2002] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan.aarch64.dir/asan_interceptors.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-stamps/runtimes-build
cd /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
@@@STEP_FAILURE@@@
@@@BUILD_STEP test compiler-rt symbolizer@@@
ninja: Entering directory `build_default'
[0/5] Performing build step for 'builtins'
ninja: no work to do.
[1/5] No install step for 'builtins'
[3/5] Completed 'builtins'
[3/5] Performing configure step for 'runtimes'
Not searching for unused variables given on the command line.
loading initial cache file /home/b/sanitizer-aarch64-linux/build/build_default/projects/runtimes/tmp/runtimes-cache-Release.cmake
CMake Deprecation Warning at /home/b/sanitizer-aarch64-linux/build/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0114 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Step 8 (build compiler-rt symbolizer) failure: build compiler-rt symbolizer (failure)
...
Checking undefined symbols...
+ cut -f 1,2 -d ' '
+ grep -Ev '^#|^$' /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/scripts/global_symbols.txt
+ sort -u
+ grep -E '^\+[^+]'
+ diff -u expected.new undefined.new
+ cp -f symbolizer.o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/sanitizer_common/symbolizer/RTSanitizerCommonSymbolizerInternal.aarch64.o
+ echo 'Success!'
Success!
[1885/2002] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp:213:27: error: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
213 | if (ObjId <= 0 || ObjId >= __xray_num_objects()) {
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1892/2002] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1923/2002] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan.aarch64.dir/asan_interceptors.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-stamps/runtimes-build
cd /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
...
-- Performing Test CXX_SUPPORTS_FSIZED_DEALLOCATION_FLAG - Success
-- check-runtimes does nothing.
-- Configuring done (15.9s)
-- Generating done (0.2s)
CMake Warning:
Manually-specified variables were not used by the project:
LIBCXX_HAS_GCC_S_LIB
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/fuzzer/libcxx_fuzzer_aarch64
[52/240] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp:213:27: error: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
213 | if (ObjId <= 0 || ObjId >= __xray_num_objects()) {
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
1 error generated.
[57/240] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[83/240] Generating RtsanNoInstTestObjects.rtsan_test_context.cpp.aarch64.o
[85/240] Generating GwpAsanTestObjects.compression.cpp.aarch64.o
[86/240] Generating RtsanTestObjects.gmock-all.cc.aarch64.o
[87/240] Generating GwpAsanTestObjects.recoverable.cpp.aarch64.o
[88/240] Generating RtsanNoInstTestObjects.rtsan_test_assertions.cpp.aarch64.o
[89/240] Generating RtsanTestObjects_FileOffset64.gmock-all.cc.aarch64.o
[90/240] Generating RtsanNoInstTestObjects.gmock-all.cc.aarch64.o
[91/240] Generating RtsanTestObjects_FileOffset64.rtsan_test_functional.cpp.aarch64.o
[92/240] Generating RtsanTestObjects.rtsan_test_functional.cpp.aarch64.o
[93/240] Generating TsanUnitTestsObjects.gtest-all.cc.aarch64.o
[94/240] Generating ScudoUnitTestsObjects.combined_test.cpp.aarch64.o
[95/240] Generating GwpAsanTestObjects.backtrace.cpp.aarch64.o
[96/240] Generating RtsanTestObjects_FileOffset64.rtsan_test_interceptors.cpp.aarch64.o
[97/240] Generating RtsanTestObjects.rtsan_test_interceptors.cpp.aarch64.o
[98/240] Generating RtsanTestObjects_FileOffset64.gtest-all.cc.aarch64.o
[99/240] Generating RtsanTestObjects.gtest-all.cc.aarch64.o
[100/240] Generating GwpAsanTestObjects.gtest-all.cc.aarch64.o
[101/240] Generating RtsanNoInstTestObjects.gtest-all.cc.aarch64.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/CMakeFiles/check-compiler-rt /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/CMakeFiles/check-compiler-rt
cd /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins && /usr/bin/cmake --build /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/ --target check-compiler-rt --config Release
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 10 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
-- Performing Test CXX_SUPPORTS_FSIZED_DEALLOCATION_FLAG - Success
-- check-runtimes does nothing.
-- Configuring done (17.8s)
-- Generating done (0.1s)
CMake Warning:
Manually-specified variables were not used by the project:
LIBCXX_HAS_GCC_S_LIB
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/fuzzer/libcxx_fuzzer_aarch64
[1888/2000] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -DSANITIZER_DEBUG=1 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O1 -g -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp:213:27: error: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
213 | if (ObjId <= 0 || ObjId >= __xray_num_objects()) {
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1897/2000] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -DSANITIZER_DEBUG=1 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O1 -g -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1927/2000] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/elfnix_platform.cpp.o
[1929/2000] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/locale.cpp.o
[1930/2000] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-aarch64.dir/tsan_interceptors_posix.cpp.o
[1931/2000] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-aarch64.dir/tsan_interceptors_posix.cpp.o
[1932/2000] Building CXX object compiler-rt/lib/msan/CMakeFiles/clang_rt.msan-aarch64.dir/msan_interceptors.cpp.o
[1933/2000] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.aarch64.dir/asan_interceptors.cpp.o
[1934/2000] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan.aarch64.dir/asan_interceptors.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-stamps/runtimes-build
cd /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 11 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
[44/234] Generating exported symbols for clang_rt.asan-aarch64
[45/234] Generating exported symbols for clang_rt.msan-aarch64
[46/234] Creating library symlink /home/b/sanitizer-aarch64-linux/build/build_default/lib/aarch64-unknown-linux-gnu/libc++.so.1 /home/b/sanitizer-aarch64-linux/build/build_default/lib/aarch64-unknown-linux-gnu/libc++.so
[47/234] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic_version_script_dummy.aarch64.dir/dummy.cpp.o
[48/234] Linking CXX shared library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.ubsan_standalone.so
[49/234] No patch step for 'libcxx_msan_aarch64'
[50/234] Generating exported symbols for clang_rt.tsan-aarch64
[51/234] Linking CXX shared library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.hwasan.so
[52/234] Linking CXX shared library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.asan.so
[53/234] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -DSANITIZER_DEBUG=1 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O1 -g -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp:213:27: error: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
213 | if (ObjId <= 0 || ObjId >= __xray_num_objects()) {
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
1 error generated.
[54/234] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -DSANITIZER_DEBUG=1 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O1 -g -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[55/234] Generating RtsanNoInstTestObjects.rtsan_test_main.cpp.aarch64.o
[56/234] Generating RtsanTestObjects_FileOffset64.rtsan_test_main.cpp.aarch64.o
[57/234] Generating GwpAsanTestObjects.driver.cpp.aarch64.o
[58/234] Generating GwpAsanTestObjects.late_init.cpp.aarch64.o
[59/234] Generating ScudoUnitTestsObjects.atomic_test.cpp.aarch64.o
[60/234] Generating ScudoUnitTestsObjects.checksum_test.cpp.aarch64.o
[61/234] Generating ScudoUnitTestsObjects.bytemap_test.cpp.aarch64.o
[62/234] Generating ScudoUnitTestsObjects.common_test.cpp.aarch64.o
[63/234] Generating ScudoUnitTestsObjects.condition_variable_test.cpp.aarch64.o
[64/234] Generating GwpAsanTestObjects.utilities.cpp.aarch64.o
[65/234] Generating ScudoUnitTestsObjects.list_test.cpp.aarch64.o
[66/234] Generating TsanUnitTestsObjects.tsan_bench.cpp.aarch64.o
[67/234] Generating ASAN_INST_TEST_OBJECTS.asan_globals_test.cpp.aarch64-inline.o
[68/234] Generating GwpAsanTestObjects.basic.cpp.aarch64.o
[69/234] Generating ScudoUnitTestsObjects.chunk_test.cpp.aarch64.o
[70/234] Generating ScudoUnitTestsObjects.map_test.cpp.aarch64.o
[71/234] Generating ScudoUnitTestsObjects.allocator_config_test.cpp.aarch64.o
[72/234] Generating GwpAsanTestObjects.iterate.cpp.aarch64.o
[73/234] Generating RtsanTestObjects.rtsan_test_main.cpp.aarch64.o
[74/234] Generating GwpAsanTestObjects.enable_disable.cpp.aarch64.o
[75/234] Generating ScudoUnitTestsObjects.flags_test.cpp.aarch64.o
[76/234] Generating GwpAsanTestObjects.mutex_test.cpp.aarch64.o
[77/234] Generating GwpAsanTestObjects.alignment.cpp.aarch64.o
[78/234] Generating GwpAsanTestObjects.options.cpp.aarch64.o
[79/234] Generating GwpAsanTestObjects.crash_handler_api.cpp.aarch64.o
[80/234] Generating GwpAsanTestObjects.compression.cpp.aarch64.o
Step 12 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
[1872/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_flags.cpp.o
[1873/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXrayBASIC.aarch64.dir/xray_basic_flags.cpp.o
[1874/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXrayFDR.aarch64.dir/xray_fdr_flags.cpp.o
[1875/1956] Building C object compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-aarch64.dir/InstrProfilingValue.c.o
[1876/1956] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/log_error_to_stderr.cpp.o
[1877/1956] Linking CXX shared library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.ubsan_minimal.so
[1878/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXrayPROFILING.aarch64.dir/xray_profiling_flags.cpp.o
[1879/1956] Building C object compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-aarch64.dir/InstrProfilingFile.c.o
[1880/1956] Generating exported symbols for clang_rt.ubsan_minimal-aarch64
[1881/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -DSANITIZER_DEBUG=1 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O1 -g -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp:213:27: error: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
213 | if (ObjId <= 0 || ObjId >= __xray_num_objects()) {
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1882/1956] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-aarch64.dir/tsan_rtl.cpp.o
[1883/1956] Building ASM object compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/elfnix_tls.x86-64.S.o
[1884/1956] Building ASM object compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/elfnix_tls.aarch64.S.o
[1885/1956] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-aarch64.dir/tsan_mman.cpp.o
[1886/1956] Linking CXX static library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.profile.a
[1887/1956] Building ASM object compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/elfnix_tls.ppc64.S.o
[1888/1956] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-aarch64.dir/tsan_sync.cpp.o
[1889/1956] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/debug.cpp.o
[1890/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_AArch64.cpp.o
[1891/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_log_interface.cpp.o
[1892/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -DSANITIZER_DEBUG=1 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O1 -g -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1893/1956] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-aarch64.dir/tsan_interface_atomic.cpp.o
[1894/1956] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-aarch64.dir/tsan_rtl_report.cpp.o
[1895/1956] Building CXX object libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_demangle.cpp.o
[1896/1956] Building CXX object compiler-rt/lib/scudo/standalone/CMakeFiles/RTScudoStandaloneCxxWrappers.aarch64.dir/wrappers_cpp.cpp.o
[1897/1956] Building CXX object compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-dynamic-aarch64.dir/wrappers_cpp.cpp.o
[1898/1956] Building CXX object libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_demangle.cpp.o
[1899/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXrayBASIC.aarch64.dir/xray_basic_logging.cpp.o
[1900/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_buffer_queue.cpp.o
[1901/1956] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasan_dynamic.aarch64.dir/hwasan_interceptors.cpp.o
[1902/1956] Building CXX object compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone_cxx-aarch64.dir/wrappers_cpp.cpp.o
[1903/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXrayPROFILING.aarch64.dir/xray_profiling.cpp.o
[1904/1956] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_utils.cpp.o
[1905/1956] Building CXX object compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-dynamic-aarch64.dir/wrappers_c.cpp.o
[1906/1956] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-aarch64.dir/tsan_interface_atomic.cpp.o
[1907/1956] Building CXX object compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-aarch64.dir/wrappers_c.cpp.o
[1908/1956] Building CXX object compiler-rt/lib/scudo/standalone/CMakeFiles/RTScudoStandaloneCWrappers.aarch64.dir/wrappers_c.cpp.o
Step 13 (build compiler-rt default) failure: build compiler-rt default (failure)
...
-- Performing Test CXX_SUPPORTS_FSIZED_DEALLOCATION_FLAG - Success
-- check-runtimes does nothing.
-- Configuring done (14.5s)
-- Generating done (0.1s)
CMake Warning:
Manually-specified variables were not used by the project:
LIBCXX_HAS_GCC_S_LIB
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/fuzzer/libcxx_fuzzer_aarch64
[1892/2000] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp:213:27: error: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
213 | if (ObjId <= 0 || ObjId >= __xray_num_objects()) {
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1900/2000] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1928/2000] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-aarch64.dir/tsan_interceptors_posix.cpp.o
[1930/2000] Building CXX object compiler-rt/lib/msan/CMakeFiles/clang_rt.msan-aarch64.dir/msan_interceptors.cpp.o
[1931/2000] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-aarch64.dir/tsan_interceptors_posix.cpp.o
[1932/2000] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.aarch64.dir/asan_interceptors.cpp.o
[1933/2000] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan.aarch64.dir/asan_interceptors.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-stamps/runtimes-build
cd /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 14 (test compiler-rt default) failure: test compiler-rt default (failure)
...
[41/235] No update step for 'libcxx_msan_aarch64'
[42/235] Linking CXX shared library /home/b/sanitizer-aarch64-linux/build/build_default/lib/aarch64-unknown-linux-gnu/libc++.so.1.0
[43/235] No patch step for 'libcxx_tsan_aarch64'
[44/235] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasan_dynamic_version_script_dummy.aarch64.dir/dummy.cpp.o
[45/235] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic_version_script_dummy.aarch64.dir/dummy.cpp.o
[46/235] No patch step for 'libcxx_msan_aarch64'
[47/235] Generating exported symbols for clang_rt.tsan-aarch64
[48/235] Creating library symlink /home/b/sanitizer-aarch64-linux/build/build_default/lib/aarch64-unknown-linux-gnu/libc++.so.1 /home/b/sanitizer-aarch64-linux/build/build_default/lib/aarch64-unknown-linux-gnu/libc++.so
[49/235] Linking CXX shared library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.ubsan_standalone.so
[50/235] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_init.cpp:213:27: error: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
213 | if (ObjId <= 0 || ObjId >= __xray_num_objects()) {
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
1 error generated.
[51/235] Linking CXX shared library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.asan.so
[52/235] Linking CXX shared library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.hwasan.so
[53/235] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang++ --target=aarch64-unknown-linux-gnu -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[54/235] Generating GwpAsanTestObjects.driver.cpp.aarch64.o
[55/235] Generating RtsanTestObjects.rtsan_test_main.cpp.aarch64.o
[56/235] Generating RtsanNoInstTestObjects.rtsan_test_main.cpp.aarch64.o
[57/235] Generating ScudoUnitTestsObjects.bytemap_test.cpp.aarch64.o
[58/235] Generating GwpAsanTestObjects.late_init.cpp.aarch64.o
[59/235] Generating RtsanTestObjects_FileOffset64.rtsan_test_main.cpp.aarch64.o
[60/235] Generating ScudoUnitTestsObjects.condition_variable_test.cpp.aarch64.o
[61/235] Generating TsanUnitTestsObjects.tsan_mop.cpp.aarch64.o
[62/235] Generating TsanUnitTestsObjects.tsan_bench.cpp.aarch64.o
[63/235] Generating ScudoUnitTestsObjects.common_test.cpp.aarch64.o
[64/235] Generating GwpAsanTestObjects.alignment.cpp.aarch64.o
[65/235] Generating ScudoUnitTestsObjects.atomic_test.cpp.aarch64.o
[66/235] Generating GwpAsanTestObjects.utilities.cpp.aarch64.o
[67/235] Generating GwpAsanTestObjects.options.cpp.aarch64.o
[68/235] Generating ScudoUnitTestsObjects.chunk_test.cpp.aarch64.o
[69/235] Generating ScudoUnitTestsObjects.flags_test.cpp.aarch64.o
[70/235] Generating GwpAsanTestObjects.thread_contention.cpp.aarch64.o
[71/235] Generating ScudoUnitTestsObjects.allocator_config_test.cpp.aarch64.o
[72/235] Generating ScudoUnitTestsObjects.checksum_test.cpp.aarch64.o
[73/235] Generating GwpAsanTestObjects.mutex_test.cpp.aarch64.o
[74/235] Generating GwpAsanTestObjects.basic.cpp.aarch64.o
[75/235] Generating GwpAsanTestObjects.enable_disable.cpp.aarch64.o
[76/235] Generating GwpAsanTestObjects.slot_reuse.cpp.aarch64.o
[77/235] Generating GwpAsanTestObjects.iterate.cpp.aarch64.o
Step 15 (build standalone compiler-rt) failure: build standalone compiler-rt (failure)
...
-- Performing Test CXX_SUPPORTS_FALIGNED_ALLOCATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test CXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test CXX_SUPPORTS_FSIZED_DEALLOCATION_FLAG
-- Performing Test CXX_SUPPORTS_FSIZED_DEALLOCATION_FLAG - Success
-- check-runtimes does nothing.
-- Configuring done (14.2s)
-- Generating done (0.1s)
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/fuzzer/libcxx_fuzzer_aarch64
[989/1075] Building CXX object lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/bin/clang++ -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -DXRAY_SUPPORTED=1 -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -Wall -Werror -Wno-unused-parameter -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1010/1075] Building CXX object lib/orc/CMakeFiles/RTOrc.aarch64.dir/elfnix_platform.cpp.o
[1012/1075] Building CXX object lib/tsan/rtl/CMakeFiles/clang_rt.tsan-aarch64.dir/tsan_interceptors_posix.cpp.o
[1013/1075] Building CXX object lib/msan/CMakeFiles/clang_rt.msan-aarch64.dir/msan_interceptors.cpp.o
[1014/1075] Building CXX object lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-aarch64.dir/tsan_interceptors_posix.cpp.o
[1015/1075] Building CXX object lib/asan/CMakeFiles/RTAsan_dynamic.aarch64.dir/asan_interceptors.cpp.o
[1016/1075] Building CXX object lib/asan/CMakeFiles/RTAsan.aarch64.dir/asan_interceptors.cpp.o
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 16 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
...
[1231/1239] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/filesystem/operations.cpp.o
[1232/1239] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/ios.instantiations.cpp.o
[1233/1239] Building CXX object libcxx/src/CMakeFiles/cxx_experimental.dir/experimental/tzdb.cpp.o
[1234/1239] Building CXX object libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_demangle.cpp.o
[1235/1239] Linking CXX static library lib/libc++abi.a
[1236/1239] Building CXX object libcxx/src/CMakeFiles/cxx_experimental.dir/experimental/time_zone.cpp.o
[1237/1239] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/locale.cpp.o
[1238/1239] Linking CXX static library lib/libc++.a
[1239/1239] Linking CXX static library lib/libc++experimental.a
[38/215] Building CXX object lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
FAILED: lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o
/home/b/sanitizer-aarch64-linux/build/build_default/bin/clang++ -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -DXRAY_SUPPORTED=1 -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/.. -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/../../include -Wall -Werror -Wno-unused-parameter -std=c++17 -march=armv8-a -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -Wno-format -fno-rtti -MD -MT lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -MF lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o.d -o lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_interface.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/lib/xray/xray_interface.cpp:16:10: fatal error: 'llvm/Support/ErrorHandling.h' file not found
16 | #include "llvm/Support/ErrorHandling.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[81/215] Generating RtsanTestObjects_FileOffset64.rtsan_test_interceptors.cpp.aarch64.o
[83/215] Generating RtsanTestObjects.rtsan_test_interceptors.cpp.aarch64.o
[84/215] Generating RtsanTestObjects.gtest-all.cc.aarch64.o
[85/215] Generating RtsanNoInstTestObjects.gtest-all.cc.aarch64.o
[86/215] Generating RtsanTestObjects_FileOffset64.gtest-all.cc.aarch64.o
[87/215] Generating GwpAsanTestObjects.gtest-all.cc.aarch64.o
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
```
</details>
https://github.com/llvm/llvm-project/pull/90959
More information about the cfe-commits
mailing list