Errors like this:
cd Build; -c -O3 mod_kinds.f90
/bin/sh: -c: not found
The command:
FC := $(shell which ${FC})
in the Compilers/xxx-xxx.mk file has failed to find the compiler you specified, setting FC to the null string. You need to find out which compiler you were asking it to look for and to make sure it is in your path. If the flag USE_MPIF90 is set, it will be looking for "mpif90". What do you get from the command "which mpif90"? If you are trying for a serial run first, what does "which gfortran" give you?
#setenv FORT ifort
setenv FORT gfortran
#setenv FORT pgi
setenv USE_DEBUG on # use Fortran debugging flags
setenv USE_LARGE on # activate 64-bit compilation
#setenv USE_NETCDF4 on # compile with NetCDF-4 library
#setenv USE_PARALLEL_IO on # Parallel I/O with NetCDF-4/HDF5
#setenv USE_MY_LIBS on # use my library paths below
Is this helpful? what other file should I change to compile ROMS except ~/trunk/ROMS/Bin/build.sh?
Thanks for your reply.
kate wrote:From the FAQ:
Errors like this:
cd Build; -c -O3 mod_kinds.f90
/bin/sh: -c: not found
The command:
FC := $(shell which ${FC})
in the Compilers/xxx-xxx.mk file has failed to find the compiler you specified, setting FC to the null string. You need to find out which compiler you were asking it to look for and to make sure it is in your path. If the flag USE_MPIF90 is set, it will be looking for "mpif90". What do you get from the command "which mpif90"? If you are trying for a serial run first, what does "which gfortran" give you?