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

Johannes Ring johannr at simula.no
Mon Mar 28 12:52:07 UTC 2011


On Mon, Mar 28, 2011 at 2:07 PM, trophime
<christophe.trophime at lncmi.cnrs.fr> wrote:
> On Mon, 2011-03-28 at 12:56 +0200, Pierre Saramito wrote:
>>     mpic++ -o ptscotch_test ptscotch_test.cpp -DSCOTCH_PTSCOTCH -I/usr/include/scotch -lptscotch -lptscotcherr
>>     ./ptscotch_test
>>         (0): ERROR: SCOTCH_dgraphInit: linking with both libScotch and libPTScotch is not allowed
>>         MPI implementation is not thread-safe:
>>         SCOTCH should be compiled without SCOTCH_PTHREAD
>>
>> Yet, scotch library is unusable...
>> Any idea to get free from this problem ?
>
> I think that the test code provided is not fully consistent with the
> "INSTALL.txt" file in scotch source as pointed out by J. Ring. See for
> examples the dgscat.c in the src package.

The part about SCOTCH_PTHREAD in the test code is no longer valid as
this flag was removed in 5.1.11.dfsg-4. Removing this flag partially
fixed this bug, however, the main problem is still there: linking with
both libscotch and libptscotch is not allowed. I'm attaching an
updated test program that uses some basic ptscotch commands (also
found in e.g. dgscat.c) and reproduces the error. Compile and run the
program as follows:

$ mpic++ -o ptscotch_test2 ptscotch_test2.cpp -I/usr/include/scotch -lptscotch
$ ./ptscotch_test2
(0): ERROR: SCOTCH_dgraphInit: linking with both libScotch and
libPTScotch is not allowed

> Just to make sure that (pt)scotch is running properly we should perform
> some regression tests. I haven't see if there are something like that
> already available in the upstream orig tarball.

Yes, that would be good.

Best,

Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptscotch_test2.cpp
Type: text/x-c++src
Size: 239 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20110328/c5a79642/attachment.cpp>


More information about the debian-science-maintainers mailing list