Pnetcdf compiling problem with OpenMpi on i386 Linux - MPI_File_sync

Robert Latham robl at mcs.anl.gov
Tue May 13 12:01:11 CDT 2008


On Tue, May 13, 2008 at 06:56:56PM +0200, Zbigniew Piotrowski wrote:
> As to the nm libmpi :
> 
> nm libmpi.so.0.0.0 |grep sync
> 0004e4b0 W MPI_File_sync
> 0004e4b0 T PMPI_File_sync
> 0007f400 B ompi_err_rma_sync
> 
> As to the config.log:
> 
> configure:12282: checking for library containing MPI_File_sync
> configure:12312: gcc -o conftest -g -O2   conftest.c  >&5
> /tmp/ccgd4wQR.o: In function `main':
> /tmp/parallel-netcdf-1.0.2/conftest.c:81: undefined reference to 
> `MPI_File_sync'
> collect2: ld returned 1 exit status

Configure should be using $MPICC to test for that library, not gcc (as
you can see, the compile line didn't bring in any additional necessry
libaries).

> Invoking configure without any options. I haven't built any other ROMIO 

You should probably be configuring pnetcdf with the --with-mpi= flag.
For example, I have openmpi installed in
${HOME}/work/soft/openmpi-SVN, so I'd invoke configure with
--with-mpi=${HOME}/work/soft/openmpi-SVN

==rob

-- 
Rob Latham
Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
Argonne National Lab, IL USA                 B29D F333 664A 4280 315B




More information about the parallel-netcdf mailing list