[flang-commits] [flang] [flang][Driver] Improve error message for assembly file input (PR #174069)
via flang-commits
flang-commits at lists.llvm.org
Wed Dec 31 09:04:09 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 3862 tests passed
* 201 tests skipped
* 4 tests failed
## Failed Tests
(click on a test name to see its output)
### Flang
<details>
<summary>Flang.Driver/fsave-optimization-record.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -### /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90 2>&1 -foptimization-record-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=YAML /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang '-###' /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90 -foptimization-record-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=YAML /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# note: command had no output on stdout or stderr
# RUN: at line 8
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -### /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90 2>&1 -fsave-optimization-record | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=YAML /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang '-###' /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90 -fsave-optimization-record
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=YAML /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# note: command had no output on stdout or stderr
# RUN: at line 14
rm -f /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml
# executed command: rm -f /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml
# note: command had no output on stdout or stderr
# RUN: at line 15
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -foptimization-record-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -foptimization-record-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# note: command had no output on stdout or stderr
# RUN: at line 16
cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# executed command: cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# note: command had no output on stdout or stderr
# RUN: at line 20
rm -f /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml
# executed command: rm -f /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml
# note: command had no output on stdout or stderr
# RUN: at line 21
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fsave-optimization-record -c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fsave-optimization-record -c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# note: command had no output on stdout or stderr
# RUN: at line 22
cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# executed command: cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# note: command had no output on stdout or stderr
# RUN: at line 24
rm -f /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml
# executed command: rm -f /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.opt.yaml
# note: command had no output on stdout or stderr
# RUN: at line 25
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fsave-optimization-record -S -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.s /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fsave-optimization-record -S -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/fsave-optimization-record.f90.tmp.s /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/fsave-optimization-record.f90
# .---command stderr------------
# | error: Currently, the driver does not accept assembly code. Use clang instead. Note that '-lflang_rt.runtime -lm' is required for linking.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Driver/multiple-actions-error.f95</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 4
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fsyntax-only -fsyntax-only /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-1
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fsyntax-only -fsyntax-only /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-1
# note: command had no output on stdout or stderr
# RUN: at line 7
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -E -fsyntax-only /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-2
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -E -fsyntax-only /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-2
# note: command had no output on stdout or stderr
# RUN: at line 10
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fsyntax-only -E -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-3
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fsyntax-only -E -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-3
# note: command had no output on stdout or stderr
# RUN: at line 16
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -S -Xflang -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-4
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -S -Xflang -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-4
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95:25:10: error: ERROR: expected string not found in input
# | ! ERROR: error: only one action option is allowed.
# | ^
# | <stdin>:1:1: note: scanning from here
# | error: Currently, the driver does not accept assembly code. Use clang instead. Note that '-lflang_rt.runtime -lm' is required for linking.
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/multiple-actions-error.f95
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: error: Currently, the driver does not accept assembly code. Use clang instead. Note that '-lflang_rt.runtime -lm' is required for linking.
# | check:25 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Driver/parse-ir-error.f95</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -S -o /dev/null /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/parse-ir-error.f95
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -S -o /dev/null /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/parse-ir-error.f95
# note: command had no output on stdout or stderr
# RUN: at line 8
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -S -x ir /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/parse-ir-error.f95 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/parse-ir-error.f95
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -S -x ir /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/parse-ir-error.f95
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/parse-ir-error.f95
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/parse-ir-error.f95:10:10: error: CHECK: expected string not found in input
# | ! CHECK: error: Could not parse IR
# | ^
# | <stdin>:1:1: note: scanning from here
# | error: Currently, the driver does not accept assembly code. Use clang instead. Note that '-lflang_rt.runtime -lm' is required for linking.
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/parse-ir-error.f95
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: error: Currently, the driver does not accept assembly code. Use clang instead. Note that '-lflang_rt.runtime -lm' is required for linking.
# | check:10 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Driver/save-mlir-temps.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 16
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-llvm-bc -save-temps=#invalid-dir -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/save-mlir-temps.f90 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/save-mlir-temps.f90 -check-prefix=MLIR-ERROR
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-llvm-bc '-save-temps=#invalid-dir' -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/save-mlir-temps.f90
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/save-mlir-temps.f90 -check-prefix=MLIR-ERROR
# note: command had no output on stdout or stderr
# RUN: at line 22
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/save-mlir-temps.f90.tmp && mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/save-mlir-temps.f90.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/save-mlir-temps.f90.tmp
# note: command had no output on stdout or stderr
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/save-mlir-temps.f90.tmp
# note: command had no output on stdout or stderr
# RUN: at line 23
pushd /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/save-mlir-temps.f90.tmp && /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -c -fno-integrated-as -save-temps=cwd -o out.o /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/save-mlir-temps.f90 2>&1
# executed command: pushd /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/test/Driver/Output/save-mlir-temps.f90.tmp
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -c -fno-integrated-as -save-temps=cwd -o out.o /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/save-mlir-temps.f90
# .---command stdout------------
# | error: Currently, the driver does not accept assembly code. Use clang instead. Note that '-lflang_rt.runtime -lm' is required for linking.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/174069
More information about the flang-commits
mailing list