I tried compile fvcom model with ifort. I have makefile and make_inc file. but when I type make in the source this error happen
icc: warning #10145: no action performed for file
in the end this error also happen
/opt/intel/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64_lin/for_main.o: In function `main':
for_main.c:(.text+0x2a): undefined reference to `MAIN__'
makefile:128: recipe for target 'fvcom' failed
make: *** [fvcom] Error 1
The whole error I attached in the log file. I don't know what should I do to fix the error
Your preprocessing of the files with icc didn't work properly. Look at the messages for every file:
icc: warning #10145: no action performed for file 'mod_enkf_ncd.F'
etc. Then the ifort Fortran compiler warns you that the input stream is empty. So all files are empty, and hence the compiler misses a program <name> ... end program <name> statement, and so throws a 'missing main' error.
You should use the Fortran preprocessor at your .F90 files, look e.g. here: