wenju-he wrote:

It seems this PR caused runfail in compiler-rt testing in 
https://github.com/llvm/llvm-project/pull/226916#issuecomment-5885720024:
```
🐧 Linux x64 Test Results
•       6458 tests passed
•       1526 tests skipped
•       1 test failed
Failed Tests
(click on a test name to see its output)
Profile-x86_64
Profile-x86_64.Profile-x86_64/instrprof-thinlto-indirect-call-promotion.cpp 
Exit Code: 127

Command Output (stdout):
--
# RUN: at line 31
rm -rf 
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-thinlto-indirect-call-promotion.cpp.tmp
 && split-file 
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/profile/instrprof-thinlto-indirect-call-promotion.cpp
 
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-thinlto-indirect-call-promotion.cpp.tmp
 && cd 
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-thinlto-indirect-call-promotion.cpp.tmp
# executed command: rm -rf 
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-thinlto-indirect-call-promotion.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: split-file 
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/profile/instrprof-thinlto-indirect-call-promotion.cpp
 
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-thinlto-indirect-call-promotion.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: cd 
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-thinlto-indirect-call-promotion.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 36
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  
--driver-mode=g++  -m64  -ldl  -fprofile-generate -fuse-ld=lld -O2 lib.cpp 
main.cpp -o main
# executed command: 
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang 
--driver-mode=g++ -m64 -ldl -fprofile-generate -fuse-ld=lld -O2 lib.cpp 
main.cpp -o main
# note: command had no output on stdout or stderr
# RUN: at line 37
env LLVM_PROFILE_FILE=main.profraw  ./main
# executed command: env LLVM_PROFILE_FILE=main.profraw ./main
# note: command had no output on stdout or stderr
# RUN: at line 38
llvm-profdata merge main.profraw -o main.profdata
# executed command: llvm-profdata merge main.profraw -o main.profdata
# note: command had no output on stdout or stderr
# RUN: at line 42
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang   
-m64  -ldl -mllvm -disable-icp -fprofile-use=main.profdata -flto=thin -O2 -c 
lib.cpp -o lib.bc
# executed command: 
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang -m64 
-ldl -mllvm -disable-icp -fprofile-use=main.profdata -flto=thin -O2 -c lib.cpp 
-o lib.bc
# .---command stderr------------
# | clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
# `-----------------------------
# RUN: at line 45
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang   
-m64  -ldl -fprofile-use=main.profdata -flto=thin -O2 -c main.cpp -o main.bc
# executed command: 
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang -m64 
-ldl -fprofile-use=main.profdata -flto=thin -O2 -c main.cpp -o main.bc
# .---command stderr------------
# | clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
# `-----------------------------
# RUN: at line 48
llvm-dis lib.bc -o - | FileCheck 
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/profile/instrprof-thinlto-indirect-call-promotion.cpp
 --check-prefix=PGOName
# executed command: llvm-dis lib.bc -o -
# .---command stderr------------
# | 'llvm-dis': command not found
# `-----------------------------
# error: command failed with exit status: 127

```
I proposed a fix at https://github.com/llvm/llvm-project/pull/227212

https://github.com/llvm/llvm-project/pull/214134
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to