I am working on some fortran code that links to c++, and have run into an issue where make doesn’t like the generated object file. There is something weird going on either in the preprocessing or something weird with my machine. What
is weird is that people with the same OS, compiler etc don’t have this issue and it builds without a problem inside of docker on this machine. I also have compiled some fortran examples that have hardcoded gfortran calls and works fine. I tested this with
a different fotran project (json fortran library) and the cmake gave the same error.
I tried with cmake latest release and the same problem occurs. Can someone point me in a better direction here. Compiling on ubuntu 18.04, gcc-7, gfortran.
Errors look something like:
f951: Fatal Error: Reading module ‘class_patch’ at line 1368 column 66: Unexpected EOF
src/core/CMakeFiles/core.dir/build.make:470: recipe for target 'src/core/CMakeFiles/core.dir/class-vars/class_geom_printer.f90.o' failed