<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/153574>153574</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Test failure in sanitizer-ld.c when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is OFF
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
res0nance
</td>
</tr>
</table>
<pre>
Hi I experienced a test failure when running the tests after compiling llvm 20.1.8.
I've narrowed it to this block in my configuration
```
tc.variables["LLVM_ENABLE_PER_TARGET_RUNTIME_DIR"] = "OFF"
tc.variables["BUILTINS_CMAKE_ARGS"] = "-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF"
tc.variables["RUNTIMES_CMAKE_ARGS"] = "-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF"
```
The test failure is in
```
For posterity the test bug was:
Input was:
<<<<<<
1: clang version 20.1.8
2: Target: x86_64-unknown-linux
3: Thread model: posix
4: InstalledDir: /home/raihaan/.conan2/p/b/clange52d6a1cceac6/b/bin
5: Build config: +assertions
6: "/home/raihaan/.conan2/p/b/clange52d6a1cceac6/b/bin/clang-20" "-cc1" "-triple" "x86_64-unknown-linux" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "sanitizer-ld.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/raihaan/.conan2/p/b/clange52d6a1cceac6/b/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/raihaan/.conan2/p/b/clange52d6a1cceac6/b/tools/clang/test/Driver" "-resource-dir" "/home/raihaan/.conan2/p/b/clange52d6a1cceac6/b/lib/clang/20" "-internal-isystem" "/home/raihaan/.conan2/p/b/clange52d6a1cceac6/b/lib/clang/20/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fsanitize=safe-stack,shadow-call-stack" "-fno-sanitize-memory-param-retval" "-fno-sanitize-address-use-odr-indicator" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/tmp/lit-tmp-ad0p4oi9/sanitizer-ld-37799a.o" "-x" "c" "/home/raihaan/.conan2/p/b/clange52d6a1cceac6/b/clang/test/Driver/sanitizer-ld.c"
7: "/usr/bin/ld" "-z" "relro" "--hash-style=gnu" "--eh-frame-hdr" "-m" "elf_x86_64" "-pie" "-dynamic-linker" "/lib64/ld-linux-x86-64.so.2" "-o" "a.out" "/lib/x86_64-linux-gnu/Scrt1.o" "/lib/x86_64-linux-gnu/crti.o" "/usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o" "-L/usr/lib/gcc/x86_64-linux-gnu/11" "-L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib64" "-L/lib/x86_64-linux-gnu" "-L/lib/../lib64" "-L/usr/lib/x86_64-linux-gnu" "-L/usr/lib/../lib64" "-L/lib" "-L/usr/lib" "-u" "__safestack_init" "/home/raihaan/.conan2/p/b/clange52d6a1cceac6/b/lib/clang/20/lib/linux/libclang_rt.safestack-x86_64.a" "--export-dynamic" "/tmp/lit-tmp-ad0p4oi9/sanitizer-ld-37799a.o" "--no-as-needed" "-lpthread" "-lrt" "-lm" "-ldl" "-lresolv" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o" "/lib/x86_64-linux-gnu/crtn.o"
check:927'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:927'1
```
This seems to be this test https://github.com/llvm/llvm-project/blob/87f0227cb60147a26a1eeb4fb06e3b505e9c7261/clang/test/Driver/sanitizer-ld.c#L927
Feel free to let me know if you require more information and I'll do my best to provide it.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsGE1zozj21-CLShQIY8cHH9wh9Lg23bOVZGb3RgnpAZoIiZWEk8xhf_uWAGOnk-5JT_fsXFrlSiS9T-l9iUetFbUC2AbpuyDNFrR3jTZbAzZSVDFYlJo_bX8SaI_gsQMjQDHgiCIH1qGKCtkbQA8NKGR6pYSqkWtggFpEKwcGMd12QnqIlIcWkSiMw4swiHbjbx-Q9QGQosboB-BIOOQ0co2wqJSa3SOhUPuEmFaVqHtDndDKU66i6RftHAsP1AhaSrD-HIRcX__6obj6uHt3fVX88-qmuNvdvL-6K25--Xi3_3BVZPubgJAgzVCQZCgg5Oc89xuvsXr3y_76bv_xtrj8sPvHVbG7eX_7nBZnb5CWZF8QMSF-PxHnlxNEu7vJIrO9hEVCTRY4Q821QZ22DoxwT7MdUdnX6IHaIJkshvaq691pCwXJ5ae_aIfiINkhJqmq0QGMFVpNtvfAZ4N4zDtqanB-9nixKlZL3Kt7pR8UlkL1j54mGdAaA5SjVnOQft1pKx5fcFx60F5ZR6UEngnj1wHJG91CQHJDRUOpCkgeMq2oIgHJu4DkZUDyQWNICV_RmDGgbDUByuHKnstJPd93vZB8ctBRzjtqLRjvqfYFyWpEId9BmwmMSRQQMvgJY_Fx6ozoJEyrV690QoRWOKzL345r3rcdF2ZaUjzvC-t9FlcGYJYngRpMrcMlVNoALim7B8WP8JYKhSshASvaHqksVcKJ38FgyUM2oxqQmg3hjUfrjoBOzCidYFjCYQaRc4CwuBOzYm1laAu400I5MEGSUXmkwlVLXYPBGKXnrarDTCtnKHNBkmk1A5TGRveKC1VjTzcLYFpZZ3rmtMFUCmrBzkS9ehCKYzfGeJLNirrByTHr-pNh8Go5g3sFZ8AaFJjT8TmUfV2D8WhC1UGS1bycZQ5QPCbb8Ra9EZPsG_3MaS3tEcGvwbqA5JkRBzCzcKYPYGgNf5N8A1b3hgE--e03ipWiPBN6C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