[Paraview] can't cmake pv5

Chuck Atkins chuck.atkins at kitware.com
Fri Feb 19 11:42:26 EST 2016


Hi Gena,

Sometime oddities like this show up when different compiler wrappers are
being used.  In this case, your using the Intel MPI wrappers for all
compilations.  Try bypassing them for the main compilation and only using
them for MPI detection:

CC=icc CXX=icpc FC=ifort \
cmake \
  -DMPI_C_COMPILER=mpiicc \
  -DMPI_CXX_COMPILER=mpiicpc \
  -DMPI_Fortran_COMPILER=mpiifort \
  <rest_of_cmake options>

- Chuck

On Fri, Feb 19, 2016 at 5:13 AM, Gena Bug <archaerolog at mail.ru> wrote:

> Hi!
>
> I was trying to build pv5 with mpi and osmesa and couldn't pass cmake
> step. I use this command:
>
> ~/bin/cmake/bin/cmake -G "Unix Makefiles" \
> -DBUILD_TESTING=OFF \
> -DPARAVIEW_USE_MPI=ON \
> -DPYTHON_LIBRARY="/home/gennadiy/bin/python/lib/libpython2.7.a" \
> -DPYTHON_INCLUDE_DIR="/home/gennadiy/bin/python/include/python2.7" \
> -DPYTHON_EXECUTABLE="/home/gennadiy/bin/python/bin/python" \
> -DPARAVIEW_ENABLE_PYTHON=ON \
> -DPARAVIEW_BUILD_QT_GUI=OFF \
> -DVTK_USE_X=OFF \
> -DOPENGL_INCLUDE_DIR="/home/gennadiy/bin/mesa/include" \
> -DOPENGL_gl_LIBRARY="/home/gennadiy/bin/mesa/lib/libOSMesa.so" \
> -DOPENGL_glu_LIBRARY="" \
> -DVTK_OPENGL_HAS_OSMESA=ON \
> -DOSMESA_INCLUDE_DIR="/home/gennadiy/bin/mesa/include" \
> -DOSMESA_LIBRARY="/home/gennadiy/bin/mesa/lib/libOSMesa.so" \
> -DCMAKE_INSTALL_PREFIX="/home/gennadiy/bin/paraview" \
> -DCMAKE_CXX_COMPILER="mpiicpc" \
> -DCMAKE_C_COMPILER="mpiicc" \
> -DCMAKE_Fortran_COMPILER="mpiifort" \
> -DCMAKE_BUILD_TYPE=RELEASE \
> -DCMAKE_CXX_FLAGS_RELEASE=" -O2 -DNDEBUG " \
> -DCMAKE_C_FLAGS_RELEASE=" -O2 -DNDEBUG " \
> <path>
>
> (cmake 3.4.1, 3.4.3 and 3.5rc3 downloaded from the site, custom python
> 2.7.11 and mesa 11.1.2 were used.)
>
> and at the end of its output I see this:
> {{{
> ...
> -- Configuring incomplete, errors occurred!
> See also "/home/gennadiy/bin/pv.build/CMakeFiles/CMakeOutput.log".
> See also "/home/gennadiy/bin/pv.build/CMakeFiles/CMakeError.log".
> }}}
>
> Both log-files contain a lot of information however I can't figure out the
> real problem -- both contain the output from failed tests and nothing about
> why configuration failed.
>
> Stdout also looks normal except messages about sizeof types:
> {{{
> ...
> -- HDF5: Performing Other Test HAVE_STAT64_STRUCT - Success
> -- Looking for fstat64
> -- Looking for fstat64 - found
> -- Looking for stat64
> -- Looking for stat64 - found
> -- Check size of char
> CMake Error at
> /home/gennadiy/bin/cmake/share/cmake-3.4/Modules/CheckTypeSize.cmake:124
> (try_compile):
>   Cannot copy output executable
>
>     ''
>
>   to destination specified by COPY_FILE:
>
>
> '/home/gennadiy/bin/pv.build/CMakeFiles/CheckTypeSize/H5_SIZEOF_CHAR.bin'
>
>   Unable to find the executable at any of:
>
>     /home/gennadiy/bin/pv.build/CMakeFiles/CMakeTmp/cmTC_bf5e7
>     /home/gennadiy/bin/pv.build/CMakeFiles/CMakeTmp/Debug/cmTC_bf5e7
>     /home/gennadiy/bin/pv.build/CMakeFiles/CMakeTmp/Development/cmTC_bf5e7
>
> Call Stack (most recent call first):
>
> /home/gennadiy/bin/cmake/share/cmake-3.4/Modules/CheckTypeSize.cmake:249
> (__check_type_size_impl)
>   VTK/ThirdParty/hdf5/vtkhdf5/config/cmake/ConfigureChecks.cmake:512
> (CHECK_TYPE_SIZE)
>   VTK/ThirdParty/hdf5/vtkhdf5/config/cmake/ConfigureChecks.cmake:519
> (H5_CHECK_TYPE_SIZE)
>   VTK/ThirdParty/hdf5/vtkhdf5/CMakeLists.txt:276 (include)
> ...
> }}}
>
> Can anyone point me to a real problem?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160219/449d7bed/attachment.html>


More information about the ParaView mailing list