[clang] [compiler-rt] [XRay][Darwin] Enable XRay runtime on macOS (arm64/x86_64) (PR #196848)

via cfe-commits cfe-commits at lists.llvm.org
Sun May 10 17:35:01 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 95055 tests passed
* 2848 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### XRay-x86_64-linux
<details>
<summary>XRay-x86_64-linux.TestCases/Posix/dso-dep-chains.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 5
split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/xray/TestCases/Posix/dso-dep-chains.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/xray/TestCases/Posix/dso-dep-chains.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 8
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fxray-instrument  -m64   -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testliba.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testliba.so
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fxray-instrument -m64 -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testliba.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testliba.so
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fxray-instrument  -m64   -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibc.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibc.so
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fxray-instrument -m64 -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibc.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibc.so
# note: command had no output on stdout or stderr
# RUN: at line 10
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fxray-instrument  -m64   -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibb.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibc.so -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibb.so
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fxray-instrument -m64 -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibb.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibc.so -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibb.so
# note: command had no output on stdout or stderr
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fxray-instrument  -m64   -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibd.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibd.so
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fxray-instrument -m64 -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibd.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibd.so
# note: command had no output on stdout or stderr
# RUN: at line 12
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fxray-instrument  -m64   -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibf.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibf.so
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fxray-instrument -m64 -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibf.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibf.so
# note: command had no output on stdout or stderr
# RUN: at line 13
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fxray-instrument  -m64   -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibe.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibf.so -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibe.so
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fxray-instrument -m64 -g -fPIC -fxray-instrument -fxray-shared -shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibe.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibf.so -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibe.so
# note: command had no output on stdout or stderr
# RUN: at line 16
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fxray-instrument  -m64   -g -fPIC -rdynamic -fxray-instrument -fxray-shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/main.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testliba.so /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibb.so -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/main.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fxray-instrument -m64 -g -fPIC -rdynamic -fxray-instrument -fxray-shared -std=c++11 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/main.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testliba.so /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibb.so -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/main.o
# note: command had no output on stdout or stderr
# RUN: at line 18
env XRAY_OPTIONS="patch_premain=true"  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/main.o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibd.so /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibe.so 2>&1 | FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/xray/TestCases/Posix/dso-dep-chains.cpp
# executed command: env XRAY_OPTIONS=patch_premain=true /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/main.o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibd.so /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/xray/X86_64LinuxConfig/TestCases/Posix/Output/dso-dep-chains.cpp.tmp/testlibe.so
# note: command had no output on stdout or stderr
# executed command: FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/xray/TestCases/Posix/dso-dep-chains.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/xray/TestCases/Posix/dso-dep-chains.cpp:139:17: error: CHECK-NEXT: expected string not found in input
# |  // CHECK-NEXT: called: {{[0-9]+}}, object=[[OBJ7:[0-9]+]], fn=1, type=0
# |                 ^
# | <stdin>:24:42: note: scanning from here
# | called: 100663297, object=6, fn=1, type=1
# |                                          ^
# | <stdin>:25:3: note: possible intended match here
# | d called
# |   ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/xray/TestCases/Posix/dso-dep-chains.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            19: called: 100663297, object=6, fn=1, type=0 
# |            20: e called 
# |            21: called: 83886081, object=5, fn=1, type=0 
# |            22: f called 
# |            23: called: 83886081, object=5, fn=1, type=1 
# |            24: called: 100663297, object=6, fn=1, type=1 
# | next:139'0                                              X error: no match found
# |            25: d called 
# | next:139'0     ~~~~~~~~~
# | next:139'1       ?       possible intended match
# |            26: e called 
# | next:139'0     ~~~~~~~~~
# |            27: f called 
# | next:139'0     ~~~~~~~~~
# |            28: unpatching status: 1 
# | next:139'0     ~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list