error: ‘MPI_OFFSET’

Zeinab Salah zeinabsalah at gmail.com
Tue Sep 25 03:28:59 CDT 2018


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:

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20180925/f5cb2eda/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 159339 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20180925/f5cb2eda/attachment-0001.bin>


More information about the parallel-netcdf mailing list