Changes between Initial Version and Version 1 of Ticket #65843, comment 7


Ignore:
Timestamp:
Sep 16, 2022, 10:15:47 AM (20 months ago)
Author:
barracuda156
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #65843, comment 7

    initial v1  
    77
    88I am not on my laptop now, but a fix will be changing the extension either pre-patch or post-patch.
     9
     10UPD. So here is why it should be changed to `.F90`:
     11
     12{{{
     13First 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}}}
     15https://stackoverflow.com/questions/31649691/stringify-macro-with-gnu-gfortran
     16
     17However `file rename` fails on non-case-sensitive MacOS:
     18{{{
     19Error: 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}}}
     21https://github.com/macports/macports-ports/pull/16075#issuecomment-1249183960
     22
     23How to solve this?