Created attachment 197407 [details] patch for cad/scotch mpich2 is the obsolete version 2.x, mpich is at the current version 3.x It builds in poudriere 11amd64 with the attached patch. However, it breaks science/libgeodecomp. libgeodecomp can't find the function SCOTCH_dgraphInit. The attached testcase fails: > $ c++ testcase.cc -I /usr/local/include/ -L /usr/local/lib -lptscotch -lmpich -o sc /usr/local/lib/gcc7/libgcc_s.so > /usr/local/lib/libptscotch.a(library_dgraph.o): In function `SCOTCH_dgraphInit': > library_dgraph.c:(.text+0x3a): undefined reference to `SCOTCH_errorPrint' > c++: error: linker command failed with exit code 1 (use -v to see invocation) This is what science/libgeodecomp runs in an attempt to find scotch. I wasn't able to find a solution.
Created attachment 197408 [details] testcase.cc Testcase demonstrating the problem.
Once this is resolved, libgeodecomp also needs to be updated to mpich2.
Thanks for your patch - but Scotch belongs to Code_Aster i.e. french/aster (even if it can be used alone),, and I have to check that everything can run with the same MPI.
Does this mean rejected?
(In reply to Walter Schwarzenfeld from comment #4) Not rejected, but all the chain of dependencies must use the same MPI, and ATM french/aster still uses mpich2 (and it has some other problems to be fixed first).
Sorry, I tested the latest scotch against mpich3 (your patch + some others in the test targets), and indeed scotch is fine with it, but in the complete chain of Code_Aster, we still have older libraries (e.g.math/blacs) requiring mich2. So I think it's better to keep it for now.