Hi,<div><br></div><div>I have seen this problem before you need to fix the <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">MPI_INCLUDE_PATH to only point to the directory that has mpi.h not both of those directories. If this fixes the problem you should open a bug on </span><a href="http://paraview.org/Bug/my_view_page.php">http://paraview.org/Bug</a></div>
<div><br><div class="gmail_quote">On Fri, Aug 5, 2011 at 10:50 AM, Paul Melis <span dir="ltr"><<a href="mailto:paul.melis@sara.nl">paul.melis@sara.nl</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 just noticed my cmake is 2.8.2, would trying the latest version help here?<br>
<font color="#888888"><br>
Paul<br>
</font><div><div></div><div class="h5"><br>
On 08/05/2011 04:47 PM, Paul Melis wrote:<br>
> Hi David,<br>
><br>
> On 08/05/2011 02:55 PM, David Partyka wrote:<br>
>> Have you turned MPI On then Off and then back On again? I've seen it get<br>
>> confused when this happens.<br>
><br>
> Tried that, doesn't help, unfortunately<br>
><br>
>> Can you try a fresh (delete your build tree)<br>
>> build of 3.10.1 and turn everything on at once?<br>
><br>
> A fresh build in a clean build directory (together with the cmake line<br>
> below) doesn't solve the problem. Note that I'm not setting the openmpi<br>
> header/library locations directly, but let CMake detect them. I assume<br>
> that's not a problem?<br>
><br>
> Regards,<br>
> Paul<br>
><br>
>><br>
>> On Fri, Aug 5, 2011 at 8:15 AM, Paul Melis <<a href="mailto:paul.melis@sara.nl">paul.melis@sara.nl</a><br>
>> <mailto:<a href="mailto:paul.melis@sara.nl">paul.melis@sara.nl</a>>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I'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>
>> <source-dir><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:<br>
>> 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 ><br>
>> mpi310.txt<br>
>> opti@optihd0:~/c/paraview-3101-release$ grep MPI_<br>
>> ../paraview-381-release/CMakeCache.txt > 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<br>
>> 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> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <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:<br>
>> <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>
>><br>
>><br>
><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>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Robert Maynard<br>
</div>