Modules missing when compiling the "makefile" file

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
drivas
Posts: 33
Joined: Tue Aug 28, 2007 8:31 pm
Location: CICESE

Modules missing when compiling the "makefile" file

#1 Unread post by drivas »

I downloaded the source code almost one month ago. After modifying the "makefile" file, when I type "make" I get the message:

PGF90-F-0004-Unable to open MODULE file mod_param.mod (bc_2d.f90: 635)

When I look for the ".mod" files, these are not generated. I would like to know what I have to modify in order to get those files generated.
Thanks.

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

#2 Unread post by kate »

Is that the first error message you got? It should build the .mod files and put them in the Build directory, but it will only know to compile things in the right order if sfmakedepend runs successfully and generates the MakeDepend file. Do you have Perl installed? How new is it?

drivas
Posts: 33
Joined: Tue Aug 28, 2007 8:31 pm
Location: CICESE

More about Modules missing when compiling the "makefile

#3 Unread post by drivas »

Yes, I get the error message:

PGF90-F-0004-Unable to open MODULE file mod_param.mod (bc_2d.f90: 635)

When I type "make" it apparently works well but shortly after I receive the error message mentioned above. The "Makedepend" file is apparently built without any problems, but the ".mod" files are not built.
I have no idea what "Perl" is.I'm doing this procedure un a Linux server; I use the "Linux-pgi.mk" compiler.
Do you have any idea about my problem?
Thank you very much.

DAVID

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

#4 Unread post by kate »

Do you have a file MakeDepend in your Build directory? How big is it?

Code: Select all

mg56 34% wc Build/MakeDepend
 1609  5428 86104 Build/MakeDepend
It should contain lines looking like:

Code: Select all

Build/master.o: ocean.h air_ocean.h waves_ocean.h cppdefs.h globaldefs.h nep5.h
Build/master.f90: ocean.h air_ocean.h waves_ocean.h cppdefs.h globaldefs.h
Build/master.f90: nep5.h
Build/master.o: Build/mod_iounits.o Build/mod_parallel.o Build/mod_param.o
Build/master.o: Build/mod_scalars.o Build/ocean_control.o Build/master.f90
These tell make what order to compile the files. I suspect this is not right for you since your build is trying to happen in the wrong order. The script to build this file is written in the Perl programming language:

Code: Select all

mg56 35% which perl
/usr/bin/perl
mg56 36% perl -v

This is perl, v5.8.3 built for x86_64-linux-thread-multi

Copyright 1987-2003, Larry Wall
P.S. this thread should get moved to the FAQ.

Post Reply