[lld] [llvm] [DTLTO] support distributing bitcode from FatLTO objects (PR #176928)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 21 07:16:27 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 130049 tests passed
* 2876 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### lld
<details>
<summary>lld.ELF/dtlto/timetrace.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 6
rm -rf C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp && split-file C:\_work\llvm-project\llvm-project\lld\test\ELF\dtlto\timetrace.test C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp && cd C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp'
# note: command had no output on stdout or stderr
# executed command: split-file 'C:\_work\llvm-project\llvm-project\lld\test\ELF\dtlto\timetrace.test' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp'
# note: command had no output on stdout or stderr
# executed command: cd 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 8
sed 's/@t1/@t2/g' t1.ll > t2.ll
# executed command: sed s/@t1/@t2/g t1.ll
# note: command had no output on stdout or stderr
# RUN: at line 11
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -thinlto-bc t1.ll -o t1.bc
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -thinlto-bc t1.ll -o t1.bc
# note: command had no output on stdout or stderr
# RUN: at line 12
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -thinlto-bc t2.ll -o t2.bc
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -thinlto-bc t2.ll -o t2.bc
# note: command had no output on stdout or stderr
# RUN: at line 15
llvm-ar rcs t1.a t1.bc
# executed command: llvm-ar rcs t1.a t1.bc
# note: command had no output on stdout or stderr
# RUN: at line 16
llvm-ar rcsT t2.thin.a t2.bc
# executed command: llvm-ar rcsT t2.thin.a t2.bc
# note: command had no output on stdout or stderr
# RUN: at line 19
c:\_work\llvm-project\llvm-project\build\bin\llc.exe t1.ll --filetype=obj -o t1.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' t1.ll --filetype=obj -o t1.o
# note: command had no output on stdout or stderr
# RUN: at line 20
c:\_work\llvm-project\llvm-project\build\bin\llc.exe t2.ll --filetype=obj -o t2.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' t2.ll --filetype=obj -o t2.o
# note: command had no output on stdout or stderr
# RUN: at line 25
c:\_work\llvm-project\llvm-project\build\bin\ld.lld.exe --whole-archive t1.a t2.thin.a -o my.elf --thinlto-distributor="C:\Python312\python.exe" --thinlto-distributor-arg=C:\_work\llvm-project\llvm-project\llvm/utils/dtlto/mock.py --thinlto-distributor-arg=t1.o --thinlto-distributor-arg=t2.o --time-trace-granularity=0 --time-trace=C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp.json
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\ld.lld.exe' --whole-archive t1.a t2.thin.a -o my.elf '--thinlto-distributor=C:\Python312\python.exe' '--thinlto-distributor-arg=C:\_work\llvm-project\llvm-project\llvm/utils/dtlto/mock.py' --thinlto-distributor-arg=t1.o --thinlto-distributor-arg=t2.o --time-trace-granularity=0 '--time-trace=C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp.json'
# .---command stderr------------
# | ld.lld: warning: cannot find entry symbol _start; not setting start address
# `-----------------------------
# RUN: at line 30
"C:\Python312\python.exe" filter_order_and_pprint.py C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp.json | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\lld\test\ELF\dtlto\timetrace.test
# executed command: 'C:\Python312\python.exe' filter_order_and_pprint.py 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\ELF\dtlto\Output\timetrace.test.tmp.json'
# 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\lld\test\ELF\dtlto\timetrace.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\lld\test\ELF\dtlto\timetrace.test:36:8: error: CHECK: expected string not found in input
# | CHECK: "name": "Save input archive member for DTLTO"
# | ^
# | <stdin>:10:45: note: scanning from here
# | {"name": "Remove temporary inputs for DTLTO", "pid": 40616, "tid": 33320, "ts": 124905, "ph": "X", "dur": 336}
# | ^
# | <stdin>:14:2: note: possible intended match here
# | {"name": "Total Emit individual index for DTLTO", "pid": 40616, "tid": 84750, "ph": "X", "ts": 0, "dur": 2835, "args": {"count": 2, "avg ms": 1}}
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\lld\test\ELF\dtlto\timetrace.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 5: {"name": "Emit individual index for DTLTO", "pid": 40616, "tid": 84740, "ts": 18988, "ph": "X", "dur": 1390, "args": {"detail": "t1.a(t1.bc at 80).1.9EA8.1.40616.native.o.thinlto.bc"}}
# | 6: {"name": "Emit individual index for DTLTO", "pid": 40616, "tid": 56612, "ts": 18944, "ph": "X", "dur": 1446, "args": {"detail": "t2.2.40616.native.o.thinlto.bc"}}
# | 7: {"name": "Execute DTLTO distributor", "pid": 40616, "tid": 33320, "ts": 21208, "ph": "X", "dur": 101076, "args": {"detail": "C:\\Python312\\python.exe"}}
# | 8: {"name": "Materialize bitcode input for DTLTO", "pid": 40616, "tid": 33320, "ts": 17309, "ph": "X", "dur": 1325, "args": {"detail": "t1.a(t1.bc at 80).1.9EA8.o"}}
# | 9: {"name": "Remove DTLTO temporary files", "pid": 40616, "tid": 33320, "ts": 123108, "ph": "X", "dur": 1629}
# | 10: {"name": "Remove temporary inputs for DTLTO", "pid": 40616, "tid": 33320, "ts": 124905, "ph": "X", "dur": 336}
# | check:36'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 11: {"name": "Total Add DTLTO files to the link", "pid": 40616, "tid": 84757, "ph": "X", "ts": 0, "dur": 495, "args": {"count": 1, "avg ms": 0}}
# | check:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 12: {"name": "Total Add input for DTLTO", "pid": 40616, "tid": 84755, "ph": "X", "ts": 0, "dur": 813, "args": {"count": 2, "avg ms": 0}}
# | check:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 13: {"name": "Total Emit DTLTO JSON", "pid": 40616, "tid": 84756, "ph": "X", "ts": 0, "dur": 765, "args": {"count": 1, "avg ms": 0}}
# | check:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 14: {"name": "Total Emit individual index for DTLTO", "pid": 40616, "tid": 84750, "ph": "X", "ts": 0, "dur": 2835, "args": {"count": 2, "avg ms": 1}}
# | check:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:36'1 ? possible intended match
# | 15: {"name": "Total Execute DTLTO distributor", "pid": 40616, "tid": 84745, "ph": "X", "ts": 0, "dur": 101076, "args": {"count": 1, "avg ms": 101}}
# | check:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: {"name": "Total Materialize bitcode input for DTLTO", "pid": 40616, "tid": 84752, "ph": "X", "ts": 0, "dur": 1324, "args": {"count": 1, "avg ms": 1}}
# | check:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 17: {"name": "Total Remove DTLTO temporary files", "pid": 40616, "tid": 84751, "ph": "X", "ts": 0, "dur": 1628, "args": {"count": 1, "avg ms": 1}}
# | check:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 18: {"name": "Total Remove temporary inputs for DTLTO", "pid": 40616, "tid": 84758, "ph": "X", "ts": 0, "dur": 336, "args": {"count": 1, "avg ms": 0}}
# | check:36'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/176928
More information about the llvm-commits
mailing list