WRF compile with PGI 12.5

Hellow

I’m trying to compile wrf3.4 with PGI 12.5 on CentOS(64 bit). When I compiled with the configure.wrf I get the following error message:

any idea how can i fix this problem? Thanks!

# configure.wrf
#
# This file was automatically generated by the configure script in the
# top level directory. You may make changes to the settings in this
# file but be aware they will be overwritten each time you run configure.
# Ordinarily, it is necessary to run configure once, when the code is
# first installed.
#
# To permanently change options, change the settings for your platform
# in the file arch/configure.defaults then rerun configure.
#
SHELL           =       /bin/sh
DEVTOP          =       `pwd`
LIBINCLUDE      =       .
.SUFFIXES: .F .i .o .f90 .c

#### Get core settings from environment (set in compile script)
#### Note to add a core, this has to be added to.

COREDEFS = -DEM_CORE=$(WRF_EM_CORE) \
           -DNMM_CORE=$(WRF_NMM_CORE) -DNMM_MAX_DIM=2600 \
	   -DCOAMPS_CORE=$(WRF_COAMPS_CORE) \
	   -DDA_CORE=$(WRF_DA_CORE) \
           -DEXP_CORE=$(WRF_EXP_CORE)

#### Single location for defining total number of domains.  You need
#### at least 1 + 2*(number of total nests).  For example, 1 coarse
#### grid + three fine grids = 1 + 2(3) = 7, so MAX_DOMAINS=7.

MAX_DOMAINS	=	21

#### DM buffer length for the configuration flags.

CONFIG_BUF_LEN	=	65536

#### Size of bitmasks (in 4byte integers) of stream masks for WRF I/O

MAX_HISTORY = 25

IWORDSIZE = 4
DWORDSIZE = 8
LWORDSIZE = 4

##############################################################################
#### The settings in this section are defaults that may be overridden by the 
#### architecture-specific settings in the next section.  
##############################################################################

##############################################################################
#### NOTE:  Do not modify these default values here.  To override these 
####        values, make changes after "Architecture specific settings".  
##############################################################################

#### Native size (in bytes) of Fortran REAL data type on this architecture ####
#### Note:  to change real wordsize (for example, to promote REALs from 
####        4-byte to 8-byte), modify the definition of RWORDSIZE in the 
####        section following "Architecture specific settings".  Do not 
####        change NATIVE_RWORDSIZE as is it architecture-specific.  
NATIVE_RWORDSIZE = 4

#### Default sed command and script for Fortran source files ####
#SED_FTN = sed -f $(WRF_SRC_ROOT_DIR)/arch/standard.sed
SED_FTN = $(WRF_SRC_ROOT_DIR)/tools/standard.exe

# Hack to work around $(PWD) not changing during OSF1 build.  
# $(IO_GRIB_SHARE_DIR) is reset during the OSF1 build only.  
IO_GRIB_SHARE_DIR = 

#### ESMF switches                 ####
#### These are set up by Config.pl ####
# switch to use separately installed ESMF library for coupling:  1==true
ESMF_COUPLING       = 0
# select dependences on module_utility.o
ESMF_MOD_DEPENDENCE = $(WRF_SRC_ROOT_DIR)/external/esmf_time_f90/module_utility.o
# select -I options for external/io_esmf vs. external/esmf_time_f90
ESMF_IO_INC         = -I$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90
# select -I options for separately installed ESMF library, if present
ESMF_MOD_INC        =  $(ESMF_IO_INC)
# select cpp token for external/io_esmf vs. external/esmf_time_f90
ESMF_IO_DEFS        = 
# select build target for external/io_esmf vs. external/esmf_time_f90
ESMF_TARGET         = esmf_time

# ESMFINCLUDEGOESHERE


##############################################################################

LIBWRFLIB = libwrflib.a


#### Architecture specific settings ####

# Settings for Linux x86_64, PGI compiler with gcc  (dmpar)
#
DMPARALLEL      =        1
OMPCPP          =       # -D_OPENMP
OMP             =       # -mp -Minfo=mp -Mrecursive
OMPCC           =       # -mp
SFC             =       pgf90
SCC             =       gcc
CCOMP           =       pgcc
DM_FC           =       mpif90 -f90=$(SFC)
DM_CC           =       mpicc -cc=$(SCC) -DMPI2_SUPPORT
FC              =        $(DM_FC)
CC              =       $(DM_CC) -DFSEEKO64_OK 
LD              =       $(FC)
RWORDSIZE       =       $(NATIVE_RWORDSIZE)
PROMOTION       =       -r$(RWORDSIZE) -i4
ARCH_LOCAL      =       -DNONSTANDARD_SYSTEM_SUBR
CFLAGS_LOCAL    =       -w -O3
LDFLAGS_LOCAL   =       
CPLUSPLUSLIB    =       
ESMF_LDFLAG     =       $(CPLUSPLUSLIB)
FCOPTIM         =       -O3 #-fastsse -Mvect=noaltcode -Msmartalloc -Mprefetch=distance:8 -Mfprelaxed # -Minfo=all =Mneginfo=all
FCREDUCEDOPT	=       $(FCOPTIM)
FCNOOPT		=       -O0
FCDEBUG         =       # -g $(FCNOOPT)
FORMAT_FIXED    =       -Mfixed
FORMAT_FREE     =       -Mfree
FCSUFFIX        =
BYTESWAPIO      =       -byteswapio
FCBASEOPTS_NO_G =       -w $(FORMAT_FREE) $(BYTESWAPIO) $(OMP)
FCBASEOPTS      =       $(FCBASEOPTS_NO_G) $(FCDEBUG)
MODULE_SRCH_FLAG =     -module $(WRF_SRC_ROOT_DIR)/main
TRADFLAG        =      -traditional
CPP             =      /lib/cpp -C -P
AR              =      ar
ARFLAGS         =      ru
M4              =      m4 -B 14000
RANLIB          =      ranlib
CC_TOOLS        =      $(SCC)



None of WRF_EM_CORE, WRF_NMM_CORE,
specified in shell environment…

Compiling: WRF_EM_CORE .


Registry INFO variable counts: 0d 1947 1d 96 2d 754 3d 450
REGISTRY WARNING: Don’t know about ru_tendf_stoch_b in definition of ru_tendf_stoch
REGISTRY WARNING: Don’t know about ru_tendf_stoch_bt in definition of ru_tendf_stoch
REGISTRY WARNING: Don’t know about rv_tendf_stoch_b in definition of rv_tendf_stoch
REGISTRY WARNING: Don’t know about rv_tendf_stoch_bt in definition of rv_tendf_stoch
REGISTRY WARNING: Don’t know about rt_tendf_stoch_b in definition of rt_tendf_stoch
REGISTRY WARNING: Don’t know about rt_tendf_stoch_bt in definition of rt_tendf_stoch
ADVISORY: RSL_LITE version of gen_comms is linked in with registry program.

mpif90 -f90=pgf90 -c -r4 -i4 -O0 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include module_io.f90
PGF90-S-0017-Unable to open include file: mpif.h (module_io.f90: 15781)
0 inform, 0 warnings, 1 severes, 0 fatal for collect_generic_and_call_pkg
PGF90-S-0017-Unable to open include file: mpif.h (module_io.f90: 16417)
0 inform, 0 warnings, 1 severes, 0 fatal for call_pkg_and_dist_generic
make[2]: [module_io.o] Error 2 (ignored)
ar ru …/main/libwrflib.a module_driver_constants.o module_domain_type.o module_streams.o module_domain.o module_integrate.o module_timing.o module_configure.o module_tiles.o module_machine.o module_nesting.o module_wrf_error.o module_state_description.o module_sm.o module_io.o module_comm_dm.o module_comm_dm_0.o module_comm_dm_1.o module_comm_dm_2.o module_comm_dm_3.o module_comm_dm_4.o module_comm_nesting_dm.o module_dm.o module_quilt_outbuf_ops.o module_io_quilt.o wrf_num_bytes_between.o wrf_shutdown.o wrf_debug.o libmassv.o collect_on_comm.o hires_timer.o nl_get_0_routines.o nl_get_1_routines.o nl_get_2_routines.o nl_get_3_routines.o nl_get_4_routines.o nl_get_5_routines.o nl_get_6_routines.o nl_get_7_routines.o nl_set_0_routines.o nl_set_1_routines.o nl_set_2_routines.o nl_set_3_routines.o nl_set_4_routines.o nl_set_5_routines.o nl_set_6_routines.o nl_set_7_routines.o module_alloc_space_0.o module_alloc_space_1.o module_alloc_space_2.o module_alloc_space_3.o module_alloc_space_4.o module_alloc_space_5.o module_alloc_space_6.o module_alloc_space_7.o module_alloc_space_8.o module_alloc_space_9.o
ar: creating …/main/libwrflib.a
ar: module_io.o: No such file or directory
make[2]: [framework] Error 1 (ignored)
ranlib …/main/libwrflib.a
ranlib: ‘…/main/libwrflib.a’: No such file
make[2]: [framework] Error 1 (ignored)
make[2]: Leaving directory /home/lim/WRF/WRFV3/frame' make[2]: Entering directory /home/lim/WRF/WRFV3/external/io_netcdf’
make[2]: diffwrf' is up to date. make[2]: Leaving directory /home/lim/WRF/WRFV3/external/io_netcdf’
make[2]: Entering directory /home/lim/WRF/WRFV3/external/io_int' if [ -f ../../frame/pack_utils.o ] ; then \ mv diffwrf.F diffwrf.F90 ; \ x=echo "pgf90 -w -Mfree -byteswapio " | awk ‘{print $1}’; export x ; \ if [ $x = "gfortran" ] ; then \ echo removing external declaration of iargc for gfortran ; \ /lib/cpp -C -P -traditional -I../ioapi_share diffwrf.F90 | sed '/integer *, *external.*iargc/d' > diffwrf.f ; \ else \ /lib/cpp -C -P -traditional -I../ioapi_share diffwrf.F90 > diffwrf.f ; \ fi ; \ pgf90 -w -Mfree -byteswapio -c -I../ioapi_share diffwrf.f ; \ mv diffwrf.F90 diffwrf.F ; \ pgf90 -w -Mfree -byteswapio -o diffwrf diffwrf.o io_int.o \ ../../frame/pack_utils.o ../../frame/module_internal_header_util.o \ ../../frame/module_driver_constants.o \ ../../frame/module_machine.o ../../frame/wrf_debug.o ../../frame/module_wrf_error.o \ -L/home/lim/WRF/WRFV3/external/esmf_time_f90 -lesmf_time ; fi ... PGF90-S-0017-Unable to open include file: mpif.h (../frame/module_io.f90: 15781) 0 inform, 0 warnings, 1 severes, 0 fatal for collect_generic_and_call_pkg PGF90-S-0017-Unable to open include file: mpif.h (../frame/module_io.f90: 16417) 0 inform, 0 warnings, 1 severes, 0 fatal for call_pkg_and_dist_generic make[2]: [../frame/module_io.o] Error 2 (ignored) ... ar ru ../main/libwrflib.a module_advect_em.o module_diffusion_em.o module_small_step_em.o module_big_step_utilities_em.o module_em.o module_solvedebug_em.o module_bc_em.o module_init_utilities.o module_wps_io_arw.o module_damping_em.o module_polarfft.o module_force_scm.o module_first_rk_step_part1.o module_first_rk_step_part2.o module_avgflx_em.o module_sfs_nba.o module_convtrans_prep.o module_sfs_driver.o module_stoch.o init_modules_em.o solve_em.o start_em.o shift_domain_em.o couple_or_uncouple_em.o nest_init_utils.o adapt_timestep_em.o interp_domain_em.o ar: module_wps_io_arw.o: No such file or directory make[2]: [dyn_em] Error 1 (ignored) make[2]: Leaving directory/home/lim/WRF/WRFV3/dyn_em’
make[1]: Leaving directory /home/lim/WRF/WRFV3' if [ 0 -eq 1 ] ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include " nmm_core ; fi if [ 0 -eq 1 ] ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include " exp_core ; fi ( cd main ; make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include " SOLVER=em em_wrf ) make[1]: Entering directory /home/lim/WRF/WRFV3/main’
rm -f …/main/module_wrf_top.o
/lib/cpp -C -P -I/home/lim/WRF/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional …/main/module_wrf_top.F > …/main/module_wrf_top.bb
/home/lim/WRF/WRFV3/tools/standard.exe …/main/module_wrf_top.bb | /lib/cpp -C -P > …/main/module_wrf_top.f90
rm -f …/main/module_wrf_top.b …/main/module_wrf_top.bb
if fgrep -iq ‘!$OMP’ …/main/module_wrf_top.f90 ; then
if [ -n “” ] ; then echo COMPILING …/main/module_wrf_top.F WITH OMP ; fi ;
mpif90 -f90=pgf90 -o …/main/module_wrf_top.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 …/main/module_wrf_top.f90 ;
else
if [ -n “” ] ; then echo COMPILING …/main/module_wrf_top.F WITHOUT OMP ; fi ;
mpif90 -f90=pgf90 -o …/main/module_wrf_top.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 …/main/module_wrf_top.f90 ;
fi
rm -f wrf.o
/lib/cpp -C -P -I/home/lim/WRF/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional wrf.F > wrf.bb
/home/lim/WRF/WRFV3/tools/standard.exe wrf.bb | /lib/cpp -C -P > wrf.f90
rm -f wrf.b wrf.bb
if fgrep -iq ‘!$OMP’ wrf.f90 ; then
if [ -n “” ] ; then echo COMPILING wrf.F WITH OMP ; fi ;
mpif90 -f90=pgf90 -o wrf.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 wrf.f90 ;
else
if [ -n “” ] ; then echo COMPILING wrf.F WITHOUT OMP ; fi ;
mpif90 -f90=pgf90 -o wrf.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 wrf.f90 ;
fi
ranlib libwrflib.a
mpif90 -f90=pgf90 -o wrf.exe -O3 -w -Mfree -byteswapio wrf.o …/main/module_wrf_top.o libwrflib.a /home/lim/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/lim/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/lim/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/lim/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/lim/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/lim/WRF/WRFV3/frame/module_internal_header_util.o /home/lim/WRF/WRFV3/frame/pack_utils.o -L/home/lim/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/opt/lib.pgi/netcdf4/lib -lnetcdff -lnetcdf
wrf.o: In function .C1_283': wrf.f90:(.data+0xc): undefined reference to module_streams_’
wrf.f90:(.data+0x74): undefined reference to module_driver_constants_' wrf.f90:(.data+0x7c): undefined reference to module_domain_type_’
wrf.f90:(.data+0x84): undefined reference to module_integrate_' wrf.f90:(.data+0x8c): undefined reference to module_wrf_error_’
wrf.f90:(.data+0x94): undefined reference to module_state_description_' wrf.f90:(.data+0x9c): undefined reference to module_configure_’
wrf.f90:(.data+0xac): undefined reference to module_timing_' wrf.f90:(.data+0xb4): undefined reference to module_machine_’
wrf.f90:(.data+0xbc): undefined reference to module_domain_' wrf.f90:(.data+0xc4): undefined reference to module_nesting_’
wrf.f90:(.data+0xcc): undefined reference to module_dm_' ../main/module_wrf_top.o: In function module_wrf_top_wrf_init_‘:
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:69: undefined reference to wrf_dm_on_monitor_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:72: undefined reference to module_configure_initial_config_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:73: undefined reference to module_configure_get_config_as_buffer_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:73: undefined reference to wrf_dm_bcast_bytes_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:73: undefined reference to module_configure_set_config_as_buffer_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:73: undefined reference to module_dm_wrf_dm_initialize_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:73: undefined reference to nl_get_debug_level_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:73: undefined reference to set_wrf_debug_level_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:73: undefined reference to nl_get_max_dom_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:73: undefined reference to wrf_message_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:73: undefined reference to wrf_debug_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:73: undefined reference to module_domain_alloc_and_configure_domain_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:73: undefined reference to wrf_debug_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:73: undefined reference to module_configure_model_to_grid_config_rec_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:73: undefined reference to wrf_debug_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:73: undefined reference to set_scalar_indices_from_config_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:73: undefined reference to wrf_debug_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:73: undefined reference to module_configure_get_config_as_buffer_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:73: undefined reference to wrf_dm_bcast_bytes_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:73: undefined reference to module_configure_set_config_as_buffer_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:106: undefined reference to wrf_debug_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:109: undefined reference to module_domain_domain_get_start_time_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:109: undefined reference to module_domain_domain_get_stop_time_' ../main/module_wrf_top.o: In function module_wrf_top_wrf_run_‘:
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:117: undefined reference to wrf_debug_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:117: undefined reference to module_integrate_integrate_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:117: undefined reference to wrf_debug_' ../main/module_wrf_top.o: In function module_wrf_top_wrf_finalize_‘:
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:123: undefined reference to wrf_debug_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:123: undefined reference to wrf_debug_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:127: undefined reference to wrf_shutdown_' ../main/module_wrf_top.o: In function module_wrf_top_wrf_dfi_‘:
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:136: undefined reference to wrf_message_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:136: undefined reference to wrf_message_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:148: undefined reference to wrf_message_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:148: undefined reference to wrf_message_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:148: undefined reference to wrf_message_' ../main/module_wrf_top.o:/home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:164: more undefined references to wrf_message_’ follow
…/main/module_wrf_top.o: In function module_wrf_top_wrf_dfi_': /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:180: undefined reference to wrf_error_fatal3_’
…/main/module_wrf_top.o: In function module_wrf_top_alloc_doms_for_dfi_': /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:205: undefined reference to module_nesting_nests_to_open_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:205: undefined reference to module_domain_alloc_and_configure_domain_' /home/lim/WRF/WRFV3/main/../main/module_wrf_top.f90:205: undefined reference to module_configure_model_to_grid_config_rec_’
/home/lim/WRF/WRFV3/main/…/main/module_wrf_top.f90:205: undefined reference to module_nesting_nests_to_open_' ../main/module_wrf_top.o: In function .C7_283’:
module_wrf_top.f90:(.data+0x2fc): undefined reference to module_machine_' module_wrf_top.f90:(.data+0x304): undefined reference to module_domain_’
module_wrf_top.f90:(.data+0x30c): undefined reference to module_integrate_' module_wrf_top.f90:(.data+0x314): undefined reference to module_driver_constants_’
module_wrf_top.f90:(.data+0x31c): undefined reference to module_configure_' module_wrf_top.f90:(.data+0x32c): undefined reference to module_timing_’
module_wrf_top.f90:(.data+0x334): undefined reference to module_wrf_error_' module_wrf_top.f90:(.data+0x33c): undefined reference to module_nesting_’
module_wrf_top.f90:(.data+0x344): undefined reference to module_dm_' module_wrf_top.f90:(.data+0x34c): undefined reference to module_state_description_’
module_wrf_top.f90:(.data+0x3b4): undefined reference to module_streams_' module_wrf_top.f90:(.data+0x3bc): undefined reference to module_domain_type_’
/home/lim/WRF/WRFV3/frame/module_internal_header_util.o: In function module_internal_header_util_int_get_write_field_header_': /home/lim/WRF/WRFV3/frame/./module_internal_header_util.f90:285: undefined reference to wrf_error_fatal_’
/home/lim/WRF/WRFV3/frame/module_internal_header_util.o: In function module_internal_header_util_int_get_noop_header_': /home/lim/WRF/WRFV3/frame/./module_internal_header_util.f90:1906: undefined reference to wrf_error_fatal_’
libwrflib.a(module_io_domain.o): In function `module_io_domain_open_r_dataset_':
/…

/home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a(io_int.o): In function ext_int_get_var_td_double_': /home/lim/WRF/WRFV3/external/io_int/./io_int.f:1553: undefined reference to wrf_error_fatal_’
/home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a(io_int.o):/home/lim/WRF/WRFV3/external/io_int/./io_int.f:1567: more undefined references to wrf_error_fatal_' follow /home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a(io_int.o): In function ext_int_read_field_‘:
/home/lim/WRF/WRFV3/external/io_int/./io_int.f:1739: undefined reference to wrf_message_' /home/lim/WRF/WRFV3/external/io_int/./io_int.f:1743: undefined reference to wrf_message_’
/home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a(io_int.o): In function ext_int_write_field_': /home/lim/WRF/WRFV3/external/io_int/./io_int.f:1813: undefined reference to wrf_error_fatal_’
/home/lim/WRF/WRFV3/external/io_int/./io_int.f:1815: undefined reference to wrf_error_fatal_' /home/lim/WRF/WRFV3/external/io_int/./io_int.f:1824: undefined reference to wrf_error_fatal_’
/home/lim/WRF/WRFV3/external/io_int/./io_int.f:1828: undefined reference to wrf_error_fatal_' /home/lim/WRF/WRFV3/external/esmf_time_f90/libesmf_time.a(ESMF_Alarm.o): In function esmf_alarmmod_esmf_alarmsetringinterval_‘:
/home/lim/WRF/WRFV3/external/esmf_time_f90/./ESMF_Alarm.f:337: undefined reference to wrf_error_fatal_' /home/lim/WRF/WRFV3/external/esmf_time_f90/libesmf_time.a(ESMF_Alarm.o):/home/lim/WRF/WRFV3/external/esmf_time_f90/./ESMF_Alarm.f:368: more undefined references to wrf_error_fatal_’ follow
make[1]: [em_real] Error 2 (ignored)

However, when i compiled with setenv J “-j 1” (./compile em_real)
I get the following error messages like “undefined reference mpi_…”



ranlib libwrflib.a
mpif90 -f90=pgf90 -o wrf.exe -O3 -w -Mfree -byteswapio wrf.o …/main/module_wrf_top.o libwrflib.a /home/lim/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/lim/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/lim/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/lim/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/lim/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/lim/WRF/WRFV3/frame/module_internal_header_util.o /home/lim/WRF/WRFV3/frame/pack_utils.o -L/home/lim/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/opt/lib.pgi/netcdf4/lib -lnetcdff -lnetcdf
libwrflib.a(module_dm.o): In function module_dm_wrf_dm_initialize_': /home/lim/WRF/WRFV3/frame/./module_dm.f90:139: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:145: undefined reference to mpi_comm_rank_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:149: undefined reference to mpi_comm_dup_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:150: undefined reference to mpi_comm_group_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:155: undefined reference to mpi_group_incl_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:157: undefined reference to mpi_comm_create_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:166: undefined reference to mpi_cart_create_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:171: undefined reference to mpi_cart_create_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:173: undefined reference to mpi_comm_rank_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:174: undefined reference to mpi_cart_coords_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:177: undefined reference to mpi_comm_rank_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:178: undefined reference to mpi_cart_coords_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:188: undefined reference to mpi_comm_dup_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:191: undefined reference to mpi_comm_split_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:194: undefined reference to mpi_comm_split_’
libwrflib.a(module_dm.o): In function module_dm_getrealmpitype_': /home/lim/WRF/WRFV3/frame/./module_dm.f90:958: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:959: undefined reference to mpi_type_size_' libwrflib.a(module_dm.o): In function module_dm_wrf_dm_max_real_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:976: undefined reference to mpi_allreduce_' libwrflib.a(module_dm.o): In function module_dm_wrf_dm_min_real_’:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:985: undefined reference to mpi_allreduce_' libwrflib.a(module_dm.o): In function module_dm_wrf_dm_min_reals_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:996: undefined reference to mpi_allreduce_' libwrflib.a(module_dm.o): In function module_dm_wrf_dm_sum_real_’:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1004: undefined reference to mpi_allreduce_' libwrflib.a(module_dm.o): In function module_dm_wrf_dm_sum_reals_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1014: undefined reference to mpi_allreduce_' libwrflib.a(module_dm.o):/home/lim/WRF/WRFV3/frame/./module_dm.f90:1022: more undefined references to mpi_allreduce_’ follow
libwrflib.a(module_dm.o): In function module_dm_wrf_dm_maxval_real_': /home/lim/WRF/WRFV3/frame/./module_dm.f90:1046: undefined reference to mpi_allgather_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1047: undefined reference to mpi_allgather_' libwrflib.a(module_dm.o): In function module_dm_wrf_dm_maxval_doubleprecision_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1069: undefined reference to mpi_allgather_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1070: undefined reference to mpi_allgather_’
libwrflib.a(module_dm.o): In function module_dm_wrf_dm_maxval_integer_': /home/lim/WRF/WRFV3/frame/./module_dm.f90:1092: undefined reference to mpi_allgather_’
libwrflib.a(module_dm.o):/home/lim/WRF/WRFV3/frame/./module_dm.f90:1093: more undefined references to mpi_allgather_' follow libwrflib.a(module_dm.o): In function module_dm_split_communicator_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1204: undefined reference to mpi_initialized_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1213: undefined reference to mpi_comm_rank_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1214: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1221: undefined reference to mpi_bcast_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1225: undefined reference to mpi_bcast_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1241: undefined reference to mpi_comm_dup_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1242: undefined reference to mpi_comm_split_' libwrflib.a(module_dm.o): In function module_dm_init_module_dm_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1253: undefined reference to mpi_initialized_' libwrflib.a(module_dm.o): In function module_dm_get_full_obs_vector_’:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1319: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1332: undefined reference to mpi_allgather_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1341: undefined reference to mpi_allgatherv_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1345: undefined reference to mpi_allgatherv_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1352: undefined reference to mpi_allgatherv_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1359: undefined reference to mpi_allgatherv_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1376: undefined reference to mpi_allgather_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1385: undefined reference to mpi_allgatherv_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1389: undefined reference to mpi_allgatherv_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1396: undefined reference to mpi_allgatherv_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1415: undefined reference to mpi_allgather_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1422: undefined reference to mpi_allgatherv_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1426: undefined reference to mpi_allgatherv_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1434: undefined reference to mpi_allgatherv_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1441: undefined reference to mpi_allgatherv_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:1448: undefined reference to mpi_allgatherv_’
libwrflib.a(module_dm.o): In function module_dm_wrf_dm_maxtile_real_': /home/lim/WRF/WRFV3/frame/./module_dm.f90:1473: undefined reference to mpi_allgather_’
libwrflib.a(module_dm.o): In function module_dm_wrf_dm_mintile_real_': /home/lim/WRF/WRFV3/frame/./module_dm.f90:1500: undefined reference to mpi_allgather_’
libwrflib.a(module_dm.o): In function module_dm_wrf_dm_mintile_double_': /home/lim/WRF/WRFV3/frame/./module_dm.f90:1527: undefined reference to mpi_allgather_’
libwrflib.a(module_dm.o): In function module_dm_wrf_dm_tile_val_int_': /home/lim/WRF/WRFV3/frame/./module_dm.f90:1553: undefined reference to mpi_allgather_’
libwrflib.a(module_dm.o): In function wrf_termio_dup_': /home/lim/WRF/WRFV3/frame/./module_dm.f90:1640: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1641: undefined reference to mpi_comm_rank_' libwrflib.a(module_dm.o): In function wrf_abort_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1805: undefined reference to mpi_abort_' libwrflib.a(module_dm.o): In function wrf_dm_shutdown_’:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1811: undefined reference to mpi_finalize_' libwrflib.a(module_dm.o): In function wrf_dm_on_monitor_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:1820: undefined reference to mpi_comm_rank_' libwrflib.a(module_dm.o): In function wrf_gatherv_real_’:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18177: undefined reference to mpi_gatherv_' libwrflib.a(module_dm.o): In function wrf_gatherv_double_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18210: undefined reference to mpi_gatherv_' libwrflib.a(module_dm.o): In function wrf_gatherv_integer_’:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18238: undefined reference to mpi_gatherv_' libwrflib.a(module_dm.o): In function wrf_scatterv_real_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18269: undefined reference to mpi_scatterv_' libwrflib.a(module_dm.o): In function wrf_scatterv_double_’:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18303: undefined reference to mpi_scatterv_' libwrflib.a(module_dm.o): In function wrf_scatterv_integer_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18333: undefined reference to mpi_scatterv_' libwrflib.a(module_dm.o): In function wrf_dm_gatherv_double_’:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18373: undefined reference to mpi_allgather_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:18375: undefined reference to mpi_allgather_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18379: undefined reference to mpi_allgatherv_' libwrflib.a(module_dm.o): In function wrf_dm_gatherv_single_‘:
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18407: undefined reference to mpi_allgather_' /home/lim/WRF/WRFV3/frame/./module_dm.f90:18409: undefined reference to mpi_allgather_’
/home/lim/WRF/WRFV3/frame/./module_dm.f90:18413: undefined reference to mpi_allgatherv_' libwrflib.a(module_io.o): In function collect_generic_and_call_pkg_‘:
/home/lim/WRF/WRFV3/frame/./module_io.f90:15889: undefined reference to mpi_gather_' /home/lim/WRF/WRFV3/frame/./module_io.f90:15891: undefined reference to mpi_gather_’
/home/lim/WRF/WRFV3/frame/./module_io.f90:15944: undefined reference to mpi_gather_' /home/lim/WRF/WRFV3/frame/./module_io.f90:15946: undefined reference to mpi_gather_’
/home/lim/WRF/WRFV3/frame/./module_io.f90:15999: undefined reference to mpi_gather_' libwrflib.a(module_io.o):/home/lim/WRF/WRFV3/frame/./module_io.f90:16001: more undefined references to mpi_gather_’ follow
libwrflib.a(module_io_quilt.o): In function module_wrf_quilt_setup_quilt_servers_': /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:150: undefined reference to mpi_comm_dup_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:150: undefined reference to mpi_comm_split_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:180: undefined reference to mpi_comm_dup_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:180: undefined reference to mpi_comm_split_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:190: undefined reference to mpi_comm_rank_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:203: undefined reference to mpi_comm_dup_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:203: undefined reference to mpi_comm_split_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:209: undefined reference to mpi_comm_rank_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:215: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:215: undefined reference to mpi_comm_rank_' libwrflib.a(module_io_quilt.o): In function module_wrf_quilt_quilt_‘:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:324: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:324: undefined reference to mpi_comm_rank_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:324: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:324: undefined reference to mpi_comm_rank_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:324: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:350: undefined reference to mpi_reduce_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:354: undefined reference to mpi_finalize_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:379: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:479: undefined reference to mpi_reduce_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:496: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:503: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:520: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:537: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:554: undefined reference to mpi_type_size_’
libwrflib.a(module_io_quilt.o):/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:658: more undefined references to mpi_type_size_' follow libwrflib.a(module_io_quilt.o): In function module_wrf_quilt_quilt_‘:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:745: undefined reference to mpi_reduce_' libwrflib.a(module_io_quilt.o): In function module_wrf_quilt_quilt_pnc_’:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:836: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:836: undefined reference to mpi_comm_rank_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:836: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:836: undefined reference to mpi_comm_rank_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:836: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:856: undefined reference to mpi_reduce_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:860: undefined reference to mpi_finalize_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:882: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:994: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1011: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1028: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1045: undefined reference to mpi_type_size_’
libwrflib.a(module_io_quilt.o):/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1149: more undefined references to mpi_type_size_' follow libwrflib.a(module_io_quilt.o): In function module_wrf_quilt_init_module_wrf_quilt_‘:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1257: undefined reference to mpi_initialized_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1262: undefined reference to mpi_comm_rank_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1262: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1289: undefined reference to mpi_bcast_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1289: undefined reference to mpi_bcast_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1289: undefined reference to mpi_bcast_’
libwrflib.a(module_io_quilt.o): In function wrf_quilt_open_for_write_begin_': /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1375: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1389: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1396: undefined reference to mpi_reduce_’
libwrflib.a(module_io_quilt.o): In function wrf_quilt_open_for_write_commit_': /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1451: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1459: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1465: undefined reference to mpi_reduce_’
libwrflib.a(module_io_quilt.o): In function wrf_quilt_iosync_': /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1570: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1576: undefined reference to mpi_reduce_' libwrflib.a(module_io_quilt.o): In function wrf_quilt_ioclose_‘:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1634: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1641: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1646: undefined reference to mpi_reduce_' libwrflib.a(module_io_quilt.o): In function wrf_quilt_ioexit_‘:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1703: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1716: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1716: undefined reference to mpi_comm_rank_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1722: undefined reference to mpi_reduce_’
libwrflib.a(module_io_quilt.o): In function wrf_quilt_set_time_': /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1791: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1798: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1804: undefined reference to mpi_reduce_’
libwrflib.a(module_io_quilt.o): In function wrf_quilt_put_dom_ti_real_': /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1878: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1883: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1883: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1890: undefined reference to mpi_comm_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1896: undefined reference to mpi_reduce_’
libwrflib.a(module_io_quilt.o): In function wrf_quilt_put_dom_ti_integer_': /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1993: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:1993: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2001: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2007: undefined reference to mpi_reduce_' libwrflib.a(module_io_quilt.o): In function wrf_quilt_put_dom_ti_char_‘:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2103: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2109: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2116: undefined reference to mpi_reduce_' libwrflib.a(module_io_quilt.o): In function wrf_quilt_put_var_ti_char_‘:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2377: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2384: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2390: undefined reference to mpi_reduce_' libwrflib.a(module_io_quilt.o): In function wrf_quilt_write_field_‘:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2593: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2599: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2601: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2603: undefined reference to mpi_type_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2605: undefined reference to mpi_type_size_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2608: undefined reference to mpi_comm_size_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2620: undefined reference to mpi_reduce_' libwrflib.a(module_io_quilt.o): In function wrf_quilt_find_server_‘:
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2670: undefined reference to mpi_recv_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2674: undefined reference to mpi_bcast_’
libwrflib.a(module_io_quilt.o): In function wrf_quilt_server_ready_': /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2689: undefined reference to mpi_barrier_’
/home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2696: undefined reference to mpi_ssend_' /home/lim/WRF/WRFV3/frame/./module_io_quilt.f90:2701: undefined reference to mpi_barrier_’
make[1]: [em_wrf] Error 2 (ignored)
make[1]: Leaving directory `/home/lim/WRF/WRFV3/main’

Hi Jong-MyoungLim84242,

I appears to me that your MPI installation wasn’t built with Fortran support. Hence, the missing header file and undefined references.

PGF90-S-0017-Unable to open include file: mpif.h (module_io.f90: 15781)

What MPI are you using? How was it built?

  • Mat

Hi Mat

I compiled MVAPICH with PGI-12.5.

Anyway, when I added “-L/opt/mpi/mvapich/pgi/lib -lmpich -lfmpich” on LDFLAGS, I get the following error messages

mpif90 -o wrf.exe -O3 -w -Mfree -byteswapio -L/opt/mpi/mvapich/pgi/lib -lmpich -lfmpich wrf.o …/main/module_wrf_top.o libwrflib.a /home/lim/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/lim/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/lim/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/lim/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/lim/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/lim/WRF/WRFV3/frame/module_internal_header_util.o /home/lim/WRF/WRFV3/frame/pack_utils.o -L/home/lim/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/opt/lib.pgi/netcdf4/lib -lnetcdff -lnetcdf
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUS_IGNORE' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_TRUE’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_MPI_BOTTOM' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_FALSE’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUSES_IGNORE' make[1]: [em_wrf] Error 2 (ignored) make[1]: Leaving directory /home/lim/WRF/WRFV3/main’
( cd run ; /bin/rm -f wrf.exe ; ln -s …/main/wrf.exe . )
if [ 0 -eq 1 ] ; then
( cd main ; make -i -r MODULE_DIRS="-I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include " SOLVER=em em_wrf_SST_ESMF ) ;
fi
build started: Sat Aug 11 00:56:39 KST 2012
build completed: Sat Aug 11 01:11:03 KST 2012

( cd main ; make -i -r MODULE_DIRS="-I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include " SOLVER=em IDEAL_CASE=real em_real )
make[1]: Entering directory /home/lim/WRF/WRFV3/main' rm -f ../dyn_em/module_initialize_real.o /lib/cpp -C -P -I/home/lim/WRF/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional ../dyn_em/module_initialize_real.F > ../dyn_em/module_initialize_real.bb /home/lim/WRF/WRFV3/tools/standard.exe ../dyn_em/module_initialize_real.bb | /lib/cpp -C -P > ../dyn_em/module_initialize_real.f90 rm -f ../dyn_em/module_initialize_real.b ../dyn_em/module_initialize_real.bb if fgrep -iq '!$OMP' ../dyn_em/module_initialize_real.f90 ; then \ if [ -n "" ] ; then echo COMPILING ../dyn_em/module_initialize_real.F WITH OMP ; fi ; \ mpif90 -o ../dyn_em/module_initialize_real.o -c -O3 -w -Mfree -byteswapio -I../dyn_em -I../dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 ../dyn_em/module_initialize_real.f90 ; \ else \ if [ -n "" ] ; then echo COMPILING ../dyn_em/module_initialize_real.F WITHOUT OMP ; fi ; \ mpif90 -o ../dyn_em/module_initialize_real.o -c -O3 -w -Mfree -byteswapio -I../dyn_em -I../dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 ../dyn_em/module_initialize_real.f90 ; \ fi ( cd ../dyn_em ; make -i -r module_initialize_real.o ) make[2]: Entering directory /home/lim/WRF/WRFV3/dyn_em’
make[2]: module_initialize_real.o' is up to date. make[2]: Leaving directory /home/lim/WRF/WRFV3/dyn_em’
rm -f real_em.o
/lib/cpp -C -P -I/home/lim/WRF/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional real_em.F > real_em.bb
/home/lim/WRF/WRFV3/tools/standard.exe real_em.bb | /lib/cpp -C -P > real_em.f90
rm -f real_em.b real_em.bb
if fgrep -iq ‘!$OMP’ real_em.f90 ; then
if [ -n “” ] ; then echo COMPILING real_em.F WITH OMP ; fi ;
mpif90 -o real_em.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 real_em.f90 ;
else
if [ -n “” ] ; then echo COMPILING real_em.F WITHOUT OMP ; fi ;
mpif90 -o real_em.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 real_em.f90 ;
fi
rm -f ndown_em.o
/lib/cpp -C -P -I/home/lim/WRF/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional ndown_em.F > ndown_em.bb
/home/lim/WRF/WRFV3/tools/standard.exe ndown_em.bb | /lib/cpp -C -P > ndown_em.f90
rm -f ndown_em.b ndown_em.bb
if fgrep -iq ‘!$OMP’ ndown_em.f90 ; then
if [ -n “” ] ; then echo COMPILING ndown_em.F WITH OMP ; fi ;
mpif90 -o ndown_em.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 ndown_em.f90 ;
else
if [ -n “” ] ; then echo COMPILING ndown_em.F WITHOUT OMP ; fi ;
mpif90 -o ndown_em.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 ndown_em.f90 ;
fi
rm -f nup_em.o
/lib/cpp -C -P -I/home/lim/WRF/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional nup_em.F > nup_em.bb
/home/lim/WRF/WRFV3/tools/standard.exe nup_em.bb | /lib/cpp -C -P > nup_em.f90
rm -f nup_em.b nup_em.bb
if fgrep -iq ‘!$OMP’ nup_em.f90 ; then
if [ -n “” ] ; then echo COMPILING nup_em.F WITH OMP ; fi ;
mpif90 -o nup_em.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 nup_em.f90 ;
else
if [ -n “” ] ; then echo COMPILING nup_em.F WITHOUT OMP ; fi ;
mpif90 -o nup_em.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 nup_em.f90 ;
fi
rm -f tc_em.o
/lib/cpp -C -P -I/home/lim/WRF/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional tc_em.F > tc_em.bb
/home/lim/WRF/WRFV3/tools/standard.exe tc_em.bb | /lib/cpp -C -P > tc_em.f90
rm -f tc_em.b tc_em.bb
if fgrep -iq ‘!$OMP’ tc_em.f90 ; then
if [ -n “” ] ; then echo COMPILING tc_em.F WITH OMP ; fi ;
mpif90 -o tc_em.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 tc_em.f90 ;
else
if [ -n “” ] ; then echo COMPILING tc_em.F WITHOUT OMP ; fi ;
mpif90 -o tc_em.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/esmf_time_f90 -I/home/lim/WRF/WRFV3/main -I/home/lim/WRF/WRFV3/external/io_netcdf -I/home/lim/WRF/WRFV3/external/io_int -I/home/lim/WRF/WRFV3/frame -I/home/lim/WRF/WRFV3/share -I/home/lim/WRF/WRFV3/phys -I/home/lim/WRF/WRFV3/chem -I/home/lim/WRF/WRFV3/inc -I/opt/lib.pgi/netcdf4/include -r4 -i4 tc_em.f90 ;
fi
ranlib libwrflib.a
mpif90 -o real.exe -O3 -w -Mfree -byteswapio -L/opt/mpi/mvapich/pgi/lib -lmpich -lfmpich real_em.o …/dyn_em/module_initialize_real.o libwrflib.a /home/lim/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/lim/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/lim/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/lim/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/lim/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/lim/WRF/WRFV3/frame/module_internal_header_util.o /home/lim/WRF/WRFV3/frame/pack_utils.o -L/home/lim/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/opt/lib.pgi/netcdf4/lib -lnetcdff -lnetcdf
libwrflib.a(module_wps_io_arw.o): In function module_wps_io_arw_read_wps_': /home/lim/WRF/WRFV3/dyn_em/./module_wps_io_arw.f90:271: undefined reference to mpi_file_open_’
/home/lim/WRF/WRFV3/dyn_em/./module_wps_io_arw.f90:284: undefined reference to mpi_file_read_at_' /home/lim/WRF/WRFV3/dyn_em/./module_wps_io_arw.f90:298: undefined reference to mpi_file_read_at_’
/home/lim/WRF/WRFV3/dyn_em/./module_wps_io_arw.f90:306: undefined reference to mpi_file_read_at_' /home/lim/WRF/WRFV3/dyn_em/./module_wps_io_arw.f90:313: undefined reference to mpi_file_read_at_’
/home/lim/WRF/WRFV3/dyn_em/./module_wps_io_arw.f90:320: undefined reference to mpi_file_read_at_' libwrflib.a(module_wps_io_arw.o):/home/lim/WRF/WRFV3/dyn_em/./module_wps_io_arw.f90:328: more undefined references to mpi_file_read_at_’ follow
libwrflib.a(module_wps_io_arw.o): In function module_wps_io_arw_read_wps_': /home/lim/WRF/WRFV3/dyn_em/./module_wps_io_arw.f90:1226: undefined reference to mpi_file_close_’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUS_IGNORE' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_TRUE’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_MPI_BOTTOM' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_FALSE’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUSES_IGNORE' make[1]: [em_real] Error 2 (ignored) mpif90 -o ndown.exe -O3 -w -Mfree -byteswapio -L/opt/mpi/mvapich/pgi/lib -lmpich -lfmpich ndown_em.o ../dyn_em/module_initialize_real.o libwrflib.a /home/lim/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/lim/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/lim/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/lim/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/lim/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/lim/WRF/WRFV3/frame/module_internal_header_util.o /home/lim/WRF/WRFV3/frame/pack_utils.o -L/home/lim/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/opt/lib.pgi/netcdf4/lib -lnetcdff -lnetcdf /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUS_IGNORE’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_TRUE' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_MPI_BOTTOM’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_FALSE' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUSES_IGNORE’
make[1]: [em_real] Error 2 (ignored)
mpif90 -o nup.exe -O3 -w -Mfree -byteswapio -L/opt/mpi/mvapich/pgi/lib -lmpich -lfmpich nup_em.o …/dyn_em/module_initialize_real.o libwrflib.a /home/lim/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/lim/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/lim/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/lim/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/lim/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/lim/WRF/WRFV3/frame/module_internal_header_util.o /home/lim/WRF/WRFV3/frame/pack_utils.o -L/home/lim/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/opt/lib.pgi/netcdf4/lib -lnetcdff -lnetcdf
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUS_IGNORE' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_TRUE’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_MPI_BOTTOM' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_FALSE’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUSES_IGNORE' make[1]: [em_real] Error 2 (ignored) mpif90 -o tc.exe -O3 -w -Mfree -byteswapio -L/opt/mpi/mvapich/pgi/lib -lmpich -lfmpich tc_em.o ../dyn_em/module_initialize_real.o libwrflib.a /home/lim/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/lim/WRF/WRFV3/external/io_grib1/libio_grib1.a /home/lim/WRF/WRFV3/external/io_grib_share/libio_grib_share.a /home/lim/WRF/WRFV3/external/io_int/libwrfio_int.a -L/home/lim/WRF/WRFV3/external/esmf_time_f90 -lesmf_time /home/lim/WRF/WRFV3/external/RSL_LITE/librsl_lite.a /home/lim/WRF/WRFV3/frame/module_internal_header_util.o /home/lim/WRF/WRFV3/frame/pack_utils.o -L/home/lim/WRF/WRFV3/external/io_netcdf -lwrfio_nf -L/opt/lib.pgi/netcdf4/lib -lnetcdff -lnetcdf /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUS_IGNORE’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_TRUE' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_MPI_BOTTOM’
/opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_FALSE' /opt/mpi/mvapich/pgi/lib/shared/libfmpich.so: undefined reference to MPIR_F_STATUSES_IGNORE’
make[1]: [em_real] Error 2 (ignored)
make[1]: Leaving directory `/home/lim/WRF/WRFV3/main’

Anyway, when I added “-L/opt/mpi/mvapich/pgi/lib -lmpich -lfmpich” on LDFLAGS,

You should have to do this since the mpif90 script should add these libs. Anyway, try switching the order ( i.e. “-lfmpich -lmpich” ) to get the dependencies right. I doubt it will fix the “mpi_file…” references, but should fix the “MPIR…” references.

  • Mat