[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------------
# | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/flang/runtimes.f90:4:14: error: CHECK-DAG: expected string not found in input
# | ! CHECK-DAG: clang_rt.{{[^ "]}}
# |              ^
# | <stdin>:1:1: note: scanning from here
# | SIE flang version 24.0.0git (https://github.com/llvm/llvm-project.git d814be1bb794baf0650158a6bd1dda23f4f86e99)
# | ^
# | <stdin>:4:49: note: possible intended match here
# | InstalledDir: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin
# |                                                 ^
# | 
# | 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:
# | <<<<<<
# |          1: SIE flang version 24.0.0git (https://github.com/llvm/llvm-project.git d814be1bb794baf0650158a6bd1dda23f4f86e99) 
# | dag:4'0    {                                                                                                                  search range start (exclusive)
# | dag:4'1                                                                                                                       error: no match found in search range
# |          2: Target: x86_64-scei-ps4 
# |          3: Thread model: posix 
# |          4: InstalledDir: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin 
# | dag:4'2                                                     ?                                        possible intended match
# |          5: Build config: +assertions 
# |          6: clang: warning: argument unused during compilation: '--rtlib=compiler-rt' [-Wunused-command-line-argument] 
# |          7:  "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" 
# |          8:  "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" 
# | dag:4'3                                                                                                                                                                                 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************


```

</details>

https://github.com/llvm/llvm-project/pull/207658


More information about the cfe-commits mailing list