[Wrf-users] WRF Compilation Error

Andy Porter andrew.porter at stfc.ac.uk
Tue Aug 9 09:42:09 MDT 2011


Hello,
>
> I'm having an issue compiling WRF V3.1.1 with the Intel compilers using a multi-processor (dmpar) build.  NCAR Graphics (6.0.0) and NetCDF (4.1.3) are also built with the Intel compilers. The configure.wrf file contents (minus comments) and a list of the environmental variables are shown at the end of this message.  The following is the first of several warning/undefined reference messages:
>
>
> ifort -w -ftz -align all -fno-alias -fp-model precise  -FR -convert big_endian -c  -I/usr/local/include -I../ioapi_share diffwrf.f
> diffwrf.f(1629): (col. 7) remark: LOOP WAS VECTORIZED.
> diffwrf.f(1630): (col. 7) remark: LOOP WAS VECTORIZED.
> diffwrf.f(1709): (col. 7) remark: LOOP WAS VECTORIZED.
> diffwrf.f(1710): (col. 7) remark: LOOP WAS VECTORIZED.
> diffwrf.f(1711): (col. 7) remark: LOOP WAS VECTORIZED.
> diffwrf.f(1712): (col. 7) remark: LOOP WAS VECTORIZED.
> diffwrf io_netcdf is being built now.
> /usr/local/intel/11.0/084/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail
> wrf_io.o: In function `ext_ncd_get_var_info_':
> wrf_io.f:(.text+0x1ef): undefined reference to `nf_inq_varid_'
> wrf_io.f:(.text+0x740): undefined reference to `nf_inq_vartype_'
> wrf_io.f:(.text+0x883): undefined reference to `nf_get_att_int_'
> wrf_io.f:(.text+0x1158): undefined reference to `nf_get_att_text_'
> wrf_io.f:(.text+0x142e): undefined reference to `nf_inq_vardimid_'
> wrf_io.f:(.text+0x1595): undefined reference to `nf_inq_dimlen_'
>
>
> I'm not certain if this is an issue with NetCDF, the shared object, or what the deal with feupdateenv is about.  I have successfully built WRF and WPS on this system before, but this is the first time I have tried it with everything compiled with icc and ifort.  Any suggestions would be much appreciated.
>
That looks like either netcdf has not been built with Fortran support or 
there's an issue with how the compiler has named its objects. I've not 
had trouble with the Intel compiler and the latter issue so I suspect 
the former - I think the configure flag you want for netcdf is --enable-f90.

HTH,

Andy.

-- 
Dr. Andrew Porter
Computational Scientist
Advanced Research Computing Group
Computational Science and Engineering Dept.
STFC Daresbury Laboratory
Keckwick Lane
Daresbury
WA4 4AD
Tel. : +44 (0)1925 603607



More information about the Wrf-users mailing list