[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:45:35 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `clang,compiler-rt` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/6456
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (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 (3.2s)
-- Generating done (0.1s)
-- Build files have been written to: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/runtimes/runtimes-x86_64-unknown-fuchsia-bins/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64
[1739/1829] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/bin/clang++ --target=x86_64-unknown-fuchsia --sysroot=/usr/local/fuchsia/sdk/arch/x64/sysroot -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/xray/.. -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/xray/../../include --target=x86_64-unknown-fuchsia -I/usr/local/fuchsia/sdk/pkg/sync/include -I/usr/local/fuchsia/sdk/pkg/fdio/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 -ffunction-sections -fdata-sections -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/runtimes/runtimes-x86_64-unknown-fuchsia-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Wall -Wno-unused-parameter -O2 -g -DNDEBUG -std=c++17 -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 -nostdinc++ -isystem/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/include/x86_64-unknown-fuchsia/c++/v1 -isystem/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/include/c++/v1 -isystem/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libcxxabi/include -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj -MF compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/var/lib/buildbot/fuchsia-x86_64-linux/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.
[1745/1829] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_init.cpp.obj
/var/lib/buildbot/fuchsia-x86_64-linux/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.
[1771/1829] Building CXX object libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_demangle.cpp.obj
[1773/1829] Building CXX object libcxx/src/CMakeFiles/cxx_shared.dir/locale.cpp.obj
[1774/1829] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/locale.cpp.obj
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-x86_64-unknown-fuchsia-stamps/runtimes-x86_64-unknown-fuchsia-build /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/runtimes/runtimes-x86_64-unknown-fuchsia-stamps/runtimes-x86_64-unknown-fuchsia-build
cd /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/runtimes/runtimes-x86_64-unknown-fuchsia-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
['ninja', '-C', '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf', 'toolchain-distribution'] exited with return code 1.
@@@STEP_FAILURE@@@
@@@BUILD_STEP check@@@
Running: ninja -C /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf check-llvm check-clang check-lld
ninja: Entering directory `/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf'
[1/1329] Building NVLinkOpts.inc...
[2/1329] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/HardwareUnits/HardwareUnit.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[3/1329] Creating export file for LTO
[4/1329] Linking CXX static library lib/libLLVMTableGenBasic.a
[5/1329] Linking CXX static library lib/libLLVMTableGenCommon.a
[6/1329] Building CXX object tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[7/1329] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/HardwareUnits/RetireControlUnit.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[8/1329] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/CodeEmitter.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[9/1329] Building CXX object lib/Frontend/OpenACC/CMakeFiles/LLVMFrontendOpenACC.dir/ACC.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[10/1329] Building CXX object lib/MCA/CMakeFiles/LLVMMCA.dir/Support.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
Step 6 (build) failure: build (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 (3.2s)
-- Generating done (0.1s)
-- Build files have been written to: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/runtimes/runtimes-x86_64-unknown-fuchsia-bins/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64
[1739/1829] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj
FAILED: compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/bin/clang++ --target=x86_64-unknown-fuchsia --sysroot=/usr/local/fuchsia/sdk/arch/x64/sysroot -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DXRAY_HAS_EXCEPTIONS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/xray/.. -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/xray/../../include --target=x86_64-unknown-fuchsia -I/usr/local/fuchsia/sdk/pkg/sync/include -I/usr/local/fuchsia/sdk/pkg/fdio/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 -ffunction-sections -fdata-sections -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/runtimes/runtimes-x86_64-unknown-fuchsia-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Wall -Wno-unused-parameter -O2 -g -DNDEBUG -std=c++17 -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 -nostdinc++ -isystem/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/include/x86_64-unknown-fuchsia/c++/v1 -isystem/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/include/c++/v1 -isystem/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libcxxabi/include -Wno-format -fno-rtti -MD -MT compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj -MF compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj.d -o compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_interface.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/compiler-rt/lib/xray/xray_interface.cpp
/var/lib/buildbot/fuchsia-x86_64-linux/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.
[1745/1829] Building CXX object compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_init.cpp.obj
/var/lib/buildbot/fuchsia-x86_64-linux/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.
[1771/1829] Building CXX object libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_demangle.cpp.obj
[1773/1829] Building CXX object libcxx/src/CMakeFiles/cxx_shared.dir/locale.cpp.obj
[1774/1829] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/locale.cpp.obj
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-x86_64-unknown-fuchsia-stamps/runtimes-x86_64-unknown-fuchsia-build /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/runtimes/runtimes-x86_64-unknown-fuchsia-stamps/runtimes-x86_64-unknown-fuchsia-build
cd /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf/runtimes/runtimes-x86_64-unknown-fuchsia-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
['ninja', '-C', '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-sitgfrnf', 'toolchain-distribution'] exited with return code 1.
```
</details>
https://github.com/llvm/llvm-project/pull/90959
More information about the cfe-commits
mailing list