espressopp / espressopp

Main ESPResSo++ repository

Home Page:http://www.espresso-pp.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in compilation of E++-2.0.2

almeida85 opened this issue · comments

Hello,
I am compiling E++ 2.0.2 and I got this error:

Scanning dependencies of target MPI
[ 94%] Building C object contrib/mpi4py/CMakeFiles/MPI.dir/mpi4py-2.0.0/src/MPI.c.o
In file included from /home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/MPI.c:4:0:
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c: In function '__pyx_f_6mpi4py_3MPI_del_Datatype':
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c:14596:36: error: 'MPI_UB' undeclared (first use in this function)
   __pyx_t_1 = (((__pyx_v_ob[0]) == MPI_UB) != 0);
                                    ^
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c:14596:36: note: each undeclared identifier is reported only once for each function it appears in
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c:14609:36: error: 'MPI_LB' undeclared (first use in this function)
   __pyx_t_1 = (((__pyx_v_ob[0]) == MPI_LB) != 0);
                                    ^
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c: In function '__pyx_pf_6mpi4py_3MPI_8Datatype_44Free':
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c:62549:17: error: 'MPI_UB' undeclared (first use in this function)
     __pyx_v_p = MPI_UB;
                 ^
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c:62563:17: error: 'MPI_LB' undeclared (first use in this function)
     __pyx_v_p = MPI_LB;
                 ^
In file included from /home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/MPI.c:4:0:
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c: In function 'initMPI':
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c:157301:62: error: 'MPI_UB' undeclared (first use in this function)
   __pyx_t_3 = ((PyObject *)__pyx_f_6mpi4py_3MPI_new_Datatype(MPI_UB)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 868; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                              ^
/home/adi865j/Softwares/espressopp-2.0.2/contrib/mpi4py/mpi4py-2.0.0/src/mpi4py.MPI.c:157315:62: error: 'MPI_LB' undeclared (first use in this function)
   __pyx_t_3 = ((PyObject *)__pyx_f_6mpi4py_3MPI_new_Datatype(MPI_LB)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                              ^
make[2]: *** [contrib/mpi4py/CMakeFiles/MPI.dir/mpi4py-2.0.0/src/MPI.c.o] Error 1
make[1]: *** [contrib/mpi4py/CMakeFiles/MPI.dir/all] Error 2

Any thought?

Thanks in advance.

Solved. Newest OpenMPI 4.0.3 is not suitable for E++ 2.0.2. I installed an old version and it worked (1.10)