[MITgcm-support] Re: No Subject
Ed Hill
ed at eh3.com
Tue May 4 15:23:37 EDT 2004
On Tue, 2004-05-04 at 14:43, prosperi at wicc.weizmann.ac.il wrote:
> Hi Ed,
> i will answer you briefly:
Hi Davide,
> 1) cpp works on my computer but seems that it's no activate by optfile and
> genmake and no .f file is generated after the genmake2, make depend and
> make command
> 2) I have gmake installed
OK, this is the problem! If you have a working CPP (a C pre-processor)
installed and if you are correctly specifying it within the "optfile"
for genmake2, then after running the three following commands:
cd build
../../../genmake2 -mods=../code -of=path/to/your/optfile
make depend
you should have a directory full of soft-links (each with "*.F" names).
Then running:
make
should, for each "*.F" file:
1) produce a corresponding "*.f" file using CPP, and
2) then compile that "*.f" file using your Fortran compiler
It seems that your setup is skipping #1 above and that is most likely
due to a problem with the makefile or with your version of "make". What
version of make are you using? What does "man make" tell you?
> 3) Should I do some changes in the genmake like
> gmake instead of make in order to fix the problem?
Yes! It looks like you have a "make" problem. Please install Gnu make:
http://www.gnu.org/software/make/make.html
on your system and try again. I think your "make" program is not happy
with our Makefile and, without more information, I don't know how to fix
it. Basically, your make program its skipping the
.F -> .f -> .o
chain of rules and instead trying to do a direct .F -> .o compile which
then results in a lot of errors since you need to have things run
through CPP first.
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20040504/52b7b2aa/attachment.sig>
More information about the MITgcm-support
mailing list