I am quite new in the community. I am trying to compile ROMS. So, when I type make, it gives me the following error
Code: Select all
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math mod_netcdf.f90
Fatal Error: While reading module 'netcdf' found module version 0, expected 9.
ROMS/Modules/Module.mk:15: recipe for target 'Build/mod_netcdf.o' failed
make: *** [Build/mod_netcdf.o] Error 1
Code: Select all
~/src$ make
cp -f /usr/include/netcdf.mod Build
cp -f /usr/include/typesizes.mod Build
cp -p /home/al/make_macros.mk Build
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Utility/obs_depth.F > Build/obs_depth.f90
ROMS/Bin/cpp_clean Build/obs_depth.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_fourdvar.F > Build/mod_fourdvar.f90
ROMS/Bin/cpp_clean Build/mod_fourdvar.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_iounits.F > Build/mod_iounits.f90
ROMS/Bin/cpp_clean Build/mod_iounits.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_param.F > Build/mod_param.f90
ROMS/Bin/cpp_clean Build/mod_param.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_kinds.F > Build/mod_kinds.f90
ROMS/Bin/cpp_clean Build/mod_kinds.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math mod_kinds.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math mod_param.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math mod_iounits.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_ncparam.F > Build/mod_ncparam.f90
ROMS/Modules/mod_ncparam.F:1165:0: warning: extra tokens at end of #ifdef directive
#ifdef ECOSIM && defined DIAGNOSTICS_BIO
ROMS/Bin/cpp_clean Build/mod_ncparam.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_biology.F > Build/mod_biology.f90
ROMS/Bin/cpp_clean Build/mod_biology.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_scalars.F > Build/mod_scalars.f90
ROMS/Bin/cpp_clean Build/mod_scalars.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math -ffree-form -ffree-line-length-huge mod_scalars.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math -ffree-form -ffree-line-length-huge mod_biology.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_parallel.F > Build/mod_parallel.f90
ROMS/Bin/cpp_clean Build/mod_parallel.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' -DMY_OS='"Linux"' -DMY_CPU='"x86_64"' -DMY_FORT='"g95"' -DMY_FC='"/usr/bin/g95"' -DMY_FFLAGS='"-fno-second-underscore -O3 -ffast-math -ffree-form -ffree-line-length-huge -ffree-form -ffree-line-length-huge"' ROMS/Modules/mod_strings.F > Build/mod_strings.f90
ROMS/Bin/cpp_clean Build/mod_strings.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math -ffree-form -ffree-line-length-huge -ffree-form -ffree-line-length-huge mod_strings.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math -ffree-form -ffree-line-length-huge mod_parallel.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_sediment.F > Build/mod_sediment.f90
ROMS/Bin/cpp_clean Build/mod_sediment.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math -ffree-form -ffree-line-length-huge mod_sediment.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math -ffree-form -ffree-line-length-huge mod_ncparam.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Modules/mod_netcdf.F > Build/mod_netcdf.f90
ROMS/Bin/cpp_clean Build/mod_netcdf.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Utility/dateclock.F > Build/dateclock.f90
ROMS/Bin/cpp_clean Build/dateclock.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Utility/round.F > Build/round.f90
ROMS/Bin/cpp_clean Build/round.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math round.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math dateclock.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Utility/distribute.F > Build/distribute.f90
ROMS/Bin/cpp_clean Build/distribute.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math distribute.f90
/usr/bin/cpp -P -traditional -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/src/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/al/src/ROMS/Include"' ROMS/Utility/strings.F > Build/strings.f90
ROMS/Bin/cpp_clean Build/strings.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math strings.f90
cd Build; /usr/bin/g95 -c -fno-second-underscore -O3 -ffast-math mod_netcdf.f90
Fatal Error: While reading module 'netcdf' found module version 0, expected 9.
ROMS/Modules/Module.mk:15: recipe for target 'Build/mod_netcdf.o' failed
make: *** [Build/mod_netcdf.o] Error 1
Code: Select all
~/Projects/upwelling$ ./build_roms.bash
rm -f -r core *.ipo /home/al/Projects/upwelling/Build_romsG /home/al/make_macros.mk
cp -f /usr/include/netcdf.mod /home/al/Projects/upwelling/Build_romsG
cp -f /usr/include/typesizes.mod /home/al/Projects/upwelling/Build_romsG
cp -p /home/al/make_macros.mk /home/al/Projects/upwelling/Build_romsG
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/al/Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -I/home/al/Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/al/Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/al/Projects/upwelling"' ROMS/Utility/obs_depth.F > /home/al/Projects/upwelling/Build_romsG/obs_depth.f90
ROMS/Bin/cpp_clean /home/al/Projects/upwelling/Build_romsG/obs_depth.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/al/Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -I/home/al/Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/al/Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/al/Projects/upwelling"' ROMS/Modules/mod_fourdvar.F > /home/al/Projects/upwelling/Build_romsG/mod_fourdvar.f90
ROMS/Bin/cpp_clean /home/al/Projects/upwelling/Build_romsG/mod_fourdvar.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/al/Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -I/home/al/Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/al/Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/al/Projects/upwelling"' ROMS/Modules/mod_iounits.F > /home/al/Projects/upwelling/Build_romsG/mod_iounits.f90
ROMS/Bin/cpp_clean /home/al/Projects/upwelling/Build_romsG/mod_iounits.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/al/Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -I/home/al/Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/al/Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/al/Projects/upwelling"' ROMS/Modules/mod_param.F > /home/al/Projects/upwelling/Build_romsG/mod_param.f90
ROMS/Bin/cpp_clean /home/al/Projects/upwelling/Build_romsG/mod_param.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DG95 -D'ROOT_DIR="/home/al/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/al/Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/al/Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="969"' -IROMS/Include -I/home/al/Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/al/Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/al/Projects/upwelling"' ROMS/Modules/mod_kinds.F > /home/al/Projects/upwelling/Build_romsG/mod_kinds.f90
ROMS/Bin/cpp_clean /home/al/Projects/upwelling/Build_romsG/mod_kinds.f90
cd /home/al/Projects/upwelling/Build_romsG; -c -fno-second-underscore -g -fbounds-check -ftrace=full mod_kinds.f90
/bin/sh: 1: -c: not found
ROMS/Modules/Module.mk:15: recipe for target '/home/al/Projects/upwelling/Build_romsG/mod_kinds.o' failed
make: *** [/home/al/Projects/upwelling/Build_romsG/mod_kinds.o] Error 127