[Dune-devel] problema with poisson-pq2?

Ed Scott Wilson Garcia edscott at imp.mx
Fri Sep 4 17:54:56 CEST 2020


Thank you Oliver and Carsten,

Changing the compile order from all core modules-->all staging modules to dune-common-->staging/dune-uggrid-->all other core modules-->all other staging modules efectively fixes the problem while trying to link poisson-pq2.cc.o. Four builds instead of two builds.

The thorn in my side, from a the point of view of someone who wants to compile and install dune and all missing dependencies into a user directory, is that ---to keep things simple--- I want to do a "dune-common/bin/dunecontrol all" for modules in core, followed by make install. After that, use the installed dunecontrol to do the same for staging modules. This would entail just 2 builds. I guess I'm lazy.

It would be nice to promote dune-uggrid to the core modules and have a find_package(dune-uggrid REQUIRED) in dune-grid. Maybe for the next Dune release (I'm using branch releases/2.7). Otherwise a find_package(dune-uggrid OPTIONAL) in dune-grid with a warning that staging/dune-uggrid should be compiled first if dune-uggrid will be required later on.

Examining the FreeBSD port for dune-grid, the first case is met. IOW, it depends on dune-uggrid.

my 2 cents.

Best regards,

Edscott



De: Carsten Gräser<mailto:graeser at mi.fu-berlin.de>
Enviado: viernes, 4 de septiembre de 2020 03:01 a. m.
Para: Ed Scott Wilson Garcia<mailto:edscott at imp.mx>; dune-devel at lists.dune-project.org<mailto:dune-devel at lists.dune-project.org>
Asunto: Re: [Dune-devel] problema with poisson-pq2?

Hi,

Am 04.09.20 um 01:06 schrieb Ed Scott Wilson Garcia:
> I’m doing an install in FreeBSD-12.1, but link stage fails for
> poisson-pq2.cc.o. Seems like it can’t créate the specialized object from
> the Dune:GridFactory class template.
it seems that you have UGGrid but the UGGrid dune bindings
are not build into the dune-grid library. Did you maybe
build dune-uggrid manually after dune-grid? In order to
build the dune bindings for UGGrid you have to build
dune-uggrid _before_ dune-grid. If that's the reason for
your problem, simply rebuilding dune-grid (and then all
dependent modules like dune-functions) should fix the issue.

Best,
Carsten


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20200904/4fbf5668/attachment.htm>


More information about the Dune-devel mailing list