[Mlir-commits] [flang] [llvm] [mlir] [Flang][OpenMP] Fix Flang crash and incorrect ordering with OpenMP detached task (PR #194840)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Apr 30 08:49:52 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 173486 tests passed
* 3278 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Flang
<details>
<summary>Flang.Semantics/OpenMP/detach-symbols.f90</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
"/usr/bin/python3" /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/../test_symbols.py /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/detach-symbols.f90 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fopenmp -fopenmp-version=50
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/../test_symbols.py /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/detach-symbols.f90 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -fopenmp -fopenmp-version=50
# .---command stderr------------
# | warning: OpenMP support for version 50 in flang is still incomplete
# | error: Semantic errors in -
# | <stdin>:5:10: error: Cannot parse module file for module 'omp_lib': Source file 'omp_lib.mod' was not found
# |     use :: omp_lib, only: omp_event_handle_kind
# |            ^^^^^^^
# | <stdin>:8:16: error: Must be a constant value
# |     integer(kind=omp_event_handle_kind) ev
# |                  ^^^^^^^^^^^^^^^^^^^^^
# | Traceback (most recent call last):
# |   File "/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/OpenMP/../test_symbols.py", line 44, in <module>
# |     diff3 = subprocess.check_output(
# |             ^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "/usr/lib/python3.12/subprocess.py", line 466, in check_output
# |     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
# |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "/usr/lib/python3.12/subprocess.py", line 571, in run
# |     raise CalledProcessError(retcode, process.args,
# | subprocess.CalledProcessError: Command '['/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang', '-fc1', '-fopenmp', '-fopenmp-version=50', '-fdebug-unparse-with-symbols']' returned non-zero exit status 1.
# `-----------------------------
# 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/194840


More information about the Mlir-commits mailing list