| 9 | |
| 10 | UPD. So here is why it should be changed to `.F90`: |
| 11 | |
| 12 | {{{ |
| 13 | First and simplest, the source file in which you attempt to employ it apparently has the extension .f90. What this extension signifies to gfortran (and to the GCC compiler driver, by any other name) is: Free form Fortran source code that should not be preprocessed. Similarly .f95, .f03 and .f08. If you want gfortran to infer that a source file contains free form Fortran code that must be preprocessed, give it one of the extensions .F90, .F95, .F03 or .F08. |
| 14 | }}} |
| 15 | https://stackoverflow.com/questions/31649691/stringify-macro-with-gnu-gfortran |
| 16 | |
| 17 | However `file rename` fails on non-case-sensitive MacOS: |
| 18 | {{{ |
| 19 | Error: Failed to patch OpenCoarrays: error renaming "/opt/local/var/macports/build/_opt_PPCRosettaPorts_science_OpenCoarrays/OpenCoarrays/work/OpenCoarrays-2.10.0/src/tests/integration/pde_solvers/coarrayHeatSimplified/main.f90" to "/opt/local/var/macports/build/_opt_PPCRosettaPorts_science_OpenCoarrays/OpenCoarrays/work/OpenCoarrays-2.10.0/src/tests/integration/pde_solvers/coarrayHeatSimplified/main.F90": file already exists |
| 20 | }}} |
| 21 | https://github.com/macports/macports-ports/pull/16075#issuecomment-1249183960 |
| 22 | |
| 23 | How to solve this? |