Brock,

> We have our kitchensink build of petsc we provide to our users, I can
> configure deal against it, but when building the examples linking fails
> because the $PETSC/conf/variables is not getting read correctly. There
> isn't an error about it, just the linking for external libraries like
> HDF5/parmetis etc that petsc requires are not being included so I get
> tones of 'undefined reference to'
> 
> I have pasted my (nasty) configure below.   Any idea what would cause this
> to fail?  Its strange I see that it is included in
> $DEAL/common/Make.global_options

As you say, the file gets sources in common/Make.global_options, but we may 
not be using the information exported there properly. In particular, if you 
take a look at the linker line in any of the examples' Makefiles (taking out 
the @-signs at the beginnings of commands to actually see the command when 
running make), you'll see that we use our own set of LIBS and LDFLAGS. 
Presumably, if you build PETSc with additional libraries we did not 
anticipate, it may be necessary to add them to the linker line.

That said, because the PETSc libs are such a mess, deal.II re-links the PETSc 
libs into a single library lib/libpetscall.{a,so}. You can see the code for 
this in lib/Makefile. As you can see, before PETSc 3.1, PETSc came with a 
whole bunch of libraries; if you enable additional packages, you may have to 
extend the list around line 65. What's your PETSc version?

Best & thanks for already poking around all the right places to get this to 
work!
  W.

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            [email protected]
                                 www: http://www.math.tamu.edu/~bangerth/
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to