[lld] [ELF] Parallelize input file loading (PR #191690)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 12 00:50:00 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 3800 tests passed
* 76 tests skipped
* 6 tests failed
## Failed Tests
(click on a test name to see its output)
### lld
<details>
<summary>lld.ELF/duplicated-synthetic-sym.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/duplicated-synthetic-sym.s.tmp && mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/duplicated-synthetic-sym.s.tmp && cd /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/duplicated-synthetic-sym.s.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/duplicated-synthetic-sym.s.tmp
# note: command had no output on stdout or stderr
# executed command: mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/duplicated-synthetic-sym.s.tmp
# note: command had no output on stdout or stderr
# executed command: cd /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/duplicated-synthetic-sym.s.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=x86_64 /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/duplicated-synthetic-sym.s -o a.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=x86_64 /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/duplicated-synthetic-sym.s -o a.o
# note: command had no output on stdout or stderr
# RUN: at line 4
echo > file.bin
# executed command: echo
# note: command had no output on stdout or stderr
# RUN: at line 6
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld a.o --format=binary file.bin 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/duplicated-synthetic-sym.s
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld a.o --format=binary file.bin
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/duplicated-synthetic-sym.s
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/duplicated-synthetic-sym.s:9:11: error: CHECK: expected string not found in input
# | // CHECK: error: duplicate symbol: _binary_file_bin_start
# | ^
# | <stdin>:1:1: note: scanning from here
# | ld.lld: error: file.bin: not an ELF file
# | ^
# | <stdin>:1:9: note: possible intended match here
# | ld.lld: error: file.bin: not an ELF file
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/duplicated-synthetic-sym.s
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ld.lld: error: file.bin: not an ELF file
# | check:9'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:9'1 ? possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>lld.ELF/format-binary.test</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 3
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/format-binary.test.tmp.dir
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/format-binary.test.tmp.dir
# note: command had no output on stdout or stderr
# RUN: at line 4
mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/format-binary.test.tmp.dir
# executed command: mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/format-binary.test.tmp.dir
# note: command had no output on stdout or stderr
# RUN: at line 5
cd /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/format-binary.test.tmp.dir
# executed command: cd /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/format-binary.test.tmp.dir
# note: command had no output on stdout or stderr
# RUN: at line 7
mkdir d
# executed command: mkdir d
# note: command had no output on stdout or stderr
# RUN: at line 8
echo -n "Fluffle Puff" > d/t.txt
# executed command: echo -n 'Fluffle Puff'
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -m elf_x86_64 -r -b binary d/t.txt -t -o ro | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/format-binary.test --check-prefix=RO-TRACE
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -m elf_x86_64 -r -b binary d/t.txt -t -o ro
# .---command stderr------------
# | ld.lld: error: d/t.txt: not an ELF file
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/format-binary.test --check-prefix=RO-TRACE
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/format-binary.test --check-prefix=RO-TRACE
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>lld.ELF/linkerscript/target.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=x86_64-unknown-linux /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/linkerscript/target.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple=x86_64-unknown-linux /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/linkerscript/target.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.o
# note: command had no output on stdout or stderr
# RUN: at line 4
echo "TARGET(binary) INPUT(\"/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.o\") TARGET(elf64-x86-64) INPUT(\"/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.o\")" > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.script
# executed command: echo 'TARGET(binary) INPUT("/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.o") TARGET(elf64-x86-64) INPUT("/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.o")'
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld --script /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.script -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.exe
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld --script /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.script -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.exe
# .---command stderr------------
# | ld.lld: error: duplicate symbol: foobar
# | >>> defined at /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.o:(.text+0x0)
# | >>> defined at /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/linkerscript/Output/target.s.tmp.o:(.text+0x0)
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>lld.ELF/loongarch-interlink.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp && split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/loongarch-interlink.test /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp
# note: command had no output on stdout or stderr
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/ELF/loongarch-interlink.test /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/yaml2obj /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/blob.yaml -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/blob.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/yaml2obj /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/blob.yaml -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/blob.o
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/yaml2obj /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v0-lp64d.yaml -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v0-lp64d.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/yaml2obj /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v0-lp64d.yaml -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v0-lp64d.o
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc --filetype=obj --triple=loongarch64-unknown-gnu /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/start.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v1-lp64d.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc --filetype=obj --triple=loongarch64-unknown-gnu /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/start.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v1-lp64d.o
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc --filetype=obj --triple=loongarch64-unknown-gnusf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/start.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v1-lp64s.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc --filetype=obj --triple=loongarch64-unknown-gnusf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/start.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v1-lp64s.o
# note: command had no output on stdout or stderr
# RUN: at line 8
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc --filetype=obj --triple=loongarch64-unknown-gnu /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/bar.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v1-b-lp64d.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc --filetype=obj --triple=loongarch64-unknown-gnu /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/bar.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/v1-b-lp64d.o
# note: command had no output on stdout or stderr
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -m elf64loongarch -b binary /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/blob.bin -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/blob.out
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -m elf64loongarch -b binary /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/blob.bin -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/blob.out
# .---command stderr------------
# | ld.lld: error: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/loongarch-interlink.test.tmp/blob.bin: not an ELF file
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>lld.ELF/mips-elf-flags-binary.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 4
echo -n "BLOB" > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/mips-elf-flags-binary.s.tmp.binary
# executed command: echo -n BLOB
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -m elf32btsmip -r -b binary /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/mips-elf-flags-binary.s.tmp.binary -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/mips-elf-flags-binary.s.tmp.out
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -m elf32btsmip -r -b binary /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/mips-elf-flags-binary.s.tmp.binary -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/mips-elf-flags-binary.s.tmp.out
# .---command stderr------------
# | ld.lld: error: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/mips-elf-flags-binary.s.tmp.binary: not an ELF file
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>lld.ELF/riscv-elf-flags.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
echo -n "BLOB" > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/riscv-elf-flags.s.tmp.binary
# executed command: echo -n BLOB
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -m elf64lriscv -b binary /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/riscv-elf-flags.s.tmp.binary -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/riscv-elf-flags.s.tmp.out
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -m elf64lriscv -b binary /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/riscv-elf-flags.s.tmp.binary -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/riscv-elf-flags.s.tmp.out
# .---command stderr------------
# | ld.lld: error: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/ELF/Output/riscv-elf-flags.s.tmp.binary: not an ELF file
# `-----------------------------
# 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/191690
More information about the llvm-commits
mailing list