fenics team mailing list archive
-
fenics team
-
Mailing list archive
-
Message #00533
Re: Problem with PCHYPRESetType
On Fri 2008-12-05 10:22, Anders Logg wrote:
> On Thu, Dec 04, 2008 at 11:48:51PM +0100, Jed Brown wrote:
> > On Thu 2008-12-04 20:40, Gildo de Almeida Leonel wrote:
> > > Hi,
> > >
> > > I'm trying to run some demo from fenics but when I type python demo.py I
> > > received this error:
> > >
> > > ImportError: /usr/lib/libdolfin.so.0: undefined symbol: PCHYPRESetType
> >
> > I'll take a wild guess: you didn't build PETSc --with-shared and
> > Dolfin's SCons configuration *still* doesn't use the full link line
> > provided by PETSc.
>
> I thought we had come (on more than one occasion) to the conclusion
> that we shouldn't do this and that the only option is to build PETSc
> --with-shared.
I must have missed the message where it was resolved. My
FindPETSc.cmake actually tries linking using a minimal link line and
falls back to the full one if that fails. This works with both shared
and static libs while respecting the maxim that with shared libs, you
should only specify the interface libraries and not recursive
dependencies. There are legitimate reasons to support static libraries
even on systems which can use shared libs.
If it's been determined that only shared libs are supported, it would
seem appropriate to display that prominently in the install instructions
and have a configure-time check to see if you can actually link against
the provided libs so that you can give users a useful error message.
Jed
Attachment:
pgpEywnTn_zny.pgp
Description: PGP signature
Follow ups
References