svnversion of "make"

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
dputrasahan
Posts: 12
Joined: Mon May 15, 2006 1:18 pm
Location: Scripps Institution of Oceanography

svnversion of "make"

#1 Unread post by dputrasahan »

Hi all!

I tried using "make" for ROMS 2.2 and it worked perfectly well. However, when I used "make" for ROMS 3.0, it gave me this error.

make: svnversion: Command not found

I have made sure that "make" version 3.81 was used, but somehow, ROMS 3.0 doesn't recognize the "make" command. Could anyone advise me as to where I can go to get the "make" command to work on ROMS 3.0 please? Thank you so much.

Cheers,
Dian

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

#2 Unread post by m.hadfield »

make: svnversion: Command not found
I don't think this is your problem (if indeed you have a problem).

The above warning is issued by make on systems that don't have svn installed. It should be non-fatal, i.e. make should continue processing the make file normally.

So, what happens next?

FengZhou
Posts: 52
Joined: Wed Apr 07, 2004 10:48 pm
Location: 2nd Institute of Oceanography,SOA

#3 Unread post by FengZhou »

Hi,

I have the same issue too.

I've just ask our administrator to install make3.81 version. After 'make', it gives as follows :

[zhoufeng@oceanfe Ocean]$ make
: No such file or directory
makefile:230: INCLUDING FILE Compilers/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
make: svnversion: Command not found
./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=Build -DROMS_HEADER="upwelling.h" -I ROMS/Include -I ROMS/Nonlinear -I
..................
Master/ocean_control.F Master/ocean_coupler.F Master/propagator.F > Build/MakeDepend
: No such file or directory
make: *** No rule to make target `Build/MakeDepend', needed by `all'. Stop.


Can you tell me whats the problem?

Thanks in advance!

ZHOU

zhang
Posts: 27
Joined: Fri Mar 11, 2005 9:17 pm
Location: Woods Hole Oceanographic Institution

#4 Unread post by zhang »

You need to install svn on the machine you are compiling on. Type 'which svnversion' to see whether you have it installed.
Check the 'makefile' file, there is a line like:

SVNREV ?= $(shell svnversion -n .)

This tells the system which version of the code you are working on, and the version number will be shown in the log file. This is very useful when you are working on different versions of the code.

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

#5 Unread post by m.hadfield »

This message is a non-fatal warning
make: svnversion: Command not found
Installing svn will provide a working svnversion command, thereby eliminating the message, but will not fix FengZhou's problem.

Sorry, FengZhou, I don't have much advice to offer about the problem you reported. You are using up-to-date versions of all the ROMS files, I presume?

zhang
Posts: 27
Joined: Fri Mar 11, 2005 9:17 pm
Location: Woods Hole Oceanographic Institution

#6 Unread post by zhang »

Hey, Zhou Feng,

Check your permission under the directory you are compiling. Maybe you don't have the permission to create the scratch directory (./Build/). But I am not sure.

sscruise
Posts: 9
Joined: Tue Apr 04, 2006 6:36 pm
Location: LREIS

#7 Unread post by sscruise »

Maybe need to run "make clean".

Post Reply