[Dune-devel] problema with poisson-pq2?

Oliver Sander oliver.sander at tu-dresden.de
Fri Sep 4 22:25:07 CEST 2020


Hi Edscott,

> 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 core/staging distinction does not have anything to do with build order.
The order you describe above is the correct one, and it is the one that
dunecontrol should use automatically.

> 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's simpler than that: Just do a "dune-common/bin/dunecontrol all" for core and staging together.

BTW, it's interesting to hear you are using a BSD system.  A while ago we received
a few bug reports from someone trying to package Dune for FreeBSD.  Like this one:

  https://gitlab.dune-project.org/core/dune-common/-/issues/191

Maybe you can help here?

Best,
Oliver

> 
>  
> 
> 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
> 
>  
> 
>  
> 
> 
> _______________________________________________
> Dune-devel mailing list
> Dune-devel at lists.dune-project.org
> https://lists.dune-project.org/mailman/listinfo/dune-devel
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5198 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20200904/60037676/attachment.bin>


More information about the Dune-devel mailing list