For the past year or so I have been working with coupled ROMS-SWAN applications through on a HPC cluster running CentOS, where all the required c, fortran, netcdf, and mpi libraries were maintained and installed properly by an admin. My current work requires that I run my ROMS-SWAN models via Cygwin on Windows 10 that is running on a desktop. I am struggling to install the dependencies properly and successfully compile the Inlet_test test case -- which is why I am now writing to seek help.
The dependencies I installed via Cygwin setup.exe include: gcc-core and gcc-g++ 11.2.0-1, gfortran or gcc-fortran 11.2.0-1, make, git, svn, netcdf and netcdf-fortran 4.8.1-1 (and hdf5, zlib, curl), and openmpi 4.1.2-1. When I try to install the MCT it fails very quickly:
Code: Select all
samuel.rickerich@6ZZNNK3 ~/COAWST/Lib/MCT
$ ./configure --prefix=/home/$USER
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking Fortran 90 filename extension... .F90
checking whether we are using the GNU Fortran 90 compiler... yes
checking for mpxlf90_r... no
checking for mpxlf90... no
checking for mpxlf95... no
checking for mpif90... mpif90
checking for MPI_Init... no
checking for MPI_Init in -lmpi... no
checking for MPI_Init in -lmpich... no
checking how to get the version output from gfortran... --version
checking whether byte ordering is bigendian... no
checking whether fortran .mod file is uppercase... no
checking for Fortran 90 name-mangling scheme... unknown
configure: WARNING: UNKNOWN FORTRAN 90 NAME-MANGLING SCHEME
checking for cpp... cpp
checking if Fortran 90 compiler performs preprocessing... yes
checking if C preprocessor can work with Fortran compiler... yes
Hostname=6ZZNNK3
Machine=x86_64
OS=CYGWIN_NT-10.0
configure: WARNING: OPERATING SYSTEM UNKNOWN
Fortran Compiler is GNU
Output Variables: {CC=gcc} {ALLCFLAGS=-DFORTRAN_MANGLING_UNKNOWN -DSYSUNKNOWNOS -DCPRGNU -O} {FPP=cpp} {FPPFLAGS=-P -C -N -traditional} {FC=mpif90} {F90=gfortran} {FCFLAGS=} {F90FLAGS=} {MACHDEFS=-DSYSUNKNOWNOS -DCPRGNU} {OPT=} {REAL8=} {BIT64=} {ENDIAN=} {MPIF90=mpif90} {MPILIBS=} {MPIHEADER=} {INCLUDEFLAG=-I} {INCLUDEPATH=} {AR=ar cq} {BABELROOT=} {COMPILER_ROOT=} {PYTHON=} {PYTHONOPTS=} {FORT_SIZE=} {prefix=/home/samuel.rickerich}
configure: creating ./config.status
config.status: creating Makefile.conf
Please check the Makefile.conf
Have a nice day!
samuel.rickerich@6ZZNNK3 ~/COAWST/Lib/MCT
$ make
make[1]: Entering directory '/home/samuel.rickerich/COAWST/Lib/MCT/mpeu'
mpif90 -c -DSYSUNKNOWNOS -DCPRGNU m_mpif.F90
m_mpif.F90:60: Error: Can't open included file 'mpif.h'
make[1]: *** [Makefile:66: m_mpif.o] Error 1
make[1]: Leaving directory '/home/samuel.rickerich/COAWST/Lib/MCT/mpeu'
make: *** [Makefile:10: subdirs] Error 2
For example, I am unsure if netcdf was installed correctly by setup.exe, since 'nf-config --has-f90' returns nothing but 'nf-config --has-f03' returns 'yes'. The same is true for nc-config. Could this create problem? Or could it be something I overlooked, like setting necessary environment variables in my .bash_profile?
If anyone has experience installing and running COAWST with Cygwin on Windows 10, I would be very appreciative learn about your experience with installation and compilation. Thank you for your consideration.
Regards,
Sam