[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 02:35:20 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-runtime-cuda-clang` running on `as-builder-7` while building `clang,compiler-rt` at step 7 "build-clang-default".

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

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

```
Step 7 (build-clang-default) failure: cmake (failure)
...
2.806 [55/126/595] Building CXX object compiler-rt/lib/msan/CMakeFiles/clang_rt.msan-x86_64.dir/msan_allocator.cpp.o
2.809 [55/125/596] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.x86_64.dir/log_error_to_stderr.cpp.o
2.811 [55/124/597] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_log_interface.cpp.o
2.820 [55/123/598] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.x86_64.dir/extensible_rtti.cpp.o
2.821 [55/122/599] Building CXX object compiler-rt/lib/nsan/CMakeFiles/RTNsan_dynamic.x86_64.dir/nsan_malloc_linux.cpp.o
2.824 [55/121/600] Linking CXX static library /home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/build/clang/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.fuzzer_interceptors.a
2.832 [55/120/601] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_fake_stack.cpp.o
2.833 [55/119/602] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-x86_64.dir/tsan_platform_linux.cpp.o
2.834 [55/118/603] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof.x86_64.dir/memprof_shadow_setup.cpp.o
2.836 [55/117/604] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.o
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.o 
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/build/clang/./bin/clang++ --target=x86_64-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/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/xray/.. -I/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-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 -m64 -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.x86_64.dir/xray_interface.cpp.o -MF compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.o.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.o -c /home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-clang/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-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.
2.843 [55/116/605] Building C object compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-x86_64.dir/InstrProfilingFile.c.o
2.845 [55/115/606] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof_preinit.x86_64.dir/memprof_preinit.cpp.o
2.846 [55/114/607] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-dynamic-x86_64.dir/tsan_interface_ann.cpp.o
2.848 [55/113/608] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_init.cpp.o
/home/buildbot/worker/as-builder-7/ramdisk/flang-runtime-cuda-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.
2.850 [55/112/609] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-x86_64.dir/tsan_sync.cpp.o
2.859 [55/111/610] Building ASM object compiler-rt/lib/orc/CMakeFiles/RTOrc.x86_64.dir/elfnix_tls.ppc64.S.o
2.860 [55/110/611] Building ASM object compiler-rt/lib/orc/CMakeFiles/RTOrc.x86_64.dir/elfnix_tls.aarch64.S.o
2.871 [55/109/612] Building CXX object compiler-rt/lib/nsan/CMakeFiles/RTNsan.x86_64.dir/nsan_malloc_linux.cpp.o
2.871 [55/108/613] Building ASM object compiler-rt/lib/orc/CMakeFiles/RTOrc.x86_64.dir/elfnix_tls.x86-64.S.o
2.879 [55/107/614] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasan.x86_64.dir/hwasan_report.cpp.o
2.895 [55/106/615] Building CXX object compiler-rt/lib/ubsan_minimal/CMakeFiles/RTUbsan_minimal.x86_64.dir/ubsan_minimal_handlers.cpp.o
2.896 [55/105/616] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasanAliases.x86_64.dir/hwasan.cpp.o
2.896 [55/104/617] Building CXX object compiler-rt/lib/tsan/rtl/CMakeFiles/clang_rt.tsan-x86_64.dir/tsan_rtl_mutex.cpp.o
2.904 [55/103/618] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof_dynamic.x86_64.dir/memprof_flags.cpp.o
2.909 [55/102/619] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof_dynamic.x86_64.dir/memprof_stack.cpp.o
2.912 [55/101/620] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof_dynamic.x86_64.dir/memprof_posix.cpp.o
2.919 [55/100/621] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasan_dynamic.x86_64.dir/hwasan_report.cpp.o
2.928 [55/99/622] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof_dynamic.x86_64.dir/memprof_linux.cpp.o
2.928 [55/98/623] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof.x86_64.dir/memprof_posix.cpp.o
2.928 [55/97/624] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof_dynamic.x86_64.dir/memprof_interceptors_memintrinsics.cpp.o
2.950 [55/96/625] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof.x86_64.dir/memprof_descriptions.cpp.o
2.958 [55/95/626] Building CXX object compiler-rt/lib/nsan/CMakeFiles/RTNsan_dynamic.x86_64.dir/nsan_stats.cpp.o
2.960 [55/94/627] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof.x86_64.dir/memprof_linux.cpp.o
2.961 [55/93/628] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.x86_64.dir/debug.cpp.o
2.964 [55/92/629] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof_dynamic.x86_64.dir/memprof_descriptions.cpp.o
2.967 [55/91/630] Building CXX object compiler-rt/lib/lsan/CMakeFiles/RTLSanCommon.x86_64.dir/lsan_common.cpp.o
2.967 [55/90/631] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof.x86_64.dir/memprof_interceptors_memintrinsics.cpp.o
2.969 [55/89/632] Building CXX object compiler-rt/lib/memprof/CMakeFiles/RTMemprof.x86_64.dir/memprof_stack.cpp.o
2.971 [55/88/633] Building CXX object compiler-rt/lib/hwasan/CMakeFiles/RTHwasanAliases.x86_64.dir/hwasan_report.cpp.o

```

</details>

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


More information about the cfe-commits mailing list