Re: error: ‘MPI_OFFSET’
Latham, Robert J.
robl at mcs.anl.gov
Tue Sep 25 09:48:14 CDT 2018
On Tue, 2018-09-25 at 10:28 +0200, Zeinab Salah wrote:
> Hello,
> Please, Could you help me?
> when I try to install pnetcdf-1.7.0 with openmpi-1.2.5, I get this
> error, the config.log is attached.
> The error message:
That's a very old version of openmpi! It was released December 2007
and I guess is missing some MPI-2.2 features.
for the sake of compatibility, pnetcdf should detect this at configure
time and do something clever.
For the sake of your sanity (because there are a decade of bug fixes
and performance improvements) I would strongly encourage you to upgrade
your MPI implementation.
==rob
>
> make[1]: Entering directory
> `/home/wrf/CHIMERE/packages_chimere/parallel-netcdf-1.7.0/test'
> make -w -C common
> make[2]: Entering directory
> `/home/wrf/CHIMERE/packages_chimere/parallel-netcdf-
> 1.7.0/test/common'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/home/wrf/CHIMERE/packages_chimere/parallel-netcdf-
> 1.7.0/test/common'
> make -w -C nc_test
> make[2]: Entering directory
> `/home/wrf/CHIMERE/packages_chimere/parallel-netcdf-
> 1.7.0/test/nc_test'
> /home/wrf/CHIMERE/chimere_lib/openmpi/bin/mpicc -O -m64
> -mcmodel=medium -I../../src/lib -I. -I./../common
> -DHAVE_CONFIG_H -c t_nc.c
> t_nc.c: In function ‘main’:
> t_nc.c:649:48: error: ‘MPI_OFFSET’ undeclared (first use in this
> function)
> MPI_Reduce(&malloc_size, &sum_size, 1, MPI_OFFSET, MPI_SUM,
> 0, MPI_COMM_WORLD);
> ^
> t_nc.c:649:48: note: each undeclared identifier is reported only once
> for each function it appears in
> make[2]: *** [t_nc.o] Error 1
> make[2]: Leaving directory
> `/home/wrf/CHIMERE/packages_chimere/parallel-netcdf-
> 1.7.0/test/nc_test'
> make[1]: *** [nc_test] Error 2
> make[1]: Leaving directory
> `/home/wrf/CHIMERE/packages_chimere/parallel-netcdf-1.7.0/test'
> make: *** [tests-test] Error 2
>
> installation commands:
>
> tar -zxvf parallel-netcdf-1.7.0.tar.gz
> cd parallel-netcdf-1.7.0/
> export CFLAGS='-O -m64 -mcmodel=medium'
> export CXXFLAGS='-O -m64 -mcmodel=medium'
> export FCLAGS='-O -g -m64 -mcmodel=medium'
> export LDFLAGS='-O -g -mcmodel=medium'
> export MPICC=/home/wrf/CHIMERE/chimere_lib/openmpi/bin/mpicc
> export MPICXX=/home/wrf/CHIMERE/chimere_lib/openmpi/bin/mpicxx
> export MPIF77=/home/wrf/CHIMERE/chimere_lib/openmpi/bin/mpif77
> export MPIF90=/home/wrf/CHIMERE/chimere_lib/openmpi/bin/mpif90
> ./configure --prefix=/home/wrf/CHIMERE/chimere_lib/pnetcdf
> make
> make tests
>
> Best regards,
> Zeinab
>
>
>
>
>
>
More information about the parallel-netcdf
mailing list