[petsc-dev] Problem with petsc.pc when configured with --with-single-library=0

Jed Brown jed at jedbrown.org
Wed Mar 1 08:22:53 CST 2017


Garth, I put a fix in 'next'.  Dolfin configures for me now.

Barry, the fact that PETSc.pc has been broken for four years is why
someone might use FindPETSc.cmake.  (Garth changed their CMake to use
pkg-config instead of the uglier logic, but then it fails with no
debugging output.)

"Garth N. Wells" <gnw20 at cam.ac.uk> writes:

> When configuring PETSc with "--with-single-library=0", my installed 
> petsc.pc file looks like:
>
> prefix=/home/garth/local/packages/petsc-test
> exec_prefix=${prefix}
> includedir=${prefix}/include
> libdir=/home/garth/local/packages/petsc-test/lib
> ccompiler=mpicc
> fcompiler=mpif90
> blaslapacklibs=-llapack -lblas
>
> Name: PETSc
> Description: Library to solve ODEs and algebraic equations
> Version: 3.7.5
> Cflags: -I/home/garth/local/packages/petsc-test/include 
> -I/home/garth/local/packages/petsc-test/include
> Libs: -L/home/garth/local/packages/petsc-test/lib  -lpetsc
> Libs.private: -llapack -lblas -lX11 -lpthread -lm 
> -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu 
> -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/6 
> -L/usr/lib/gcc/x86_64-linux-gnu/6 -Wl,-rpath,/lib/x86_64-linux-gnu 
> -L/lib/x86_64-linux-gnu -lmpichfort -lgfortran -lm -lgfortran -lm 
> -lquadmath -lm -lmpichcxx -lstdc++ -Wl,-rpath,/usr/lib/x86_64-linux-gnu 
> -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/6 
> -L/usr/lib/gcc/x86_64-linux-gnu/6 -Wl,-rpath,/usr/lib/x86_64-linux-gnu 
> -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu 
> -L/lib/x86_64-linux-gnu -Wl,-rpath,/usr/lib/x86_64-linux-gnu 
> -L/usr/lib/x86_64-linux-gnu -ldl -lmpich -lgcc_s -ldl
>
>
> Note the "Libs:". It points only to petsc (which doesn't exist), 
> whereas I would expect it to list each PETSc lib, i.e., petscdm, 
> petscksp, etc, or provide a pkg-config file for each PETSc lib.
>
> Garth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170301/3cd8510d/attachment.sig>


More information about the petsc-dev mailing list