Ondrej<br><br>I am rebuilding now. I didn&#39;t get the issues with -lmpi. <br>however the compilation breaks in vtkParallel on one file (vtkCompositer.cxx): it says that mpi.h could not be found <br>I reenable the verbose option to understand better what happens<br>
I suspect a buggy behavior from cmake<br><br>I attach the diff. I also set explicitly the PATH to the mpi headers<br><br><br>cu<br>C.<br><br><div class="gmail_quote">On Feb 9, 2008 11:43 AM, Ondrej Certik &lt;<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Feb 9, 2008 2:12 AM, Ondrej Certik &lt;<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>&gt; wrote:<br>
&gt; Hi Christophe,<br>&gt;<br>&gt; so the svn now seems to build normally, but fails with &quot;-j4&quot; with the<br>&gt; error reported in my svn log (see this list). I just noticed this<br>&gt; error deep in the terminal history:<br>
&gt;<br>&gt; [ &nbsp;5%] make[3]: *** No rule to make target `/usr/lib/libmpi.so&#39;,<br>&gt; needed by `bin/libicet.so&#39;. &nbsp;Stop.<br>&gt; make[3]: *** Waiting for unfinished jobs....<br>&gt;<br>&gt; So I think that&#39;s it. The /usr/lib/libmpi.so is a deadlink on my comp,<br>
&gt; so I reported the bug:<br>&gt;<br>&gt; <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464795" target="_blank">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464795</a><br>&gt;<br>&gt; So I applied this patch:<br>
&gt;<br>&gt; $ svn di<br>&gt; Index: debian/rules<br>&gt; ===================================================================<br>&gt; --- debian/rules &nbsp; &nbsp; &nbsp; &nbsp;(revision 2103)<br>&gt; +++ debian/rules &nbsp; &nbsp; &nbsp; &nbsp;(working copy)<br>
&gt; @@ -24,7 +24,7 @@<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DCMAKE_VERBOSE_MAKEFILE=OFF &nbsp; &nbsp; \<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DCMAKE_C_FLAGS=&quot;-O2&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DCMAKE_CXX_FLAGS=&quot;-O2&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&gt; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -DMPI_LIBRARY=&quot;/usr/lib/libmpi.so&quot;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -DMPI_LIBRARY=&quot;/usr/lib/libmpi.so.0&quot;<br>&gt;<br>&gt;<br>&gt; &nbsp;orig-tarball:<br>&gt;<br>&gt; Now it seems to fail at:<br>&gt;<br>&gt; [ &nbsp;0%] /usr/bin/ld: cannot find -lmpi<br>&gt; collect2: ld returned 1 exit status<br>
&gt; Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkDataArraySelection.o<br>&gt; make[3]: *** [bin/libicet.so] Error 1<br>&gt; make[3]: Leaving directory<br>&gt; `/home/ondra/debian/packages/build-area/paraview-3.2.1/obj-x86_64-linux-gnu&#39;<br>
&gt; make[2]: *** [Utilities/IceT/src/ice-t/CMakeFiles/icet.dir/all] Error 2<br>&gt; make[2]: *** Waiting for unfinished jobs....<br>&gt;<br>&gt;<br>&gt;<br>&gt; Do you have some experience with this? If so, please fix it. :)<br>
<br></div></div>OK, the problem seems to be in the openmpi package (or<br>update-alternatives), a temporary fix is to execute (as root):<br><br>ln -s /usr/lib/libmpi.so.0 &nbsp;/usr/lib/openmpi/lib/libmpi.so.0<br><br>Then the we get much further:<br>
<br>$ fakeroot svn-buildpackage -j5<br>[...]<br>[ 47%] Building CXX object<br>VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkCompositer.o<br>/home/ondra/debian/packages/build-area/paraview-3.2.1/VTK/Parallel/vtkCompositer.cxx:25:18:<br>
error: mpi.h: No such file or directory<br>[ 47%] Building CXX object<br>Utilities/VTKClientServer/Graphics/CMakeFiles/vtkGraphicsCS.dir/vtkTriangleFilterClientServer.o<br>[ 47%] Building CXX object<br>VTK/Hybrid/CMakeFiles/vtkHybrid.dir/vtkCornerAnnotation.o<br>
make[3]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkCompositer.o] Error 1<br><div class="Ih2E3d">make[3]: Leaving directory<br>`/home/ondra/debian/packages/build-area/paraview-3.2.1/obj-x86_64-linux-gnu&#39;<br></div>
make[2]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/all] Error 2<br><div class="Ih2E3d">make[2]: *** Waiting for unfinished jobs....<br><br><br></div>So we need to fix the patch to mpi.h, which is in /usr/include/mpi/<br>
<div><div></div><div class="Wj3C7c"><br>Ondrej<br><br>_______________________________________________<br>Pkg-scicomp-devel mailing list<br><a href="mailto:Pkg-scicomp-devel@lists.alioth.debian.org">Pkg-scicomp-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/pkg-scicomp-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/pkg-scicomp-devel</a><br></div></div></blockquote></div><br>