compilation problem

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
nageswararao

compilation problem

#1 Unread post by nageswararao »

Hi all,

After Kate suggestion I had tried to install the basic requirements for ROMS. I installed gfortran compiler, ifort compiler, netcdf-3.6.2. I tried to compile the code.
When I tried to compile the ROMS-3.0 code with gfortran I got the following error:
makefile:32: *** This makefile requires one of GNU make version 3.80 3.81.. Stop.
My desktop is RHEL-3.0 and tried first with single processor (serial mode).
I find that GNU make which I am having is 3.79.1.
What I have to do now?

Then I went for ROMS-2.2 with ifort. I got the following error:
ld: skipping incompatible /shared/nagesh/netcdf/lib/libnetcdf.a when searching for -lnetcdf
ld: cannot find -lnetcdf
gmake: *** [/shared/nagesh/ROMS-2.2/Ocean_S] Error 1
I think I didnt give the correct options in Linux-ifort.mk. I had given only the netcdf paths in that file. I didnt change anything else.

I giving here the info about my O.S.:
AMD opteron 64-bit processor RHEL-3.0

I tried to search the previous posts but I couldnt understand what to do.
Any help is appreciated.

Thanks in advance.

With best regards,
G.NageswaraRao.

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

#2 Unread post by kate »

You really do need a very modern version of gmake. 3.80 works for me on some systems, not on others. It would be best if you just downloaded 3.81.

For the other, you need to compile the netcdf library with the same compiler as you are using to compile ROMS. Yes, this means you need to keep separate libraries (and module files) for each compiler.

Post Reply