petsc openmpi check fail
When trying to compile getdp with the same openmpi configuration as petsc, the configuration check will fail due to some minor differences. Maybe this check is too stringent?
In file included from /home/yl398/bin/petsc-v3.16.0/include/petscbag.h:4,
from /home/yl398/bin/petsc-v3.16.0/include/petsc.h:5,
from /home/yl398/bin/getdp-3.4.0/Common/Message.cpp:36:
/home/yl398/bin/petsc-v3.16.0/include/petscsys.h:241:6: error: #error "PETSc was configured with one OpenMPI mpi.h version but now appears to be compiling using a different OpenMPI mpi.h version"
241 | # error "PETSc was configured with one OpenMPI mpi.h version but now appears to be compiling using a different OpenMPI mpi.h version"
| ^~~~~
In file included from /usr/include/python2.7/pyconfig.h:6,
from /usr/include/python2.7/Python.h:8,
from /home/yl398/bin/getdp-3.4.0/Common/Message.cpp:60:
/usr/include/python2.7/pyconfig-64.h:1191: warning: "_POSIX_C_SOURCE" redefined
1191 | #define _POSIX_C_SOURCE 200112L
|
In file included from /usr/local/software/archive/linux-scientific7-x86_64/gcc-9/gcc-9.3.0-qszxcci5frtw4aul3m44oarpvxzyrgpp/include/c++/9.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/software/archive/linux-scientific7-x86_64/gcc-9/gcc-9.3.0-qszxcci5frtw4aul3m44oarpvxzyrgpp/include/c++/9.3.0/x86_64-pc-linux-gnu/bits/c++config.h:524,
from /usr/local/software/archive/linux-scientific7-x86_64/gcc-9/gcc-9.3.0-qszxcci5frtw4aul3m44oarpvxzyrgpp/include/c++/9.3.0/clocale:41,
from /home/yl398/bin/getdp-3.4.0/Common/Message.cpp:6:
/usr/include/features.h:168: note: this is the location of the previous definition
168 | # define _POSIX_C_SOURCE 200809L
|
In file included from /usr/include/python2.7/pyconfig.h:6,
from /usr/include/python2.7/Python.h:8,
from /home/yl398/bin/getdp-3.4.0/Common/Message.cpp:60:
/usr/include/python2.7/pyconfig-64.h:1213: warning: "_XOPEN_SOURCE" redefined
1213 | #define _XOPEN_SOURCE 600
|
In file included from /usr/local/software/archive/linux-scientific7-x86_64/gcc-9/gcc-9.3.0-qszxcci5frtw4aul3m44oarpvxzyrgpp/include/c++/9.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/software/archive/linux-scientific7-x86_64/gcc-9/gcc-9.3.0-qszxcci5frtw4aul3m44oarpvxzyrgpp/include/c++/9.3.0/x86_64-pc-linux-gnu/bits/c++config.h:524,
from /usr/local/software/archive/linux-scientific7-x86_64/gcc-9/gcc-9.3.0-qszxcci5frtw4aul3m44oarpvxzyrgpp/include/c++/9.3.0/clocale:41,
from /home/yl398/bin/getdp-3.4.0/Common/Message.cpp:6:
/usr/include/features.h:170: note: this is the location of the previous definition
170 | # define _XOPEN_SOURCE 700
|
make[2]: *** [CMakeFiles/getdp.dir/Common/Message.cpp.o] Error 1
make[1]: *** [CMakeFiles/getdp.dir/all] Error 2
make: *** [all] Error 2