<div dir="ltr"><div><div>Hi Gena,<br><br></div>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:<br><br></div><span style="font-family:monospace,monospace">CC=icc CXX=icpc FC=ifort \<br>cmake \<br>  -DMPI_C_COMPILER=mpiicc \<br>  -DMPI_CXX_COMPILER=mpiicpc \<br>  -DMPI_Fortran_COMPILER=mpiifort \<br>  <rest_of_cmake options></span><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">- Chuck<br></div></div></div>
<br><div class="gmail_quote">On Fri, Feb 19, 2016 at 5:13 AM, Gena Bug <span dir="ltr"><<a href="mailto:archaerolog@mail.ru" target="_blank">archaerolog@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I was trying to build pv5 with mpi and osmesa and couldn't pass cmake step. I use this command:<br>
<br>
~/bin/cmake/bin/cmake -G "Unix Makefiles" \<br>
-DBUILD_TESTING=OFF \<br>
-DPARAVIEW_USE_MPI=ON \<br>
-DPYTHON_LIBRARY="/home/gennadiy/bin/python/lib/libpython2.7.a" \<br>
-DPYTHON_INCLUDE_DIR="/home/gennadiy/bin/python/include/python2.7" \<br>
-DPYTHON_EXECUTABLE="/home/gennadiy/bin/python/bin/python" \<br>
-DPARAVIEW_ENABLE_PYTHON=ON \<br>
-DPARAVIEW_BUILD_QT_GUI=OFF \<br>
-DVTK_USE_X=OFF \<br>
-DOPENGL_INCLUDE_DIR="/home/gennadiy/bin/mesa/include" \<br>
-DOPENGL_gl_LIBRARY="/home/gennadiy/bin/mesa/lib/libOSMesa.so" \<br>
-DOPENGL_glu_LIBRARY="" \<br>
-DVTK_OPENGL_HAS_OSMESA=ON \<br>
-DOSMESA_INCLUDE_DIR="/home/gennadiy/bin/mesa/include" \<br>
-DOSMESA_LIBRARY="/home/gennadiy/bin/mesa/lib/libOSMesa.so" \<br>
-DCMAKE_INSTALL_PREFIX="/home/gennadiy/bin/paraview" \<br>
-DCMAKE_CXX_COMPILER="mpiicpc" \<br>
-DCMAKE_C_COMPILER="mpiicc" \<br>
-DCMAKE_Fortran_COMPILER="mpiifort" \<br>
-DCMAKE_BUILD_TYPE=RELEASE \<br>
-DCMAKE_CXX_FLAGS_RELEASE=" -O2 -DNDEBUG " \<br>
-DCMAKE_C_FLAGS_RELEASE=" -O2 -DNDEBUG " \<br>
<path><br>
<br>
(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.)<br>
<br>
and at the end of its output I see this:<br>
{{{<br>
...<br>
-- Configuring incomplete, errors occurred!<br>
See also "/home/gennadiy/bin/pv.build/CMakeFiles/CMakeOutput.log".<br>
See also "/home/gennadiy/bin/pv.build/CMakeFiles/CMakeError.log".<br>
}}}<br>
<br>
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.<br>
<br>
Stdout also looks normal except messages about sizeof types:<br>
{{{<br>
...<br>
-- HDF5: Performing Other Test HAVE_STAT64_STRUCT - Success<br>
-- Looking for fstat64<br>
-- Looking for fstat64 - found<br>
-- Looking for stat64<br>
-- Looking for stat64 - found<br>
-- Check size of char<br>
CMake Error at /home/gennadiy/bin/cmake/share/cmake-3.4/Modules/CheckTypeSize.cmake:124 (try_compile):<br>
  Cannot copy output executable<br>
<br>
    ''<br>
<br>
  to destination specified by COPY_FILE:<br>
<br>
<br>
'/home/gennadiy/bin/pv.build/CMakeFiles/CheckTypeSize/H5_SIZEOF_CHAR.bin'<br>
<br>
  Unable to find the executable at any of:<br>
<br>
    /home/gennadiy/bin/pv.build/CMakeFiles/CMakeTmp/cmTC_bf5e7<br>
    /home/gennadiy/bin/pv.build/CMakeFiles/CMakeTmp/Debug/cmTC_bf5e7<br>
    /home/gennadiy/bin/pv.build/CMakeFiles/CMakeTmp/Development/cmTC_bf5e7<br>
<br>
Call Stack (most recent call first):<br>
<br>
/home/gennadiy/bin/cmake/share/cmake-3.4/Modules/CheckTypeSize.cmake:249 (__check_type_size_impl)<br>
  VTK/ThirdParty/hdf5/vtkhdf5/config/cmake/ConfigureChecks.cmake:512 (CHECK_TYPE_SIZE)<br>
  VTK/ThirdParty/hdf5/vtkhdf5/config/cmake/ConfigureChecks.cmake:519 (H5_CHECK_TYPE_SIZE)<br>
  VTK/ThirdParty/hdf5/vtkhdf5/CMakeLists.txt:276 (include)<br>
...<br>
}}}<br>
<br>
Can anyone point me to a real problem?<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>