I am trying to compile the upwelling test case with Cygwin and am coming across an error I have not seen before.
ROMS from a checkout from 2 months ago:
Works fine. I get the expected oceanS file after compilation:$ svn info
Path: .
Working Copy Root Path: /home/survstu1/ROMS/trunk
URL: https://www.myroms.org/svn/src/trunk
Relative URL: ^/trunk
Repository Root: https://www.myroms.org/svn/src
Repository UUID: f091316a-d328-0410-a40a-876eff57d070
Revision: 912
Node Kind: directory
Schedule: normal
Last Changed Author: arango
Last Changed Rev: 912
Last Changed Date: 2018-06-29 13:34:01 +1200 (Fri, 29 Jun 2018)
A new checkout:$ ./build.bash
rm -f -r core *.ipo /home/survstu1/ROMS/Projects/Upwelling/Build /home/survstu1/make_macros.mk
cp -f /usr/include/netcdf.mod /home/survstu1/ROMS/Projects/Upwelling/Build
cp -f /usr/include/typesizes.mod /home/survstu1/ROMS/Projects/Upwelling/Build
cp -p /home/survstu1/make_macros.mk /home/survstu1/ROMS/Projects/Upwelling/Build
/usr/bin/cpp -P -traditional -DCYGWIN -DX86_64 -DGFORTRAN -D'ROOT_DIR="/home/survstu1/ROMS/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/survstu1/ROMS/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/survstu1/ROMS/Projects/Up welling"
ETC ...
the build attempt gives the following:$ svn info
Path: .
Working Copy Root Path: /home/survstu1/ROMS/trunk
URL: https://www.myroms.org/svn/src/trunk
Relative URL: ^/trunk
Repository Root: https://www.myroms.org/svn/src
Repository UUID: f091316a-d328-0410-a40a-876eff57d070
Revision: 920
Node Kind: directory
Schedule: normal
Last Changed Author: arango
Last Changed Rev: 920
Last Changed Date: 2018-08-25 04:20:22 +1200 (Sat, 25 Aug 2018)
I notice the build directory is now called Build_roms, and I could not decipher the cpp_clean file.$ ./build.bash
rm -f -r core *.ipo /home/survstu1/ROMS/trunk/Projects/Upwelling/Build_roms /home/survstu1/make_macros.mk
Can't open tmp file at ROMS/Bin/cpp_clean line 29.
cp -f /usr/include/netcdf.mod /home/survstu1/ROMS/trunk/Projects/Upwelling/Build_roms
cp -f /usr/include/typesizes.mod /home/survstu1/ROMS/trunk/Projects/Upwelling/Build_roms
cp -p /home/survstu1/make_macros.mk /home/survstu1/ROMS/trunk/Projects/Upwelling/Build_roms
Can't open tmp file at ROMS/Bin/cpp_clean line 29.
/usr/bin/cpp -P -traditional -DCYGWIN -DX86_64 -DGFORTRAN -D'ROOT_DIR="/home/survstu1/ROMS/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/survstu1/ROMS/trunk/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/survstu1/ROMS/trunk/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="920"' -IROMS/Include -I/home/survstu1/ROMS/trunk/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/survstu1/ROMS/trunk/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/survstu1/ROMS/trunk/Projects/Upwelling"' ROMS/Utility/def_diags.F > /home/survstu1/ROMS/trunk/Projects/Upwelling/Build_roms/def_diags.f90
ROMS/Bin/cpp_clean /home/survstu1/ROMS/trunk/Projects/Upwelling/Build_roms/def_diags.f90
Can't open tmp file at ROMS/Bin/cpp_clean line 29.
make: *** [ROMS/Utility/Module.mk:16: /home/survstu1/ROMS/trunk/Projects/Upwelling/Build_roms/def_diags.f90] Error 2
Perhaps I am missing something with the new code? Any help is much appreciated.
Regards,
Ata Suanda