<div>Hi Paul,</div><div><br></div>Have you turned MPI On then Off and then back On again? I&#39;ve seen it get confused when this happens. Can you try a fresh (delete your build tree) build of 3.10.1 and turn everything on at once?<div>

<br><div class="gmail_quote">On Fri, Aug 5, 2011 at 8:15 AM, Paul Melis <span dir="ltr">&lt;<a href="mailto:paul.melis@sara.nl">paul.melis@sara.nl</a>&gt;</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&#39;m building PV 3.8.1 and PV 3.10.1 on exactly the same Debian 6.0<br>
system (64-bit) system using the exact same CMAKE configuration lines:<br>
<br>
#!/bin/sh<br>
cmake \<br>
    -DCMAKE_BUILD_TYPE=Release \<br>
    -DMANTA_BUILD=$HOME/c/manta-2439-build \<br>
    -DMANTA_SOURCE=$HOME/c/manta-2439 \<br>
    -DPARAVIEW_BUILD_PLUGIN_Manta=ON \<br>
    -DPARAVIEW_ENABLE_PYTHON=ON \<br>
    -DPARAVIEW_USE_MPI=ON \<br>
    &lt;source-dir&gt;<br>
<br>
The 3.8.1 build succeeds, but the 3.10.1 buid fails because mpi.h is not<br>
being found:<br>
<br>
[  4%] Built target ProcessShader<br>
[  4%] Built target vtkMaterialLibraryConfiguredFiles<br>
[  5%] Built target vtkproj4<br>
[  5%] Built target lproj<br>
[  5%] Building CXX object<br>
VTK/Utilities/mrmpi/src/CMakeFiles/MapReduceMPI.dir/mapreduce.cpp.o<br>
/home/opti/c/ParaView-3.10.1/VTK/Utilities/mrmpi/src/mapreduce.cpp:14:17: error:<br>
mpi.h: No such file or directory<br>
In file included from<br>
/home/opti/c/ParaView-3.10.1/VTK/Utilities/mrmpi/src/mapreduce.cpp:22:<br>
/home/opti/c/ParaView-3.10.1/VTK/Utilities/mrmpi/src/mapreduce.h:38:<br>
error: field ‘MPI_Comm’ has incomplete type<br>
/home/opti/c/ParaView-3.10.1/VTK/Utilities/mrmpi/src/mapreduce.h:81:<br>
error: ‘MPI_Comm’ does not name a type<br>
/home/opti/c/ParaView-3.10.1/VTK/Utilities/mrmpi/src/mapreduce.h:93:<br>
error: ‘MPI_Comm’ does not name a type<br>
In file included from<br>
/home/opti/c/ParaView-3.10.1/VTK/Utilities/mrmpi/src/mapreduce.cpp:23:<br>
/home/opti/c/ParaView-3.10.1/VTK/Utilities/mrmpi/src/keyvalue.h:36:<br>
error: field ‘MPI_Comm’ has incomplete type<br>
<br>
The relevant CMAKE MPI variables seem to be set correctly:<br>
<br>
opti@optihd0:~/c/paraview-3101-release$ grep ^MPI_ CMakeCache.txt<br>
MPI_COMPILER:FILEPATH=/usr/bin/mpic++<br>
MPI_COMPILE_FLAGS:STRING=<br>
MPI_EXTRA_LIBRARY:STRING=/usr/lib/openmpi/lib/libmpi.so;/usr/lib/openmpi/lib/libopen-rte.so;/usr/lib/openmpi/lib/libopen-pal.so;/usr/lib/libdl.so;/usr/lib/libnsl.so;/usr/lib/libutil.so;/usr/lib/libm.so;/usr/lib/libdl.so<br>


MPI_INCLUDE_PATH:STRING=/usr/lib/openmpi/include;/usr/lib/openmpi/include/openmpi<br>
MPI_LIBRARY:FILEPATH=/usr/lib/openmpi/lib/libmpi_cxx.so<br>
MPI_LINK_FLAGS:STRING=-Wl,--export-dynamic<br>
MPI_COMPILER-ADVANCED:INTERNAL=1<br>
MPI_COMPILE_FLAGS-ADVANCED:INTERNAL=1<br>
MPI_EXTRA_LIBRARY-ADVANCED:INTERNAL=0<br>
MPI_INCLUDE_PATH-ADVANCED:INTERNAL=0<br>
MPI_LIB:INTERNAL=MPI_LIB-NOTFOUND<br>
MPI_LIBRARY-ADVANCED:INTERNAL=0<br>
MPI_LINK_FLAGS-ADVANCED:INTERNAL=1<br>
opti@optihd0:~/c/paraview-3101-release$ find /usr/lib -name mpi.h<br>
/usr/lib/openmpi/include/mpi.h<br>
<br>
The MPI related cache variables seem to be almost the same between 3.8<br>
and 3.10, and in the differences I see nothing related to missing<br>
include paths or something like that:<br>
<br>
opti@optihd0:~/c/paraview-3101-release$ grep MPI_ CMakeCache.txt &gt;<br>
mpi310.txt<br>
opti@optihd0:~/c/paraview-3101-release$ grep MPI_<br>
../paraview-381-release/CMakeCache.txt &gt; mpi38.txt<br>
opti@optihd0:~/c/paraview-3101-release$ diff -u mpi38.txt mpi310.txt<br>
--- mpi38.txt   2011-08-05 14:13:28.781521205 +0200<br>
+++ mpi310.txt  2011-08-05 14:13:24.305022071 +0200<br>
@@ -1,3 +1,4 @@<br>
+IceTMPI_LIB_DEPENDS:STATIC=general;m;general;IceTCore;general;/usr/lib/openmpi/lib/libmpi_cxx.so;general;/usr/lib/openmpi/lib/libmpi.so;general;/usr/lib/openmpi/lib/libopen-rte.so;general;/usr/lib/openmpi/lib/libopen-pal.so;general;/usr/lib/libdl.so;general;/usr/lib/libnsl.so;general;/usr/lib/libutil.so;general;/usr/lib/libm.so;general;/usr/lib/libdl.so;<br>


 MPI_COMPILER:FILEPATH=/usr/bin/mpic++<br>
 MPI_COMPILE_FLAGS:STRING=<br>
 MPI_EXTRA_LIBRARY:STRING=/usr/lib/openmpi/lib/libmpi.so;/usr/lib/openmpi/lib/libopen-rte.so;/usr/lib/openmpi/lib/libopen-pal.so;/usr/lib/libdl.so;/usr/lib/libnsl.so;/usr/lib/libutil.so;/usr/lib/libm.so;/usr/lib/libdl.so<br>


@@ -15,12 +16,8 @@<br>
 ICET_MPI_MAX_NUMPROCS-ADVANCED:INTERNAL=1<br>
 //This is set from VTK_MPI_MAX_NUMPROCS.<br>
 ICET_MPI_MAX_NUMPROCS:INTERNAL=2<br>
-//ADVANCED property for variable: ICET_MPI_POSTFLAGS<br>
-ICET_MPI_POSTFLAGS-ADVANCED:INTERNAL=1<br>
 //This is set from VTK_MPI_POSTFLAGS.<br>
 ICET_MPI_POSTFLAGS:INTERNAL=<br>
-//ADVANCED property for variable: ICET_MPI_PREFLAGS<br>
-ICET_MPI_PREFLAGS-ADVANCED:INTERNAL=1<br>
 //This is set from a combination of VTK_MPI_PREFLAGS VTK_MPI_NUMPROC_FLAG<br>
 // VTK_MPI_MAX_NUMPROCS VTK_MPI_PREFLAGS.<br>
 ICET_MPI_PREFLAGS:INTERNAL=;-np;2;<br>
<br>
Any clues?<br>
<br>
Regards,<br>
Paul<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>