[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 10:05:24 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `bolt-aarch64-ubuntu-clang` running on `bolt-worker-aarch64` while building `clang,compiler-rt` at step 6 "test-build-clang-bolt-stage2-clang-bolt".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/128/builds/845

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-clang-bolt-stage2-clang-bolt) failure: test (failure)
...
85.177 [66/6/1929] Building C object compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-aarch64.dir/InstrProfilingUtil.c.o
85.225 [65/6/1930] Linking CXX static library /home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/build/lib/clang/20/lib/aarch64-unknown-linux-gnu/libclang_rt.profile.a
85.244 [64/6/1931] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_flags.cpp.o
85.270 [63/6/1932] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_init.cpp.o
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/xray/xray_init.cpp:213:27: warning: comparison of integers of different signs: 'int32_t' (aka 'int') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
  213 |   if (ObjId <= 0 || ObjId >= __xray_num_objects()) {
      |                     ~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~
1 warning generated.
85.420 [62/6/1933] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_log_interface.cpp.o
85.429 [61/6/1934] 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/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/build/./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/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/xray/.. -I/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/xray/../../include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -Wno-unused-parameter -O3 -DNDEBUG -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 -std=c++17 -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/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/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.
85.444 [61/5/1935] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_buffer_queue.cpp.o
85.484 [61/4/1936] Building ASM object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_trampoline_AArch64.S.o
85.489 [61/3/1937] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_AArch64.cpp.o
85.689 [61/2/1938] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.aarch64.dir/xray_utils.cpp.o
86.112 [61/1/1939] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-aarch64.dir/tsan_interceptors_posix.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/build/runtimes/runtimes-stamps/runtimes-build 
cd /home/worker/buildbot-aarch64/bolt-aarch64-ubuntu-clang/build/runtimes/runtimes-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.

```

</details>

https://github.com/llvm/llvm-project/pull/90959


More information about the cfe-commits mailing list