[clang] [NFC][clang][Driver] Add tests for --driver-mode=flang (PR #207658)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 23 04:48:40 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/60051
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Driver/flang/runtimes.f90' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang --driver-mode=flang --rtlib=compiler-rt -### /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/flang/runtimes.f90 2>&1 | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/flang/runtimes.f90
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang --driver-mode=flang --rtlib=compiler-rt '-###' /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/flang/runtimes.f90
# note: command had no output on stdout or stderr
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/flang/runtimes.f90
# .---command stderr------------
# | [1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/flang/runtimes.f90:4:14: [0m[0;1;31merror: [0m[1mCHECK-DAG: expected string not found in input
[0m# | [1m[0m! CHECK-DAG: clang_rt.{{[^ "]}}
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:1:1: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0mSIE flang version 24.0.0git (https://github.com/llvm/llvm-project.git d814be1bb794baf0650158a6bd1dda23f4f86e99)
# | [0;1;32m^
[0m# | [0;1;32m[0m[1m<stdin>:4:49: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m# | [1m[0mInstalledDir: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin
# | [0;1;32m ^
[0m# | [0;1;32m[0m
# | Input file: <stdin>
# | Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/flang/runtimes.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | [1m[0m[0;1;90m 1: [0m[1m[0;1;46mSIE flang version 24.0.0git (https://github.com/llvm/llvm-project.git d814be1bb794baf0650158a6bd1dda23f4f86e99) [0m
# | [0;1;31mdag:4'0 { search range start (exclusive)
[0m# | [0;1;31m[0m[0;1;31mdag:4'1 error: no match found in search range
[0m# | [0;1;31m[0m[0;1;90m 2: [0m[1m[0;1;46mTarget: x86_64-scei-ps4 [0m
# | [0;1;90m 3: [0m[1m[0;1;46mThread model: posix [0m
# | [0;1;90m 4: [0m[1m[0;1;46mInstalledDir: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin [0m
# | [0;1;35mdag:4'2 ? possible intended match
[0m# | [0;1;35m[0m[0;1;90m 5: [0m[1m[0;1;46mBuild config: +assertions [0m
# | [0;1;90m 6: [0m[1m[0;1;46mclang: warning: argument unused during compilation: '--rtlib=compiler-rt' [-Wunused-command-line-argument] [0m
# | [0;1;90m 7: [0m[1m[0;1;46m "flang" "-fc1" "-triple" "x86_64-scei-ps4" "-emit-obj" "-mrelocation-model" "pic" "-pic-level" "2" "-target-cpu" "btver2" "-ffunction-sections" "-fdata-sections" "-resource-dir" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/../lib/clang" "-mframe-pointer=non-leaf-no-reserve" "-o" "/tmp/lit-tmp-7ui0y34a/runtimes-119725.o" "-x" "f95" "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/flang/runtimes.f90" [0m
# | [0;1;90m 8: [0m[1m[0;1;46m "orbis-ld" "--sysroot=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/../../" "-o" "a.out" "--lto=full" "/tmp/lit-tmp-7ui0y34a/runtimes-119725.o" [0m
# | [0;1;31mdag:4'3 } search range end (exclusive)
[0m# | [0;1;31m[0m>>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
********************
```
</details>
https://github.com/llvm/llvm-project/pull/207658
More information about the cfe-commits
mailing list