Error while compiling with gfortran COAWST

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
User avatar
lfelipem
Posts: 5
Joined: Thu Aug 15, 2013 1:54 pm
Location: Federal University of Bahia
Contact:

Error while compiling with gfortran COAWST

#1 Unread post by lfelipem »

I'm compiling with gfortran COAWST model and the following error occurs :

/ usr/lib64/mpi/gcc/openmpi/bin/mpif90 - frepack - arrays - O3 - ffast -math -I/home/lfelipem/COAWST/Lib/MCT/include -I/home/lfelipem/COAWST/Lib/MCT / include . / Build / esmf_roms.o . / Build / get_sparse_matrix.o . / Build / master.o . / Build / mct_coupler_params.o . / Build / mct_coupler_utils.o . / Build / mod_coupler_iounits.o . / Build / mod_coupler_kinds . the . / Build / ocean_control.o . / Build / ocean_coupler.o . / Build / propagator.o . / Build / read_couplepar.o . / Build / roms_export.o . / Build / roms_import.o it coawstM . / Build / libNLM.a . / Build / libNLM_bio.a . / Build / libNLM_sed.a . / Build / libNLM_wec.a . / Build / libANA.a . / Build / libUTIL.a . / Build / libMODS.a . / Build / libSWAN . -L/usr/lib - to - lnetcdff lnetcdf -L/home/lfelipem/COAWST/Lib/MCT/lib - LMCT - lmpeu -L/home/lfelipem/COAWST/Lib/MCT/lib - LMCT - lmpeu WRF / main / module_wrf_top.o WRF / main / libwrflib.a WRF/external/fftpack/fftpack5/libfftpack.a WRF/external/io_grib1/libio_grib1.a WRF / external / io_grib_share / libio_grib_share.a WRF / external / io_int / libwrfio_int.a WRF/external/esmf_time_f90/libesmf_time.a WRF / external / RSL_LITE / librsl_lite.a WRF / frame / module_internal_header_util.o WRF / frame / pack_utils.o WRF / external / io_netcdf / libwrfio_nf.a
. / Build / master.o : In function ` main__ ' :
master.f90 : ( . text +0 X4C1 ) : undefined reference to ` module_wrf_top_wrf_init_ '
master.f90 : ( . text +0 x4c8 ) : undefined reference to ` module_wrf_top_wrf_run_ '
master.f90 : ( . text +0 x4cf ) : undefined reference to ` module_wrf_top_wrf_finalize_ '
collect2 : ld returned 1 exit status
make: *** [ coawstM ] Error 1

Can anyone tell me why this problem?

Someone already got the same error ?

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Error while compiling with gfortran COAWST

#2 Unread post by jcwarner »

yes i have a correction for this. i will send you an email about it.
It has to deal with the way the module names and subroutines are put together.
-john

perezdbea
Posts: 3
Joined: Tue Apr 03, 2012 1:38 pm
Location: IH Cantabria

Re: Error while compiling with gfortran COAWST

#3 Unread post by perezdbea »

I'm compiling with gfortran COAWST model and the following error occurs :

cd /home/beatriz/SOFTWARE/COAWST/V3.1_082014/Build; /usr/bin/mpif90 -c -frepack-arrays -O3 -ffast-math -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -I/usr/local/include -I/usr/include -I../WRF/main -I../WRF/external/esmf_time_f90 -I../WRF/frame -I../WRF/share mct_coupler_params.f90
mct_coupler_params.f90:2.32:

USE mct_wrf_coupler_params
1
Fatal Error: Can't open module file 'mct_wrf_coupler_params.mod' for reading at (1): No such file or directory


Can anyone tell me why this problem, is depend on the compiler? (i read that is better to compile mct library with intel or pgi compilers..)

Thank

Post Reply