Ondrej<br><br>I am rebuilding now. I didn'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 <<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>> 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 <<a href="mailto:ondrej@certik.cz">ondrej@certik.cz</a>> wrote:<br>
> Hi Christophe,<br>><br>> so the svn now seems to build normally, but fails with "-j4" with the<br>> error reported in my svn log (see this list). I just noticed this<br>> error deep in the terminal history:<br>
><br>> [ 5%] make[3]: *** No rule to make target `/usr/lib/libmpi.so',<br>> needed by `bin/libicet.so'. Stop.<br>> make[3]: *** Waiting for unfinished jobs....<br>><br>> So I think that's it. The /usr/lib/libmpi.so is a deadlink on my comp,<br>
> so I reported the bug:<br>><br>> <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>><br>> So I applied this patch:<br>
><br>> $ svn di<br>> Index: debian/rules<br>> ===================================================================<br>> --- debian/rules (revision 2103)<br>> +++ debian/rules (working copy)<br>
> @@ -24,7 +24,7 @@<br>> -DCMAKE_VERBOSE_MAKEFILE=OFF \<br>> -DCMAKE_C_FLAGS="-O2" \<br>> -DCMAKE_CXX_FLAGS="-O2" \<br>> - -DMPI_LIBRARY="/usr/lib/libmpi.so"<br>
> + -DMPI_LIBRARY="/usr/lib/libmpi.so.0"<br>><br>><br>> orig-tarball:<br>><br>> Now it seems to fail at:<br>><br>> [ 0%] /usr/bin/ld: cannot find -lmpi<br>> collect2: ld returned 1 exit status<br>
> Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkDataArraySelection.o<br>> make[3]: *** [bin/libicet.so] Error 1<br>> make[3]: Leaving directory<br>> `/home/ondra/debian/packages/build-area/paraview-3.2.1/obj-x86_64-linux-gnu'<br>
> make[2]: *** [Utilities/IceT/src/ice-t/CMakeFiles/icet.dir/all] Error 2<br>> make[2]: *** Waiting for unfinished jobs....<br>><br>><br>><br>> 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 /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'<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>