[Wrf-users] WRF + g95 + MPICH2 linking trouble

Jan Ploski Jan.Ploski at offis.de
Thu Nov 8 06:16:45 MST 2007


Hello,

I'm trying to compile WRFv2.2 using g95-0.91 in a 64-bit cluster running 
Scientific Linux 4. The following problem occurs during linking:

mpif90 -f90=g95 -o wrf.exe -O2  -Wno=101,139,155,158 
-fno-second-underscore -fendian=big -ffree-form    wrf.o libwrflib.a 
-L../external/io_netcdf -lwrfio_nf 
-L/opt/d-grid-users/ws/netcdf-3.6.2-g95/lib -lnetcdf 
-L../external/RSL_LITE -lrsl_lite -L../external/io_grib1 -lio_grib1 
-L../external/io_grib_share -lio_grib_share -L../external/io_int 
-lwrfio_int ../frame/module_internal_header_util.o ../frame/pack_utils.o 
-L../external/esmf_time_f90 -lesmf_time
libwrflib.a(module_io.o)(.data+0x68): undefined reference to 
`mpi_conversion_fn_null_'

The missing symbol is defined in libmpich, however with two trailing 
underscores, not one:

-bash-3.00$ nm -A /opt/mpich2-1.0.4/lib/libmpich.a|grep conversion
/opt/mpich2-1.0.4/lib/libmpich.a:register_datarepf.o:0000000000000000 T 
mpi_conversion_fn_null__

Does it mean that I have to recompile mpich2 with g95 or is there some 
workaround (given that it's easier for me to fiddle with g95 than with 
mpich2)?

Best regards,
Jan Ploski

--
Dipl.-Inform. (FH) Jan Ploski
OFFIS
Betriebliches Informationsmanagement
Escherweg 2  - 26121 Oldenburg - Germany
Fon: +49 441 9722 - 184 Fax: +49 441 9722 - 202
E-Mail: Jan.Ploski at offis.de - URL: http://www.offis.de



More information about the Wrf-users mailing list