Error during compilation of build file

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
SivaHeramb
Posts: 5
Joined: Mon Aug 05, 2019 1:39 pm
Location: Indian Institute of Technology Delhi

Error during compilation of build file

#1 Unread post by SivaHeramb »

I have downloaded the software trunk and trying to build the bash script. I have made the following changes in build_roms.bash:
(1)export USE_NETCDF4=on
(2)export NF_CONFIG=/usr/bin/nf-config
(3)export NETCDF_INCDIR=/usr/include
(4)export FC=gfortran

and also added netcdf.mod and typesizes.mod in /opt/gfortransoft/serial/netcdf3/include to avoid previous errors I got.
And then, when I tried to 'make' I got the following error:

svn: warning: W155010: The node '/home/siva/ocean/repository/trunk' was not found.

svn: E200009: Could not display info for all targets because some targets don't exist
svn: warning: W155010: The node '/home/siva/ocean/repository/trunk' was not found.

svn: E200009: Could not display info for all targets because some targets don't exist
cd Build; /usr/bin/gfortran -c -frepack-arrays -O3 -ffast-math u2dbc_im.f90
u2dbc_im.f90:171:23:

IF (FIRST_2D_STEP) THEN
1
Error: Symbol ‘first_2d_step’ at (1) has no IMPLICIT type
ROMS/Nonlinear/Module.mk:15: recipe for target 'Build/u2dbc_im.o' failed
make: *** [Build/u2dbc_im.o] Error 1


I am a beginner of this software and also to linux. Did I miss to do something else? Can somebody help me to move forward?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Error during compilation of build file

#2 Unread post by kate »

I think you should have:

Code: Select all

NETCEDF_INCDIR=/opt/gfortransoft/serial/netcdf3/include
if that's where the netcdf.mod and friends live.

The FIRST_2D_STEP is a cpp macro defined in globaldefs.h, not a regular Fortran variable. If the compile goes correctly, the compiler should never see it. Step one is a "make depend" to create the dependency list (MakeDepend), then each file gets processed with:
  • 1. cpp
    2. cpp_clean
    3. compiler
I don't know what went wrong for you.

Post Reply