[Pkg-scicomp-devel] paraview update
Ondrej Certik
ondrej at certik.cz
Sat Feb 9 10:43:50 UTC 2008
On Feb 9, 2008 2:12 AM, Ondrej Certik <ondrej at certik.cz> wrote:
> Hi Christophe,
>
> so the svn now seems to build normally, but fails with "-j4" with the
> error reported in my svn log (see this list). I just noticed this
> error deep in the terminal history:
>
> [ 5%] make[3]: *** No rule to make target `/usr/lib/libmpi.so',
> needed by `bin/libicet.so'. Stop.
> make[3]: *** Waiting for unfinished jobs....
>
> So I think that's it. The /usr/lib/libmpi.so is a deadlink on my comp,
> so I reported the bug:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464795
>
> So I applied this patch:
>
> $ svn di
> Index: debian/rules
> ===================================================================
> --- debian/rules (revision 2103)
> +++ debian/rules (working copy)
> @@ -24,7 +24,7 @@
> -DCMAKE_VERBOSE_MAKEFILE=OFF \
> -DCMAKE_C_FLAGS="-O2" \
> -DCMAKE_CXX_FLAGS="-O2" \
> - -DMPI_LIBRARY="/usr/lib/libmpi.so"
> + -DMPI_LIBRARY="/usr/lib/libmpi.so.0"
>
>
> orig-tarball:
>
> Now it seems to fail at:
>
> [ 0%] /usr/bin/ld: cannot find -lmpi
> collect2: ld returned 1 exit status
> Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkDataArraySelection.o
> make[3]: *** [bin/libicet.so] Error 1
> make[3]: Leaving directory
> `/home/ondra/debian/packages/build-area/paraview-3.2.1/obj-x86_64-linux-gnu'
> make[2]: *** [Utilities/IceT/src/ice-t/CMakeFiles/icet.dir/all] Error 2
> make[2]: *** Waiting for unfinished jobs....
>
>
>
> Do you have some experience with this? If so, please fix it. :)
OK, the problem seems to be in the openmpi package (or
update-alternatives), a temporary fix is to execute (as root):
ln -s /usr/lib/libmpi.so.0 /usr/lib/openmpi/lib/libmpi.so.0
Then the we get much further:
$ fakeroot svn-buildpackage -j5
[...]
[ 47%] Building CXX object
VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkCompositer.o
/home/ondra/debian/packages/build-area/paraview-3.2.1/VTK/Parallel/vtkCompositer.cxx:25:18:
error: mpi.h: No such file or directory
[ 47%] Building CXX object
Utilities/VTKClientServer/Graphics/CMakeFiles/vtkGraphicsCS.dir/vtkTriangleFilterClientServer.o
[ 47%] Building CXX object
VTK/Hybrid/CMakeFiles/vtkHybrid.dir/vtkCornerAnnotation.o
make[3]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkCompositer.o] Error 1
make[3]: Leaving directory
`/home/ondra/debian/packages/build-area/paraview-3.2.1/obj-x86_64-linux-gnu'
make[2]: *** [VTK/Parallel/CMakeFiles/vtkParallel.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
So we need to fix the patch to mpi.h, which is in /usr/include/mpi/
Ondrej
More information about the Pkg-scicomp-devel
mailing list