[lld] [ELF] Add BPSectionOrderer options (PR #120514)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 2 18:19:26 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `premerge-monolithic-windows` running on `premerge-windows-1` while building `lld` at step 5 "clean-build-dir".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/35/builds/6910
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (clean-build-dir) failure: Delete failed. (failure)
Step 8 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'lld :: ELF/bp-section-orderer.s' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
rm -rf C:\ws\buildbot\premerge-monolithic-windows\build\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp && split-file C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s C:\ws\buildbot\premerge-monolithic-windows\build\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp && cd C:\ws\buildbot\premerge-monolithic-windows\build\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp
# executed command: rm -rf 'C:\ws\buildbot\premerge-monolithic-windows\build\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp'
# executed command: split-file 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s' 'C:\ws\buildbot\premerge-monolithic-windows\build\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp'
# executed command: cd 'C:\ws\buildbot\premerge-monolithic-windows\build\tools\lld\test\ELF\Output\bp-section-orderer.s.tmp'
# RUN: at line 5
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe C:\ws\buildbot\premerge-monolithic-windows\build\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:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-STARTUP-CALLGRAPH-ERR
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe' 'C:\ws\buildbot\premerge-monolithic-windows\build\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:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s' --check-prefix=BP-STARTUP-CALLGRAPH-ERR
# RUN: at line 6
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe --bp-compression-sort=function --call-graph-ordering-file /dev/null 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-COMPRESSION-CALLGRAPH-ERR
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe' --bp-compression-sort=function --call-graph-ordering-file /dev/null
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s' --check-prefix=BP-COMPRESSION-CALLGRAPH-ERR
# RUN: at line 7
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe --bp-startup-sort=function 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-STARTUP-ERR
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe' --bp-startup-sort=function
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s' --check-prefix=BP-STARTUP-ERR
# RUN: at line 8
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe --bp-compression-sort-startup-functions 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-STARTUP-COMPRESSION-ERR
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe' --bp-compression-sort-startup-functions
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s' --check-prefix=BP-STARTUP-COMPRESSION-ERR
# RUN: at line 9
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe --bp-startup-sort=invalid --bp-compression-sort=invalid 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=BP-INVALID
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe' --bp-startup-sort=invalid --bp-compression-sort=invalid
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s' --check-prefix=BP-INVALID
# RUN: at line 19
c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-mc.exe -filetype=obj -triple=aarch64 a.s -o a.o
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-mc.exe' -filetype=obj -triple=aarch64 a.s -o a.o
# RUN: at line 20
c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-profdata.exe merge a.proftext -o a.profdata
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-profdata.exe' merge a.proftext -o a.profdata
# RUN: at line 21
c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe a.o --irpgo-profile=a.profdata --bp-startup-sort=function --verbose-bp-section-orderer --icf=all 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=STARTUP-FUNC-ORDER
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe' a.o --irpgo-profile=a.profdata --bp-startup-sort=function --verbose-bp-section-orderer --icf=all
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s' --check-prefix=STARTUP-FUNC-ORDER
# RUN: at line 26
c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe -o out.s a.o --irpgo-profile=a.profdata --bp-startup-sort=function
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe' -o out.s a.o --irpgo-profile=a.profdata --bp-startup-sort=function
# RUN: at line 27
c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-nm.exe -jn out.s | tr '\n' , | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s --check-prefix=STARTUP
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-nm.exe' -jn out.s
# executed command: tr '\n' ,
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\lld\test\ELF\bp-section-orderer.s' --check-prefix=STARTUP
# RUN: at line 30
c:\ws\buildbot\premerge-monolithic-windows\build\bin\ld.lld.exe -o out.os a.o --irpgo-profile=a.profdata --bp-startup-sort=function --symbol-ordering-file a.txt
...
```
</details>
https://github.com/llvm/llvm-project/pull/120514
More information about the llvm-commits
mailing list