Compile problem in Module.mk

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
xlchenHK
Posts: 1
Joined: Wed Feb 28, 2024 6:37 pm
Location: The Hong Kong University of Science and Technology

Compile problem in Module.mk

#1 Unread post by xlchenHK »

Hi all,

I successfully compiled and ran ROMS last week (upwelling case), but fail to compile today without changing anything.
I got strange warning message from ROMS/Utility/Module.mk like:

Code: Select all

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
GNU Build script command:      build_roms.sh -j 2
ROMS source directory:         xxx/MyROMS_0325
ROMS header file:              xxx/upwelling.h
ROMS build  directory:         xxx/MyROMS_0325/Build_romsM
ROMS Application:              UPWELLING
fatal: Not a git repository (or any of the parent directories): .git
ROMS/Utility/Module.mk:15: warning: overriding commands for target `xxx/MyROMS_0325/Build_romsM/yaml_parser'
ROMS/Utility/Module.mk:15: warning: ignoring old commands for target `xxx/MyROMS_0325/Build_romsM/yaml_parser'
ROMS/Utility/Module.mk:15: warning: overriding commands for target `xxx/MyROMS_0325/Build_romsM/-'
ROMS/Utility/Module.mk:15: warning: ignoring old commands for target `xxx/MyROMS_0325/Build_romsM/-'
Fortran compiler:              ifort
Fortran flags:                 -fp-model precise -heap-arrays -ip -O3 -traceback -check uninit
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
And the compiler stopped at

Code: Select all

make: Circular xxx/MyROMS_0325/Build_romsM/yaml_parser <- xxx/MyROMS_0325/Build_romsM/yaml_parser dependency dropped.
/usr/bin/cpp -P -traditional-cpp -w           -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="xxx/MyROMS_0325"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="xxx/MyROMS_0325/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="xxx/MyROMS_0325"' -D'MY_ANALYTICAL="on"' -D'GIT_URL=""' -D'GIT_REV=""' -D'SVN_URL="https://www.myroms.org/svn/src/trunk"' -D'SVN_REV="1219"' -IROMS/Include -Ixxx/MyROMS_0325 -IROMS/Nonlinear -IROMS/Nonlinear/BBL -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -Ixxx/MyROMS_0325 -IMaster -ICompilers -D'HEADER_DIR="xxx/MyROMS_0325"'  ROMS/Utility/yaml_parser > xxx/MyROMS_0325/Build_romsM/yaml_parser
make: *** No rule to make target `-', needed by `xxx/MyROMS_0325/Build_romsM/-'.  Stop.
make: *** Waiting for unfinished jobs....
It seems the path `Build_romsM/-' was not assigned correctly. Does anyone have experience with this? Thanks.

Post Reply