Got an Error when compiling coawst.bash

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
txu68
Posts: 27
Joined: Wed Nov 11, 2015 4:49 pm
Location: Georgia Institute of Technology

Got an Error when compiling coawst.bash

#1 Unread post by txu68 »

Hello,

Thank you in advance.

I am trying to compile coawst.bash using ifort and openmpi. This is the error I got

cd /nv/hnjord1/txu68/scratch/ONR/HF_22m_north_coupled/bin/Build; /usr/local/pacerepov1/openmpi/1.8/intel-15.0/bin/mpif90 -c -heap-arrays -fp-model precise -ip -O3 -assume byterecl -I/nv/hnjord1/txu68/data/COAWST_V33/Lib/MCT/bin/include ocean_coupler.f90
ocean_coupler.f90(18): error #7013: This module file was not generated by any release of this compiler. [M_MCTWORLD]
USE m_MCTWorld, ONLY : MCTWorld_init => init
----------^
ocean_coupler.f90(68): error #6457: This derived type name has not been declared. [GLOBALSEGMAP]
TYPE(GlobalSegMap) :: GSMapROMS ! GloabalSegMap variables
-------------^
ocean_coupler.f90(72): error #6457: This derived type name has not been declared. [ATTRVECT]
TYPE(AttrVect) :: wav2ocn_AV ! AttrVect variables
-------------^
ocean_coupler.f90(73): error #6457: This derived type name has not been declared. [ATTRVECT]
TYPE(AttrVect) :: ocn2wav_AV
-------------^
ocean_coupler.f90(77): error #6457: This derived type name has not been declared. [ROUTER]
TYPE(Router) :: ROMStoSWAN ! Router variables
-------------^
ocean_coupler.f90(18): error #6581: Unresolved rename. [MCTWORLD_INIT]
USE m_MCTWorld, ONLY : MCTWorld_init => init
-----------------------------^
ocean_coupler.f90(19): error #6581: Unresolved rename. [MCTWORLD_CLEAN]
USE m_MCTWorld, ONLY : MCTWorld_clean => clean
-----------------------------^
ocean_coupler.f90(23): error #6580: Name in only-list does not exist. [GLOBALSEGMAP]
USE m_GlobalSegMap, ONLY : GlobalSegMap
---------------------------------^
ocean_coupler.f90(24): error #6581: Unresolved rename. [GLOBALSEGMAP_INIT]
USE m_GlobalSegMap, ONLY : GlobalSegMap_init => init
---------------------------------^
ocean_coupler.f90(25): error #6581: Unresolved rename. [GLOBALSEGMAP_LSIZE]
USE m_GlobalSegMap, ONLY : GlobalSegMap_lsize => lsize
---------------------------------^
ocean_coupler.f90(26): error #6581: Unresolved rename. [GLOBALSEGMAP_CLEAN]
USE m_GlobalSegMap, ONLY : GlobalSegMap_clean => clean
---------------------------------^
ocean_coupler.f90(27): error #6581: Unresolved rename. [GLOBALSEGMAP_ORDPNTS]
USE m_GlobalSegMap, ONLY : GlobalSegMap_Ordpnts => OrderedPoints
---------------------------------^
ocean_coupler.f90(31): error #6580: Name in only-list does not exist. [ATTRVECT]
USE m_AttrVect, ONLY : AttrVect
-----------------------------^
ocean_coupler.f90(32): error #6581: Unresolved rename. [ATTRVECT_INIT]
USE m_AttrVect, ONLY : AttrVect_init => init
-----------------------------^
ocean_coupler.f90(33): error #6581: Unresolved rename. [ATTRVECT_ZERO]
USE m_AttrVect, ONLY : AttrVect_zero => zero
-----------------------------^
ocean_coupler.f90(34): error #6581: Unresolved rename. [ATTRVECT_LSIZE]
USE m_AttrVect, ONLY : AttrVect_lsize => lsize
-----------------------------^
ocean_coupler.f90(35): error #6581: Unresolved rename. [ATTRVECT_CLEAN]
USE m_AttrVect, ONLY : AttrVect_clean => clean
-----------------------------^
ocean_coupler.f90(36): error #6581: Unresolved rename. [ATTRVECT_COPY]
USE m_AttrVect, ONLY : AttrVect_copy => copy
-----------------------------^
ocean_coupler.f90(37): error #6581: Unresolved rename. [ATTRVECT_IMPORTRATTR]
USE m_AttrVect, ONLY : AttrVect_importRAttr => importRAttr
-----------------------------^
ocean_coupler.f90(38): error #6581: Unresolved rename. [ATTRVECT_EXPORTRATTR]
USE m_AttrVect, ONLY : AttrVect_exportRAttr => exportRAttr
-----------------------------^
ocean_coupler.f90(42): error #6580: Name in only-list does not exist. [ROUTER]
USE m_Router, ONLY : Router
---------------------------^
ocean_coupler.f90(43): error #6581: Unresolved rename. [ROUTER_INIT]
USE m_Router, ONLY : Router_init => init
---------------------------^
ocean_coupler.f90(44): error #6581: Unresolved rename. [ROUTER_CLEAN]
USE m_Router, ONLY : Router_clean => clean
---------------------------^
ocean_coupler.f90(48): error #6581: Unresolved rename. [MCT_SEND]
USE m_Transfer, ONLY: MCT_send => send
----------------------------^
ocean_coupler.f90(49): error #6581: Unresolved rename. [MCT_RECV]
USE m_Transfer, ONLY: MCT_recv => recv
----------------------------^
ocean_coupler.f90(50): error #6581: Unresolved rename. [MCT_ISEND]
USE m_Transfer, ONLY: MCT_isend => isend
----------------------------^
ocean_coupler.f90(51): error #6581: Unresolved rename. [MCT_IRECV]
USE m_Transfer, ONLY: MCT_irecv => irecv
----------------------------^
ocean_coupler.f90(52): error #6581: Unresolved rename. [MCT_WAITR]
USE m_Transfer, ONLY: MCT_waitr => waitrecv
----------------------------^
ocean_coupler.f90(53): error #6581: Unresolved rename. [MCT_WAITS]
USE m_Transfer, ONLY: MCT_waits => waitsend
----------------------------^
ocean_coupler.f90(175): error #6498: The use-name for this local-name is not defined. [MCTWORLD_INIT]
CALL MCTWorld_init (N_mctmodels, MPI_COMM_WORLD, &
-------------^
ocean_coupler.f90(1350): catastrophic error: Too many errors, exiting
compilation aborted for ocean_coupler.f90 (code 1)
make: *** [/nv/hnjord1/txu68/scratch/ONR/HF_22m_north_coupled/bin/Build/ocean_coupler.o] Error 1


Best,
Amy

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

Re: Got an Error when compiling coawst.bash

#2 Unread post by kate »

Your problems start here:

Code: Select all

ocean_coupler.f90(18): error #7013: This module file was not generated by any release of this compiler. [M_MCTWORLD]
USE m_MCTWorld, ONLY : MCTWorld_init => init
It might be that simply typing "make clean" will fix it. In any case, make sure that the m_mctworld module file goes away, then try again.

txu68
Posts: 27
Joined: Wed Nov 11, 2015 4:49 pm
Location: Georgia Institute of Technology

Re: Got an Error when compiling coawst.bash

#3 Unread post by txu68 »

Hi Kate,

Thank you for your quick response!!! :)

I did make clean, but I still have the same error.

Are you suggesting that I delete m_mctworld.mod in the MCT include folder?

Best,
Amy

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

Re: Got an Error when compiling coawst.bash

#4 Unread post by kate »

Yes, you have one that was built with some other compiler (so it claims).

txu68
Posts: 27
Joined: Wed Nov 11, 2015 4:49 pm
Location: Georgia Institute of Technology

Re: Got an Error when compiling coawst.bash

#5 Unread post by txu68 »

Hi Kate,

Thanks again for the quick response! :) I really appreciate it!

I have tried to re-compile MCT using ./configure and make install.

I got this error when I ran make install.

make[1]: Entering directory `/gpfs/pace1/project/pnjord1/txu68/COAWST_V33/Lib/MCT/mpeu'
icc -c -DFORTRAN_UNDERSCORE_ -DSYSLINUX -DCPRINTEL -O get_zeits.c
ifort -c -DSYSLINUX -DCPRINTEL -O2 -w -ftz -assume byterecl m_mpif.F90
m_mpif.F90(60): error #5102: Cannot open include file 'mpif.h'
include "mpif.h"
------------------^
m_mpif.F90(35): error #6404: This name does not have a type, and must have an explicit type. [MPI_INTEGER]
public :: MPI_INTEGER
--------------------^
m_mpif.F90(36): error #6404: This name does not have a type, and must have an explicit type. [MPI_REAL]
public :: MPI_REAL
--------------------^
m_mpif.F90(37): error #6404: This name does not have a type, and must have an explicit type. [MPI_DOUBLE_PRECISION]
public :: MPI_DOUBLE_PRECISION
--------------------^
m_mpif.F90(38): error #6404: This name does not have a type, and must have an explicit type. [MPI_LOGICAL]
public :: MPI_LOGICAL
--------------------^
m_mpif.F90(39): error #6404: This name does not have a type, and must have an explicit type. [MPI_CHARACTER]
public :: MPI_CHARACTER
--------------------^
m_mpif.F90(41): error #6404: This name does not have a type, and must have an explicit type. [MPI_REAL4]
public :: MPI_REAL4
--------------------^
m_mpif.F90(42): error #6404: This name does not have a type, and must have an explicit type. [MPI_REAL8]
public :: MPI_REAL8
--------------------^
m_mpif.F90(44): error #6404: This name does not have a type, and must have an explicit type. [MPI_COMM_WORLD]
public :: MPI_COMM_WORLD
--------------------^
m_mpif.F90(45): error #6404: This name does not have a type, and must have an explicit type. [MPI_COMM_NULL]
public :: MPI_COMM_NULL
--------------------^
m_mpif.F90(47): error #6404: This name does not have a type, and must have an explicit type. [MPI_SUM]
public :: MPI_SUM
--------------------^
m_mpif.F90(48): error #6404: This name does not have a type, and must have an explicit type. [MPI_PROD]
public :: MPI_PROD
--------------------^
m_mpif.F90(49): error #6404: This name does not have a type, and must have an explicit type. [MPI_MIN]
public :: MPI_MIN
--------------------^
m_mpif.F90(50): error #6404: This name does not have a type, and must have an explicit type. [MPI_MAX]
public :: MPI_MAX
--------------------^
m_mpif.F90(52): error #6404: This name does not have a type, and must have an explicit type. [MPI_MAX_ERROR_STRING]
public :: MPI_MAX_ERROR_STRING
--------------------^
m_mpif.F90(53): error #6404: This name does not have a type, and must have an explicit type. [MPI_STATUS_SIZE]
public :: MPI_STATUS_SIZE
--------------------^
m_mpif.F90(54): error #6404: This name does not have a type, and must have an explicit type. [MPI_ANY_SOURCE]
public :: MPI_ANY_SOURCE
--------------------^
compilation aborted for m_mpif.F90 (code 1)
make[1]: *** [m_mpif.o] Error 1
make[1]: Leaving directory `/gpfs/pace1/project/pnjord1/txu68/COAWST_V33/Lib/MCT/mpeu'
make: *** [subdirs] Error 2


Best,
Amy

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

Re: Got an Error when compiling coawst.bash

#6 Unread post by kate »

Code: Select all

ifort -c -DSYSLINUX -DCPRINTEL -O2 -w -ftz -assume byterecl m_mpif.F90
m_mpif.F90(60): error #5102: Cannot open include file 'mpif.h'
include "mpif.h"
Tell it your compiler is called "mpif90" instead of "ifort". mpif90 should know how to find mpif.h.

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

Re: Got an Error when compiling coawst.bash

#7 Unread post by m.hadfield »

I suggest you delete *everything* and start over again, and use a configure command like this

Code: Select all

CPRDEF=INTEL CC=icc FC=ifort MPIFC=mpif90 ./configure

Post Reply