[clang] [lldb] [llvm] [lldb] Support relocatable Mach-O DWARF sections (PR #239801)

via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 16:47:30 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 151959 tests passed
* 3165 tests skipped
* 1 test failed

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

### Clang
<details>
<summary>Clang.Driver/relocatable-dwarf.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### --target=arm64-apple-none-macho -g -c C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c 2>&1    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c --check-prefix=CC1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' --target=arm64-apple-none-macho -g -c 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c' --check-prefix=CC1
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### --target=arm64-apple-firmware -g -c C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c 2>&1    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c --check-prefix=CC1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' --target=arm64-apple-firmware -g -c 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c' --check-prefix=CC1
# note: command had no output on stdout or stderr
# RUN: at line 9
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### --target=arm64-apple-bridgeos9.0 -g -c C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c 2>&1    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c --check-prefix=CC1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' --target=arm64-apple-bridgeos9.0 -g -c 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c' --check-prefix=CC1
# note: command had no output on stdout or stderr
# RUN: at line 11
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### --target=arm64-apple-none-macho -g -c -x assembler C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c 2>&1    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c --check-prefix=CC1AS
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' --target=arm64-apple-none-macho -g -c -x assembler 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c' --check-prefix=CC1AS
# note: command had no output on stdout or stderr
# RUN: at line 13
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### --target=arm64-apple-none-macho -flto C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c 2>&1    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c --check-prefix=LINK
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' --target=arm64-apple-none-macho -flto 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c' --check-prefix=LINK
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c:37:10: error: LINK: expected string not found in input
# | // LINK: {{/|\\\\}}ld{{(.exe)?}}" {{.*}}"-mllvm" "-macho-relocatable-dwarf"
# |          ^
# | <stdin>:1:1: note: scanning from here
# | clang version 24.0.0git (https://github.com/llvm/llvm-project 51f6f6870fcd7531ea3c4c9aaed6b8a0af87b633)
# | ^
# | <stdin>:7:13: note: possible intended match here
# |  "ld" "-dynamic" "-arch" "arm64" "-mllvm" "-macho-relocatable-dwarf" "-mllvm" "-enable-linkonceodr-outlining" "-o" "a.out" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-681w8bzi\\relocatable-dwarf-431dbf.o"
# |             ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Driver\relocatable-dwarf.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: clang version 24.0.0git (https://github.com/llvm/llvm-project 51f6f6870fcd7531ea3c4c9aaed6b8a0af87b633) 
# | check:37'0    {                                                                                                          search range start (exclusive)
# | check:37'1                                                                                                               error: no match found in search range
# |             2: Target: arm64-apple-none-macho 
# |             3: Thread model: posix 
# |             4: InstalledDir: C:\_work\llvm-project\llvm-project\build\bin 
# |             5: Build config: +assertions 
# |             6:  "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "arm64-apple-none-macho" "-emit-llvm-bc" "-flto=full" "-flto-unit" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "relocatable-dwarf.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=non-leaf-no-reserve" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=1" "-enable-tlsdesc" "-target-cpu" "generic" "-target-feature" "+v8a" "-target-feature" "+fp-armv8" "-target-feature" "+neon" "-target-abi" "aapcs" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24" "-internal-isystem" "/usr\\local\\include" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24\\include" "-internal-externc-isystem" "/usr\\include" "-ferror-limit" "19" "-fblocks" "-fencode-extended-block-signature" "-fno-signed-char" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fdwarf2-cfi-asm" "-o" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-681w8bzi\\relocatable-dwarf-431dbf.o" "-x" "c" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver\\relocatable-dwarf.c" 
# |             7:  "ld" "-dynamic" "-arch" "arm64" "-mllvm" "-macho-relocatable-dwarf" "-mllvm" "-enable-linkonceodr-outlining" "-o" "a.out" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-681w8bzi\\relocatable-dwarf-431dbf.o" 
# | check:37'2                 ?                                                                                                                                                                                                                        possible intended match
# | check:37'3                                                                                                                                                                                                                                        } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/239801


More information about the cfe-commits mailing list