error while Compile ROMS using Cygwin

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
yang
Posts: 56
Joined: Mon Sep 25, 2006 2:37 pm
Location: Institue of oceanology ,Chinese acedemy of scinece

error while Compile ROMS using Cygwin

#1 Unread post by yang »

when i following "Tutorial: Installing ROMS in Windows XP / Vista (via Cygwin)" to compile ROMS, i get the following error:
cd /home/dd/roms/Projects/Upwelling/Build; g95 -c -fno-second-underscore
-O3 -ffast-math -ffree-form mod_netcdf.f90
Fatal Error: While reading module 'netcdf' found module version 0, expected 7.
make: *** [/home/dd/roms/Projects/Upwelling/Build/mod_netcdf.o] Error 1
Who can help me?

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

#2 Unread post by m.hadfield »

The format used by g95 for module files has changed several times. You have a version mismatch; the solution is to rebuild your netCDF library with the same g95 version as the one you are using to compile ROMS.

yang
Posts: 56
Joined: Mon Sep 25, 2006 2:37 pm
Location: Institue of oceanology ,Chinese acedemy of scinece

thanks

#3 Unread post by yang »

i have used the same version of g95 to complie the netcdf and ROMS,but i get two different results. When i complie in x86-32, i succeed and roms can be run. however,i get the same error ,when i complie the ROMS at x86-64(Business vista 64 bit)

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

#4 Unread post by m.hadfield »

Hmmm, sorry I don't think I (or anyone else on this forum) can help. I don't see why the CPU or OS should matter, as Cygwin is a 32-bit-only system. Your error message certainly suggests a compiler-version mismatch. I suggest you have a good look at your Cygwin & g95 configuration on the 64-bit system. Perhaps you should try a simpler Fortran 90 test application, in which a .mod file is generated and then used.

yang
Posts: 56
Joined: Mon Sep 25, 2006 2:37 pm
Location: Institue of oceanology ,Chinese acedemy of scinece

#5 Unread post by yang »

Thanks ,m.hadfield
Now, i am using OpenSUSE instead of Cygwin to run ROMS. and i succeed to run the Upwelling test case with OpenMP.

Post Reply