-
Notifications
You must be signed in to change notification settings - Fork 885
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
Can't compile Fortran application with -std=f2008 using mpi_f08 module #1323
Comments
@paulromano thanks for the report at first glance, there is no need for C/Fortran interoperability here (though it is simple and convenient). i ll try to find a solution for that. |
@ggouaillardet Looks like this is the fault of open-mpi/ompi-release#851 -- that PR introduced some BIND(C)'s to subroutines with LOGICAL parameters, which is not allowed. |
PR to fix this issue: #1327 |
@paulromano Just curious: is there a reason you have to use the |
@jsquyres No reason that I have to, per se. It's just part of the style guide for my code that any new additions should be F2008 compliant. When I get a pull request from someone with a change to the code, having -std=f2008 gives added assurance that no compiler-specific extensions have been used. |
@paulromano I realized I never ACKed your response -- oops! Ok, thanks for the info. I don't think Github sends mails for the related PRs and issues opened on this ticket, but we've split the solution into 2 parts: 1) fix the accidental LOGICAL pollution of BIND(C) stuff, and 2) re-implement the MPI default attribute handling callbacks in the referenced Github PRs. |
@jsquyres @ggouaillardet Thanks for the quick action on this issue; look forward to the next version! |
…ETE}}_FN Fixes open-mpi/ompi#1323 (back-ported from commit open-mpi/ompi@cda094a)
…ETE}}_FN Fixes open-mpi/ompi#1323 (back-ported from commit open-mpi/ompi@cda094a)
…ETE}}_FN Fixes open-mpi/ompi#1323 (back-ported from commit open-mpi/ompi@cda094a)
…ETE}}_FN Fixes open-mpi/ompi#1323 (cherry picked from commit cda094a)
…ETE}}_FN Fixes open-mpi/ompi#1323 (cherry picked from commit open-mpi/ompi@cda094a)
…ETE}}_FN Fixes open-mpi/ompi#1323 (back-ported from commit open-mpi/ompi@cda094a)
I have a Fortran application that uses MPI (via mpi_f08) and is normally compiled with
gfortran -std=f2008
. When trying to compile against OpenMPI 1.10.2, I get the following build errors:I should note that the errors still persist with -std=f2008ts as well. I'm on Ubuntu 15.10 with gfortran 5.2.1 which I used to build OpenMPI from source. Not sure if there is a solution for this given the problems with logicals and C interoperability...
The text was updated successfully, but these errors were encountered: