[lld] [ELF] Add BPSectionOrderer options (PR #120514)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 2 17:40:03 PST 2025
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/3814
<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)
...
[69/96] Linking CXX executable tools\lld\unittests\AsLibAll\LLDAsLibAllTests.exe
[70/96] Linking CXX executable tools\lld\unittests\AsLibELF\LLDAsLibELFTests.exe
[70/96] 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: 3041 tests, 32 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: lld :: ELF/bp-section-orderer.s (3041 of 3041)
******************** TEST 'lld :: ELF/bp-section-orderer.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\bp-section-orderer.s.tmp && split-file C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp && cd C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp
# executed command: rm -rf 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp'
# executed command: split-file 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp'
# executed command: cd 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp'
# RUN: at line 5
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp --irpgo-profile=/dev/null --bp-startup-sort=function --call-graph-ordering-file=/dev/null 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-STARTUP-CALLGRAPH-ERR
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp' --irpgo-profile=/dev/null --bp-startup-sort=function --call-graph-ordering-file=/dev/null
# 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\bp-section-orderer.s' --check-prefix=BP-STARTUP-CALLGRAPH-ERR
# RUN: at line 6
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --bp-compression-sort=function --call-graph-ordering-file /dev/null 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-COMPRESSION-CALLGRAPH-ERR
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --bp-compression-sort=function --call-graph-ordering-file /dev/null
# 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\bp-section-orderer.s' --check-prefix=BP-COMPRESSION-CALLGRAPH-ERR
# RUN: at line 7
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --bp-startup-sort=function 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-STARTUP-ERR
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --bp-startup-sort=function
# 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\bp-section-orderer.s' --check-prefix=BP-STARTUP-ERR
# RUN: at line 8
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --bp-compression-sort-startup-functions 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-STARTUP-COMPRESSION-ERR
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --bp-compression-sort-startup-functions
# 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\bp-section-orderer.s' --check-prefix=BP-STARTUP-COMPRESSION-ERR
# RUN: at line 9
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --bp-startup-sort=invalid --bp-compression-sort=invalid 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-INVALID
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --bp-startup-sort=invalid --bp-compression-sort=invalid
# 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\bp-section-orderer.s' --check-prefix=BP-INVALID
# RUN: at line 19
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 a.s -o a.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 a.s -o a.o
# RUN: at line 20
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-profdata.exe merge a.proftext -o a.profdata
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-profdata.exe' merge a.proftext -o a.profdata
# RUN: at line 21
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe a.o --irpgo-profile=a.profdata --bp-startup-sort=function --verbose-bp-section-orderer --icf=all 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=STARTUP-FUNC-ORDER
Step 8 (stage 1 check) failure: stage 1 check (failure)
...
[69/96] Linking CXX executable tools\lld\unittests\AsLibAll\LLDAsLibAllTests.exe
[70/96] Linking CXX executable tools\lld\unittests\AsLibELF\LLDAsLibELFTests.exe
[70/96] 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: 3041 tests, 32 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: lld :: ELF/bp-section-orderer.s (3041 of 3041)
******************** TEST 'lld :: ELF/bp-section-orderer.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\bp-section-orderer.s.tmp && split-file C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp && cd C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp
# executed command: rm -rf 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp'
# executed command: split-file 'C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp'
# executed command: cd 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp'
# RUN: at line 5
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp --irpgo-profile=/dev/null --bp-startup-sort=function --call-graph-ordering-file=/dev/null 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-STARTUP-CALLGRAPH-ERR
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp' --irpgo-profile=/dev/null --bp-startup-sort=function --call-graph-ordering-file=/dev/null
# 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\bp-section-orderer.s' --check-prefix=BP-STARTUP-CALLGRAPH-ERR
# RUN: at line 6
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --bp-compression-sort=function --call-graph-ordering-file /dev/null 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-COMPRESSION-CALLGRAPH-ERR
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --bp-compression-sort=function --call-graph-ordering-file /dev/null
# 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\bp-section-orderer.s' --check-prefix=BP-COMPRESSION-CALLGRAPH-ERR
# RUN: at line 7
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --bp-startup-sort=function 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-STARTUP-ERR
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --bp-startup-sort=function
# 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\bp-section-orderer.s' --check-prefix=BP-STARTUP-ERR
# RUN: at line 8
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --bp-compression-sort-startup-functions 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-STARTUP-COMPRESSION-ERR
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --bp-compression-sort-startup-functions
# 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\bp-section-orderer.s' --check-prefix=BP-STARTUP-COMPRESSION-ERR
# RUN: at line 9
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe --bp-startup-sort=invalid --bp-compression-sort=invalid 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-INVALID
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe' --bp-startup-sort=invalid --bp-compression-sort=invalid
# 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\bp-section-orderer.s' --check-prefix=BP-INVALID
# RUN: at line 19
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe -filetype=obj -triple=aarch64 a.s -o a.o
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 a.s -o a.o
# RUN: at line 20
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-profdata.exe merge a.proftext -o a.profdata
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-profdata.exe' merge a.proftext -o a.profdata
# RUN: at line 21
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe a.o --irpgo-profile=a.profdata --bp-startup-sort=function --verbose-bp-section-orderer --icf=all 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=STARTUP-FUNC-ORDER
```
</details>
https://github.com/llvm/llvm-project/pull/120514
More information about the llvm-commits
mailing list