[lld] [ELF] Change Ctx::target to unique_ptr (PR #111260)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 6 21:51:19 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x64-windows-msvc` running on `windows-gcebot2` while building `lld` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/63/builds/1953

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/clang-windows.py ...' (failure)
...
[68/95] Linking CXX executable tools\lld\unittests\AsLibELF\LLDAsLibELFTests.exe
[69/95] Linking CXX executable tools\lld\unittests\AsLibAll\LLDAsLibAllTests.exe
[69/95] Running lld test suite
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 2992 tests, 32 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: lld :: ELF/aarch64-thunk-bti.s (666 of 2992)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
rm -rf C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && split-file C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && cd C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp
# executed command: rm -rf 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: split-file 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: cd 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# RUN: at line 3
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 asm -o a.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 asm -o a.o
# RUN: at line 4
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# RUN: at line 5
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s'
# RUN: at line 6
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-PADS
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-PADS
# RUN: at line 7
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 shared -o shared.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 shared -o shared.o
# RUN: at line 8
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --shared -o shared.so shared.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --shared -o shared.so shared.o
# RUN: at line 9
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# RUN: at line 10
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn exe | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-EXE
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn exe
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-EXE
# RUN: at line 11
Step 8 (stage 1 check) failure: stage 1 check (failure)
...
[68/95] Linking CXX executable tools\lld\unittests\AsLibELF\LLDAsLibELFTests.exe
[69/95] Linking CXX executable tools\lld\unittests\AsLibAll\LLDAsLibAllTests.exe
[69/95] Running lld test suite
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:506: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 2992 tests, 32 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: lld :: ELF/aarch64-thunk-bti.s (666 of 2992)
******************** TEST 'lld :: ELF/aarch64-thunk-bti.s' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
rm -rf C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && split-file C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp && cd C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp
# executed command: rm -rf 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: split-file 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# executed command: cd 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\aarch64-thunk-bti.s.tmp'
# RUN: at line 3
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 asm -o a.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 asm -o a.o
# RUN: at line 4
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --threads=1 --shared --script=lds a.o -o out.so --defsym absolute=0xf0000000
# RUN: at line 5
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s'
# RUN: at line 6
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn out.so | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-PADS
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn out.so
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-PADS
# RUN: at line 7
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 shared -o shared.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 shared -o shared.o
# RUN: at line 8
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --shared -o shared.so shared.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --shared -o shared.so shared.o
# RUN: at line 9
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' shared.so --script=lds a.o -o exe --defsym absolute=0xf0000000
# RUN: at line 10
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe -d --no-show-raw-insn exe | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s --check-prefix=CHECK-EXE
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-objdump.exe' -d --no-show-raw-insn exe
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\aarch64-thunk-bti.s' --check-prefix=CHECK-EXE
# RUN: at line 11

```

</details>

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


More information about the llvm-commits mailing list