Bug#612621: ERROR: SCOTCH_dgraphInit: linking with both libScotch and libPTScotch is not allowed

Pierre Saramito Pierre.Saramito at imag.fr
Mon Mar 28 21:27:14 UTC 2011


Hi Johannes and Adam,

> >> Adam: Thanks for your work on this package! Could you please
> >> incorporate this fix in the next upload?
> >
> > Sure, thanks for the patch.  Oh wait -- I think the libscotch$(LIB)
> > dependency and -lscotch linkage were needed for binutils-gold, have you
> > tested the patch with binutils-gold?

I have not yet tested binutils-gold.

I recompile scotch-5.11 from original distrib and it works fine for
both the two previous tests from Johannes and also from more complex
tests together with the pastix solver and the distributed version
of the rheolef distribution (large ordering for matrix-vector systems).
My machine is a i683 under wheezy:
	uname -a
	Linux salsa 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011 i686 GNU/Linux

Here is a short of the compilation :
	wget https://gforge.inria.fr/frs/download.php/28043/scotch_5.1.11.tar.gz
        tar xvzf scotch_5.1.11.tar.gz
        cd scotch_5.1.11
        cp  Make.inc/Makefile.inc.i686_pc_linux2.shlib Makefile.inc
        vi Makefile.inc
        #    1) CFLAGS add : -I/usr/lib/openmpi/include
        #    2) CFLAGS del : -DSCOTCH_PTHREAD since its buggy in openmpi
	#			but conserve -DCOMMON_PTHREAD that is ok
	make scotch ptscotch
		-> shared libs *.so
	
Then local install by hand with DESTDIR=$HOME/sys and then run tests:

	c++ -I/usr/local/include/scotch -o ptscotch_test ptscotch_test.cpp -DSCOTCH_PTSCOTCH -L/usr/local/lib  -lptscotch -lptscotcherr -lz
	./ptscotch_test
        	-> ok

        # also with both ptscoth & scotch :
        mpic++ -I$HOME/sys/include/scotch -o ptscotch_test ptscotch_test.cpp -DSCOTCH_PTSCOTCH -L$HOME/sys/lib  -lptscotch -lptscotcherr -lscotch -lz -lrt
        ./ptscotch_test
        -> ok !

        # also the same with the second test: ptscotch_test2.cpp

So, the problem could be in the scotch/debian files: I will try to take a look at these
fileb (I dont known about others portability constrainst, such as binutils-golds).

Many thanks for your work on the scotch package !

Pierre
-- 
Pierre.Saramito at imag.fr
Directeur de Recherche CNRS
Laboratoire Jean Kuntzmann, Grenoble, France
http://www-ljk.imag.fr/membres/Pierre.Saramito





More information about the debian-science-maintainers mailing list