[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:08 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3820 tests passed
* 244 tests skipped
* 3 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
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -### C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90 2>&1 -foptimization-record-file=C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.opt.yaml | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=YAML C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' '-###' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90' '-foptimization-record-file=C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=YAML 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -### C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90 2>&1 -fsave-optimization-record | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=YAML C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' '-###' 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=YAML 'C:\_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 C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.opt.yaml
# executed command: rm -f 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -foptimization-record-file=C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.opt.yaml -c C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' '-foptimization-record-file=C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.opt.yaml' -c 'C:\_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 C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.opt.yaml | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90
# executed command: cat 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_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 C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.opt.yaml
# executed command: rm -f 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fsave-optimization-record -c -o C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.o C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fsave-optimization-record -c -o 'C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.o' 'C:\_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 C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.opt.yaml | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90
# executed command: cat 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_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 C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.opt.yaml
# executed command: rm -f 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fsave-optimization-record -S -o C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.s C:\_work\llvm-project\llvm-project\flang\test\Driver\fsave-optimization-record.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fsave-optimization-record -S -o 'C:\_work\llvm-project\llvm-project\build\tools\flang\test\Driver\Output\fsave-optimization-record.f90.tmp.s' 'C:\_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 c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fsyntax-only -fsyntax-only C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-1
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -fsyntax-only -fsyntax-only 'C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_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 c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -E -fsyntax-only C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-2
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -E -fsyntax-only 'C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_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 c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fsyntax-only -E -emit-llvm C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-3
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -fsyntax-only -E -emit-llvm 'C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_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 c:\_work\llvm-project\llvm-project\build\bin\flang.exe -S -Xflang -emit-llvm C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95 --check-prefixes=ERROR,ACTIONS-4
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -S -Xflang -emit-llvm 'C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\multiple-actions-error.f95' --check-prefixes=ERROR,ACTIONS-4
# .---command stderr------------
# | C:\_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: C:\_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
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -S -o /dev/null C:\_work\llvm-project\llvm-project\flang\test\Driver\parse-ir-error.f95
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 -S -o /dev/null 'C:\_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 c:\_work\llvm-project\llvm-project\build\bin\flang.exe -S -x ir C:\_work\llvm-project\llvm-project\flang\test\Driver\parse-ir-error.f95 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Driver\parse-ir-error.f95
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -S -x ir 'C:\_work\llvm-project\llvm-project\flang\test\Driver\parse-ir-error.f95'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Driver\parse-ir-error.f95'
# .---command stderr------------
# | C:\_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: C:\_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>
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