Hello Jan, thanks for the pointer. I am setting
"-DMPI_{C,CXX,Fortran_{LIBRARIES,INCLUDE_PATH}" and I don't get MPI
warnings anymore, but instead I see a bulk of warnings right before
"make install" like this:
WARNING: target "demo_waveguide" requests linking to directory
"/home/juanlu/miniconda/envs/_build/lib". Targets may link only to
libraries. CMake is dropping the item.
The path that appears is the one I used for
-DMPI_{C,CXX,Fortran}_LIBRARIES. Is there any other way?
Juan Luis
On 2015-10-16 11:39, Jan Blechta wrote:
DOLFIN build system is not convinced MPI is available, so that
MPI_COMM_FOO are redefined by ifdefs in dolfin/common/MPI.h which
conflicts with MPI_COMMs from mpi.h. Check the CMake warnings about
missing MPI components and try helping to CMake by setting some
variables (see <build_dir>/CMakeCache.txt and
cmake/modules/FindMPI.cmake to figure out how could you help to CMake).
Jan
On Fri, 16 Oct 2015 11:18:26 +0200
Juan Luis Cano<[email protected]> wrote:
Hello all,
I'm trying to rebuild DOLFIN 1.6.0 using my conda recipes, and all of
a sudden I am getting a lot of MPI warnings and a final error at 96 %:
[ 96%] Building CXX object
dolfin/swig/modules/mesh/CMakeFiles/_mesh.dir/modulePYTHON_wrap.cxx.o
/home/juanlu/miniconda/conda-bld/work/dolfin-1.6.0/build/dolfin/swig/modules/mesh/modulePYTHON_wrap.cxx:
In function ‘int SWIG_AsVal_MPI_Comm(PyObject*, MPI_Comm*)’:
/home/juanlu/miniconda/conda-bld/work/dolfin-1.6.0/build/dolfin/swig/modules/mesh/modulePYTHON_wrap.cxx:4814:43:
error: ‘SWIGTYPE_p_MPI_Comm’ was not declared in this scope
int res = SWIG_ConvertPtr(input,&argp,SWIGTYPE_p_MPI_Comm, 0);
^
/home/juanlu/miniconda/conda-bld/work/dolfin-1.6.0/build/dolfin/swig/modules/mesh/modulePYTHON_wrap.cxx:2992:37:
note: in definition of macro ‘SWIG_ConvertPtr’
SWIG_convert_ptr(obj, pptr, type, flags)
^
make[2]: ***
[dolfin/swig/modules/mesh/CMakeFiles/_mesh.dir/modulePYTHON_wrap.cxx.o]
Error 1
make[1]: *** [dolfin/swig/modules/mesh/CMakeFiles/_mesh.dir/all]
Error 2
I attached the complete compilation log at[1]. When googling this
error I stumbled upon a fenics-support thread recommending to update
petsc[2], but I get the same errors with the latest version. The
errors are gone if I compile without PETSc support.
Any hint on what am I doing wrong?
Best,
Juan Luis Cano
[1]:https://gist.github.com/Juanlu001/d406e1510bb1849bf5b6
[2]:
http://fenicsproject.org/pipermail/fenics-support/2014-December/001028.html
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support