[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: Windows-->
# :window: Windows x64 Test Results

* 138267 tests passed
* 3436 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
"C:\Python312\python.exe" C:\_work\llvm-project\llvm-project\flang\test\Semantics\OpenMP/../test_symbols.py C:\_work\llvm-project\llvm-project\flang\test\Semantics\OpenMP\detach-symbols.f90 c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fopenmp -fopenmp-version=50
# executed command: 'C:\Python312\python.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Semantics\OpenMP/../test_symbols.py' 'C:\_work\llvm-project\llvm-project\flang\test\Semantics\OpenMP\detach-symbols.f90' 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -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 "C:\_work\llvm-project\llvm-project\flang\test\Semantics\OpenMP/../test_symbols.py", line 44, in <module>
# |     diff3 = subprocess.check_output(
# |             ^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "c:\python312\Lib\subprocess.py", line 466, in check_output
# |     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
# |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "c:\python312\Lib\subprocess.py", line 571, in run
# |     raise CalledProcessError(retcode, process.args,
# | subprocess.CalledProcessError: Command '['c:\\_work\\llvm-project\\llvm-project\\build\\bin\\flang.exe', '-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