[Wrf-users] compiling wrfv3 with ifort and gcc

Preeti preeti at csa.iisc.ernet.in
Thu May 21 05:28:48 MDT 2009


Hi

Earlier, I have successfully ran WRF on a i686 machine running Ubuntu(hardy)
with gfortran 4.2.4 and gcc 4.2.4.
Now, I am trying to compile WRFV3.0.1 on a Linux Intel i686 machine with
dmpar option.
I added new option in arch/configure_new.defaults for ifort with gcc (since
I dont have icc), and the section looks like this

-------------------------------------------------------------------
DMPARALLEL      =       # 1
OMPCPP          =       # -D_OPENMP
OMP             =       # -openmp -fpp -auto
SFC             =       ifort
SCC             =       gcc
DM_FC           =       mpif90 -f90=$(SFC)
DM_CC           =       mpicc -cc=$(SCC)
FC              =       CONFIGURE_FC
CC              =       CONFIGURE_CC
LD              =       $(FC)
RWORDSIZE       =       CONFIGURE_RWORDSIZE
PROMOTION       =       -i4
ARCH_LOCAL      =       -DNONSTANDARD_SYSTEM
CFLAGS_LOCAL    =       -w -O3
LDFLAGS_LOCAL   =
CPLUSPLUSLIB    =
ESMF_LDFLAG     =       $(CPLUSPLUSLIB)
FCOPTIM         =       -O3
FCREDUCEDOPT    =       $(FCOPTIM)
FCNOOPT         =       -O0
FCDEBUG         =       # -g $(FCNOOPT) -traceback
FORMAT_FIXED    =       -FI
FORMAT_FREE     =       -FR
FCSUFFIX        =
BYTESWAPIO      =       -convert big_endian
FCBASEOPTS      =       -w -ftz -align all -fno-alias -fp-model precise
$(FCDEBUG) $(FORMAT_FREE) $(BYTESWAPIO)
MODULE_SRCH_FLAG =
TRADFLAG        =      -traditional
CPP             =      /lib/cpp -C -P
AR              =      arARFLAGS         =      ru
M4              =      m4
RANLIB          =      ranlib
CC_TOOLS        =      $(SCC)
-------------------------------------------------------------------


For 'configure' I gave the options -

13. x86_64 Linux, ifort compiler with gcc (dmpar)
and basic nesting.

For 'compile em_real', I got errors, following is part of the compile output
-

-------------------------------------------------------------------
/home2/preeti/wrf/WRFV3/external/esmf_time_f90/libesmf_time.a
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/RSL_LITE/librsl_lite.a
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/frame/module_internal_header_util.o
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/frame/pack_utils.o
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/io_netcdf/libwrfio_nf.a
-L/home2/preeti/bin/netcdf/lib -lnetcdf -lnetcdff
ifort: Command line warning: ignoring option '-fp'; no argument required
/usr/bin/ld.real: precise: No such file: No such file or directory
make[1]: [em_real] Error 1 (ignored)
mpif90 -f90=ifort -o ndown.exe  -O3 -w -ftz -align all -fno-alias -fp-model
precise  -FR -convert big_endian    ndown_em.o
../dyn_em/module_initialize_real.o libwrflib.a
-L/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/fftpack/fftpack5
-lfftpack -L/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/io_grib1
-lio_grib1 -L/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/io_grib_share
-lio_grib_share -L/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/io_int
-lwrfio_int
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/esmf_time_f90/libesmf_time.a
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/esmf_time_f90/libesmf_time.a
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/RSL_LITE/librsl_lite.a
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/frame/module_internal_header_util.o
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/frame/pack_utils.o
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/io_netcdf/libwrfio_nf.a
-L/home2/preeti/bin/netcdf/lib -lnetcdf -lnetcdff
ifort: Command line warning: ignoring option '-fp'; no argument required
/usr/bin/ld.real: precise: No such file: No such file or directory
make[1]: [em_real] Error 1 (ignored)
mpif90 -f90=ifort -o nup.exe  -O3 -w -ftz -align all -fno-alias -fp-model
precise  -FR -convert big_endian    nup_em.o
../dyn_em/module_initialize_real.o libwrflib.a
-L/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/fftpack/fftpack5
-lfftpack -L/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/io_grib1
-lio_grib1 -L/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/io_grib_share
-lio_grib_share -L/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/io_int
-lwrfio_int
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/esmf_time_f90/libesmf_time.a
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/esmf_time_f90/libesmf_time.a
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/RSL_LITE/librsl_lite.a
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/frame/module_internal_header_util.o
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/frame/pack_utils.o
/garl/garl-alpha1/home2/preeti/wrf/WRFV3/external/io_netcdf/libwrfio_nf.a
-L/home2/preeti/bin/netcdf/lib -lnetcdf -lnetcdff
ifort: Command line warning: ignoring option '-fp'; no argument required
/usr/bin/ld.real: precise: No such file: No such file or directory
make[1]: [em_real] Error 1 (ignored)
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory `/garl/garl-alpha1/home2/preeti/wrf/WRFV3/main'
( cd test/em_real ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
Compilation also gives many messages like these -

Invalid_sym_id in FCTOK 133068
Invalid_sym_id for PERIOD_BDY_EM_CHEM_SUB%GRID, 133068
Invalid_sym_id in CIRTOK, 132990
Invalid_sym_id for PERIOD_BDY_EM_CHEM_SUB%DOMAIN, 132990
Invalid_sym_id in FCTOK 133068
Invalid_sym_id for PERIOD_BDY_EM_CHEM_SUB%GRID, 133068
Invalid_sym_id in CIRTOK, 132990
Invalid_sym_id for PERIOD_BDY_EM_CHEM_SUB%DOMAIN, 132990
Invalid_sym_id in FCTOK 133068
-------------------------------------------------------------------


gcc version is gcc (GCC) 3.3.3
ifort version is 8.1

Can someone point to me the reason for this error.
Appreciate your help.


Thanks
Preeti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20090521/6b0e6913/attachment-0001.html 


More information about the Wrf-users mailing list