Hi everyone, I'm using Cygwin to compile ROMS following the instructions of this tutorial: viewtopic.php?t=830
After modifying the makefile and CYGWIN-g95.mk files as the tutorial shows, when I type "make" after "make check" in trunk directory, Cygwin shows me this error:
$ make
cp -f ~/software/netcdf-3.6.1/include/netcdf.mod Build_roms
cp -f ~/software/netcdf-3.6.1/include/typesizes.mod Build_roms
cp -p /home/Jorge/make_macros.mk Build_roms
/usr/bin/cpp -P -traditional -DCYGWIN -DX86_64 -DG95 -D'ROOT_DIR="/home/Jorge/software/ROMS/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="1053"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Include"' ROMS/Nonlinear/bbl.F > Build_roms/bbl.f90
ROMS/Bin/cpp_clean Build_roms/bbl.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DX86_64 -DG95 -D'ROOT_DIR="/home/Jorge/software/ROMS/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="1053"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Include"' ROMS/Nonlinear/bc_2d.F > Build_roms/bc_2d.f90
ROMS/Bin/cpp_clean Build_roms/bc_2d.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DX86_64 -DG95 -D'ROOT_DIR="/home/Jorge/software/ROMS/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="1053"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Include"' ROMS/Nonlinear/exchange_2d.F > Build_roms/exchange_2d.f90
ROMS/Bin/cpp_clean Build_roms/exchange_2d.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DX86_64 -DG95 -D'ROOT_DIR="/home/Jorge/software/ROMS/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="1053"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Include"' ROMS/Modules/mod_param.F > Build_roms/mod_param.f90
ROMS/Bin/cpp_clean Build_roms/mod_param.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DX86_64 -DG95 -D'ROOT_DIR="/home/Jorge/software/ROMS/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Functionals"' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="1053"' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/Jorge/software/ROMS/trunk/ROMS/Include"' ROMS/Modules/mod_kinds.F > Build_roms/mod_kinds.f90
ROMS/Bin/cpp_clean Build_roms/mod_kinds.f90
cd Build_roms; /usr/local/bin/g95 -c -fno-second-underscore -O3 -ffast-math mod_kinds.f90
make: *** [ROMS/Modules/Module.mk:15: Build_roms/mod_kinds.o] Error 127
I don't know what Cygwin is trying to say with this error. I don't know anything about the Fortran language, for that, I ask you for help to resolve it. Thank you.
Problem when I try to compile ROMS with "make" command
-
- Posts: 1
- Joined: Wed Feb 24, 2021 3:50 pm
- Location: University of Alicante
Re: Problem when I try to compile ROMS with "make" command
i am not sure about that tutorial, but to build roms you need to use one of the build scripts.
go here
https://www.myroms.org/wiki/Getting_Started
and read that page.
also make sure you see the section about
https://www.myroms.org/wiki/build_Script
that should help a bit.
go here
https://www.myroms.org/wiki/Getting_Started
and read that page.
also make sure you see the section about
https://www.myroms.org/wiki/build_Script
that should help a bit.