Bug#898325: getdp: FTBFS against PETSc 3.9

Drew Parsons dparsons at debian.org
Thu May 10 10:38:18 BST 2018


Source: getdp
Version: 2.11.3+dfsg1-1
Severity: normal

getdp now fails to build against PETSc, from petsc 3.9.

The error message is:
  [ 60%] Building CXX object CMakeFiles/getdp.dir/Kernel/SolvingAnalyse.cpp.o
  make[4]: Leaving directory '/home/drew/projects/test/getdp-2.11.3+dfsg1/debian/build/petsc'
  make[4]: Entering directory '/home/drew/projects/test/getdp-2.11.3+dfsg1/debian/build/petsc'
  /usr/bin/mpicxx   -I/home/drew/projects/test/getdp-2.11.3+dfsg1/Common -I/home/drew/projects/test/getdp-2.11.3+dfsg1/Interface -I/home/drew/projects/test/getdp-2.11.3+dfsg1/Kernel -I/home/drew/projects/test/getdp-2.11.3+dfsg1/Numeric -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/include/slepc -I/usr/include/petsc -I/usr/include/python3.6m -I/home/drew/projects/test/getdp-2.11.3+dfsg1/debian/build/petsc/Common  -g -O2 -fdebug-prefix-map=/home/drew/projects/test/getdp-2.11.3+dfsg1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2   -Wall -Wno-misleading-indentation -o CMakeFiles/getdp.dir/Kernel/LinAlg_PETSC.cpp.o -c /home/drew/projects/test/getdp-2.11.3+dfsg1/Kernel/LinAlg_PETSC.cpp
  /home/drew/projects/test/getdp-2.11.3+dfsg1/Kernel/LinAlg_PETSC.cpp: In function ‘void _solve(gMatrix*, gVector*, gSolver*, gVector*, int, int)’:
  /home/drew/projects/test/getdp-2.11.3+dfsg1/Kernel/LinAlg_PETSC.cpp:1293:10: error: ‘PCFactorSetMatSolverPackage’ was not declared in this scope
       _try(PCFactorSetMatSolverPackage(pc, "mumps"));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/drew/projects/test/getdp-2.11.3+dfsg1/Kernel/LinAlg_PETSC.cpp:1293:10: note: suggested alternative: ‘PCFactorSetMatSolverType’
       _try(PCFactorSetMatSolverPackage(pc, "mumps"));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
            PCFactorSetMatSolverType
  /home/drew/projects/test/getdp-2.11.3+dfsg1/Kernel/LinAlg_PETSC.cpp:1328:13: error: ‘MatSolverPackage’ does not name a type; did you mean ‘MatSolverType’?
         const MatSolverPackage stype;
               ^~~~~~~~~~~~~~~~
               MatSolverType
... etc

This happens because of a change in API in PETSc 3.9. 

There is a tentative patch upstream at
https://gitlab.onelab.info/getdp/getdp/commit/8610fc15c426b322bc37f52796e7b3ca65a2d2d3

petsc 3.9 is currently in experimental. This bug will become serious
once we upload it to unstable.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


More information about the debian-science-maintainers mailing list