Skip to content

[Flang][OpenMP][Application=MUMPS] Compilation failed with "operation with block successors must terminate its parent block" #72792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
k-arrows opened this issue Nov 19, 2023 · 4 comments

Comments

@k-arrows
Copy link

When building MUMPS(https://mumps-solver.org/index.php), Flang-new resulted in compilation error such as:

error: loc("/tmp/MUMPS_5.6.2/src/dsol_omp_m.F":163:7): operation with block successors must terminate its parent block
error: loc("/tmp/MUMPS_5.6.2/src/dsol_omp_m.F":414:7): operation with block successors must terminate its parent block
error: verification of lowering to FIR failed

Steps to reproduce:

$ wget http://graal.ens-lyon.fr/MUMPS/MUMPS_5.6.2.tar.gz
$ tar zxf MUMPS_5.6.2.tar.gz
$ cd MUMPS_5.6.2/src
$ flang-new -c dmumps_struc_def.F -I ../include/
$ flang-new -c -fopenmp dsol_omp_m.F
@github-actions github-actions bot added the flang Flang issues not falling into any other category label Nov 19, 2023
@EugeneZelenko EugeneZelenko added openmp flang:ir and removed flang Flang issues not falling into any other category labels Nov 19, 2023
@llvmbot
Copy link
Member

llvmbot commented Nov 19, 2023

@llvm/issue-subscribers-openmp

Author: None (k-arrows)

When building MUMPS(https://mumps-solver.org/index.php), Flang-new resulted in compilation error such as:
error: loc("/tmp/MUMPS_5.6.2/src/dsol_omp_m.F":163:7): operation with block successors must terminate its parent block
error: loc("/tmp/MUMPS_5.6.2/src/dsol_omp_m.F":414:7): operation with block successors must terminate its parent block
error: verification of lowering to FIR failed

Steps to reproduce:

$ wget http://graal.ens-lyon.fr/MUMPS/MUMPS_5.6.2.tar.gz
$ tar zxf MUMPS_5.6.2.tar.gz
$ cd MUMPS_5.6.2/src
$ flang-new -c dmumps_struc_def.F -I ../include/
$ flang-new -c -fopenmp dsol_omp_m.F

@llvmbot
Copy link
Member

llvmbot commented Nov 19, 2023

@llvm/issue-subscribers-flang-ir

Author: None (k-arrows)

When building MUMPS(https://mumps-solver.org/index.php), Flang-new resulted in compilation error such as:
error: loc("/tmp/MUMPS_5.6.2/src/dsol_omp_m.F":163:7): operation with block successors must terminate its parent block
error: loc("/tmp/MUMPS_5.6.2/src/dsol_omp_m.F":414:7): operation with block successors must terminate its parent block
error: verification of lowering to FIR failed

Steps to reproduce:

$ wget http://graal.ens-lyon.fr/MUMPS/MUMPS_5.6.2.tar.gz
$ tar zxf MUMPS_5.6.2.tar.gz
$ cd MUMPS_5.6.2/src
$ flang-new -c dmumps_struc_def.F -I ../include/
$ flang-new -c -fopenmp dsol_omp_m.F

@kiranchandramohan
Copy link
Contributor

We are reviewing reductions. The fix for reductions will hopefully fix this issue as well.

@k-arrows
Copy link
Author

The compilation error no longer occurs. I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants