-
Notifications
You must be signed in to change notification settings - Fork 51
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
Compilation issues with recent gfortran versions (6.4.1 and 7.3.1) #57
Comments
Thanks for this. So I should also add more gcc compilers to the mix of the CI. What fun! I think the latest suggestion in the gcc bug report (just move the
We don't reference the generic entity in |
Yes it works with gfortran and pgi. Much simpler that I was afraid. |
Just writing to say that I experienced the same problems as above with gfortran (7.3.0), moved the functions |
Sorry for the delay! At least a partial fix to this is at libAtoms@1eef739 and/or ye-luo@e4d0479 Looks like the gfortran bug ended up getting fixed and the fix got back ported (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85138) but I don't see a problem with these fixes. I'll pull together a patch |
Some versions of gfortran ICE with the function in the body of the file. Defining it first seems to be fine and should be valid Fortran 2008. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85138 and #57
Some versions of gfortran ICE with the function in the body of the file. Defining it first seems to be fine and should be valid Fortran 2008. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85138 and #57 Do the actual move in the m4 and rebuild (we comit the resulting F90 files so users don't need an m4 implementation to build FoX). At the same time propogate a couple of changes from the F90 back into other m4 files so we don't loose those changes.
There is a bug introduced in recent versions of gfortran (6.4.1, 7.3.1 ). These versions raise an internal compiler error when compiling FoX.
I made a bug report to gcc ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85526 ).
As far as I understand the bug is related to the usage of the len interface to compute the dimensions of the results of character type of many pure functions used for example in fox_m_fsys_format.F90 or in
m_dom_dom.F90.
A workaround that seems to work is to move the routines involved in the len interface at the bottom of their modules, but as explained by a note in the code this clashes with an explicit fortran specification and the modified source is not accepted as valid by other compilers.
A more stable workaround could be to move the len interface to a new module and import the interface.
The text was updated successfully, but these errors were encountered: