Can't build on macOs with Python bindings and MPI
Hello, I'm trying to update the paraview macports package, but I'm not able to build if I enable MPI and Python. I tested with mpich
+ python3.6
and python3.7
without success. The problem is that the build does not provide any useful information in the output. If I disable Python, it builds correctly.
macOS: 10.14.5
Xcode 10.2.1
Build version 10E1001
This is the cmake command issued by macports
:
/opt/local/bin/cmake \
-DCMAKE_INSTALL_PREFIX='/opt/local' \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER="$CC" \
-DCMAKE_COLOR_MAKEFILE=ON \
-DCMAKE_CXX_COMPILER="$CXX" \
-DCMAKE_FIND_FRAMEWORK=LAST \
-DCMAKE_MAKE_PROGRAM=/usr/bin/make \
-DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules \
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local;/usr" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_POLICY_DEFAULT_CMP0025=NEW \
-Wno-dev \
-DBUILD_TESTING:BOOL=OFF \
-DMACOSX_APP_INSTALL_PREFIX=/opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/destroot/Applications/MacPorts \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DPARAVIEW_QT_VERSION=5 \
-DQt5_DIR=/opt/local/libexec/qt5 \
-DQT_HELP_GENERATOR=/opt/local/libexec/qt5/bin/qhelpgenerator \
-DQT_XMLPATTERNS_EXECUTABLE=/opt/local/libexec/qt5/bin/xmlpatterns \
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
-DVTK_USE_SYSTEM_JPEG:BOOL=ON \
-DVTK_USE_SYSTEM_LIBXML2:BOOL=ON \
-DVTK_USE_SYSTEM_NETCDF:BOOL=ON \
-DVTK_USE_SYSTEM_TIFF:BOOL=ON \
-DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
-DPYTHON_EXECUTABLE=/opt/local/bin/python3.6 \
-DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/3.6/Headers/ \
-DPYTHON_LIBRARY=/opt/local/lib/libpython3.6.dylib \
-DVTK_USE_SYSTEM_MPI4PY:BOOL=ON \
-DPARAVIEW_ENABLE_FFMPEG:BOOL=ON \
-DPARAVIEW_ENABLE_XDMF3:BOOL=ON \
-DVTK_USE_SYSTEM_HDF5:BOOL=ON \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_OSX_ARCHITECTURES="x86_64" \
-DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" \
-DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk" \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-DCMAKE_C_COMPILER=/usr/bin/clang \
-DPARAVIEW_USE_MPI:BOOL=ON \
-DMPI_C_COMPILER=mpicc-mpich-mp \
-DMPI_CXX_COMPILER=mpicxx-mpich-mp \
-DMPIEXEC=mpiexec-mpich-mp \
-DMPI_Fortran_COMPILER=mpif90-mpich-mp \
/opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/ParaView-v5.6.1
This is the error:
:info:build [ 7%] Python Wrapping - generating vtkInformationIntegerKeyPython.cxx
:info:build [ 7%] Python Wrapping - generating vtkInformationIntegerPointerKeyPython.cxx
:info:build cd /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python && ../../../bin/vtkWrapPython-pv5.6 @/opt/local/var/macpor
ts/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python/vtkCommonCorePython.Release.args -o /opt/local/var/macports/build/_Users_rubendibattista_git_m
acports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python/vtkInformationIntegerKeyPython.cxx /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paravie
w/work/ParaView-v5.6.1/VTK/Common/Core/vtkInformationIntegerKey.h
:info:build cd /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python && ../../../bin/vtkWrapPython-pv5.6 @/opt/local/var/macpor
ts/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python/vtkCommonCorePython.Release.args -o /opt/local/var/macports/build/_Users_rubendibattista_git_m
acports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python/vtkInformationIntegerPointerKeyPython.cxx /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/
paraview/work/ParaView-v5.6.1/VTK/Common/Core/vtkInformationIntegerPointerKey.h
:info:build [ 7%] Python Wrapping - generating vtkInformationIntegerVectorKeyPython.cxx
:info:build cd /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python && ../../../bin/vtkWrapPython-pv5.6 @/opt/local/var/macpor
ts/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python/vtkCommonCorePython.Release.args -o /opt/local/var/macports/build/_Users_rubendibattista_git_m
acports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python/vtkInformationIntegerVectorKeyPython.cxx /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/p
araview/work/ParaView-v5.6.1/VTK/Common/Core/vtkInformationIntegerVectorKey.h
:info:build [ 7%] Python Wrapping - generating vtkInformationIteratorPython.cxx
:info:build cd /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python && ../../../bin/vtkWrapPython-pv5.6 @/opt/local/var/macpor
ts/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python/vtkCommonCorePython.Release.args -o /opt/local/var/macports/build/_Users_rubendibattista_git_m
acports-ports_science_paraview/paraview/work/build/VTK/Wrapping/Python/vtkInformationIteratorPython.cxx /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/
work/ParaView-v5.6.1/VTK/Common/Core/vtkInformationIterator.h
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build'
:info:build make[1]: *** [VTK/Utilities/PythonInterpreter/CMakeFiles/vtkPythonInterpreter.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
I'm attaching the full log: main.log.gz
Edited by Ruben Di Battista