Building errors relating to undefined reference of 'nfmpi_*'

Rob Latham robl at mcs.anl.gov
Thu May 30 11:39:09 CDT 2013


On Thu, May 30, 2013 at 09:43:07AM -0500, Wei-keng Liao wrote:
> Hi, Li
> 
> It looks like the fortran part of PnetCDF failed to build.
> Could you send us the standard output from the screen when you run "make" command?
> You can do the following command and send us the file "make.output".

Actually, it's more annoying than that:  it's the difference between
the "mpi fortran" compiler and the "serial fortran" compiler.

In config.log, some fortran tests were run, and since configure found
a serial fotran compiler "f77", it detected the symbol mangling
convention to be this:

configure:5540: result: sub_a__

(double underscore)

but these programs are built with mpiifort.  that compiler clearly has
the mangling convention "sub_a_" (single underscore)

Re-run configure, but set FC to ifort.  See README.ifc_linux for an
(old) build recipe and let us know if we need to update it. 

You ran configure like this: 
./configure --prefix=/home/wangbin/tools/netcdf/pnetcdf/1.3.1 \
--enable-fortran --enable-mpi-io-test --disable-debug \
--disable-dependency-tracking \
	--with-mpi=/apps/intel/impi/4.0.2.003/intel64/ \
	MPIF77=/apps/intel/impi/4.0.2.003/intel64/bin/mpiifort \ 
	MPIF90=/apps/intel/impi/4.0.2.003/intel64/bin/mpiifort 

Just add FC and F77 and F90 values pointing to ifort. 

==rob

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA


More information about the parallel-netcdf mailing list