Bug#858228: dolfin: PETSc and SCOTCH support disabled on kfreebsd

Drew Parsons dparsons at debian.org
Mon Mar 20 04:13:53 UTC 2017


Source: dolfin
Version: 2016.2.0-3
Severity: normal

petsc and slepc are available on kfreebsd.  But dolfin configuration
is unable to activate their support due to a linking error during
configuration tests.  SCOTCH support also fails. A snippet from the
log gives:

  -- Checking for package 'PETSc'
  -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
  -- Checking for one of the modules 'craypetsc_real;PETSc'
  -- Test PETSC_TEST_RUNS with shared library linking - Failed
  -- Test PETSC_TEST_RUNS static linking - Failed
  -- Check size of PetscInt
  -- Check size of PetscInt - done
  -- PETSc could not be found. Be sure to set PETSC_DIR. (missing:  PETSC_TEST_RUNS) (found suitable version "3.7.5", minimum required is "3.6")
  -- Checking for package 'SCOTCH-PT'
  -- Found SCOTCH (version 5.1.1.12)
  -- Performing test SCOTCH_TEST_RUNS
  -- Performing test SCOTCH_TEST_RUNS - Failed
  -- Found ZLIB: /usr/lib/x86_64-kfreebsd-gnu/libz.so (found version "1.2.8") 
  -- Performing test SCOTCH_ZLIB_TEST_RUNS
  -- Performing test SCOTCH_ZLIB_TEST_RUNS - Failed
  -- SCOTCH could not be found. Be sure to set SCOTCH_DIR. (missing:  SCOTCH_TEST_RUNS) 

I think the petsc error comes from <builddir>/CMakeFiles/petsc_test_lib.cpp
It does successfully link manually, for instance with 
  gcc `pkg-config --cflags --libs PETSc mpi` petsc_test_lib.cpp
mpi is needed here due to the use of ompi_mpi_comm_self in
libpetsc_real.so.

Does dolfin's cmake/modules/FindPETSc.cmake need any adjustments in
order to successfully configure PETSc support on kfreebsd? 
(likewise FindSCOTCH.cmake ?)


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

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



More information about the debian-science-maintainers mailing list