[llvm] [LTO] Avoid assert fail on failed pass plugin load (PR #96691)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 12:12:40 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/744
Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Feature/load_plugin_error.ll' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 4: not /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt < /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Feature/load_plugin_error.ll -load-pass-plugin=/Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp/nonexistent.so -disable-output 2>&1 | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Feature/load_plugin_error.ll
+ not /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -load-pass-plugin=/Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp/nonexistent.so -disable-output
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Feature/load_plugin_error.ll
RUN: at line 6: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Feature/load_plugin_error.ll -o /Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp.o
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Feature/load_plugin_error.ll -o /Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp.o
/Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt: WARNING: failed to create target machine for 'x86_64-unknown-linux-gnu': unable to get target for 'x86_64-unknown-linux-gnu', see --version and --triple.
RUN: at line 7: not /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/llvm-lto2 run -load-pass-plugin=/Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp/nonexistent.so /Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp.o -o /Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp -r /Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp.o,test 2>&1 | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Feature/load_plugin_error.ll
+ not /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/llvm-lto2 run -load-pass-plugin=/Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp/nonexistent.so /Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp.o -o /Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp -r /Users/buildbot/buildbot-root/aarch64-darwin/build/test/Feature/Output/load_plugin_error.ll.tmp.o,test
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Feature/load_plugin_error.ll
[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Feature/load_plugin_error.ll:11:10: [0m[0;1;31merror: [0m[1mCHECK: expected string not found in input
[0m; CHECK: Could not load library {{.*}}nonexistent.so
[0;1;32m ^
[0m[1m<stdin>:1:1: [0m[0;1;30mnote: [0m[1mscanning from here
[0mllvm-lto2: LTO::run failed: No available targets are compatible with triple "x86_64-unknown-linux-gnu"
[0;1;32m^
[0m[1m<stdin>:1:83: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0mllvm-lto2: LTO::run failed: No available targets are compatible with triple "x86_64-unknown-linux-gnu"
[0;1;32m ^
[0m
Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Feature/load_plugin_error.ll
-dump-input=help explains the following input dump.
Input was:
<<<<<<
[1m[0m[0;1;30m 1: [0m[1m[0;1;46mllvm-lto2: LTO::run failed: No available targets are compatible with triple "x86_64-unknown-linux-gnu" [0m
[0;1;31mcheck:11'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
[0m[0;1;35mcheck:11'1 ? possible intended match
[0m>>>>>>
--
********************
```
https://github.com/llvm/llvm-project/pull/96691
More information about the llvm-commits
mailing list