[Dune] Globally installed modules vs. local modules

Christoph Grüninger christoph.grueninger at iws.uni-stuttgart.de
Fri Jul 1 07:45:07 CEST 2016


Hi Lukas,
do you mind opening an issue in dune-common? Then it will not be
forgotten and all information can be kept at one place.

Bye
Christoph

Am 29.06.2016 um 14:51 schrieb Lukas Böger:
> As this exceeds my understanding of the build process by far, I prefer
> offering a patch for a different, this time trivial issue :)
> 
> For compilation of the dune-localfunctions tests (current master
> branch), I needed to include the std <numeric> header in
> lagrange/pk2d/pk2dlocalbasis.hh and common/localbasis.hh.
> 
> Patch is attached, though it might cause format problems when applying
> it due to different git versions?
> 
> Best,
> Lukas
> 
> On 27.06.2016 13:03, Oliver Sander wrote:
>> To me this sounds like a bug.  If there is a local installation in DUNE_CONTROL_PATH,
>> then this should overrule any global installation.
>>
>> Now that I think of it though, I remember seeing similar problems a while ago.
>> The problem was that even if dunecontrol only uses the local modules, you will
>> have /usr/include and /usr/lib in your paths for other random reasons, like
>> the std lib.  You may then get the wrong module (i.e., the global one), if /usr
>> happens to appear in the list of compiler options before the path to your
>> local installation.
>>
>> Best,
>> Oliver
>>
>> On 27.06.2016 12:58, Lukas Böger wrote:
>>> Sounds appealingly simple, but leads to the exact same cmake failure as
>>> before: dune-alugrid is found in /usr and then the global
>>> Headercheck.cmake is used instead of the local one...
>>>
>>> Best
>>> Lukas
>>>
>>> On 27.06.2016 12:03, Christoph Grüninger wrote:
>>>> Hi Lukas,
>>>> you could also use dunecontrol's --only option and
>>>> explicitly state all modules you have local. Then
>>>> dunecontrol won't try to use the installed module.
>>>>
>>>> Bye
>>>> Christoph
>>>>
>>>
>>> _______________________________________________
>>> Dune mailing list
>>> Dune at dune-project.org
>>> http://lists.dune-project.org/mailman/listinfo/dune
>>>
>>
>>
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>>
>>
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune

-- 
The method has been developed for use on a high-speed electronic
computer and would be impractical for hand-solution purposes.
                                           [Harlow & Welch 1965]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20160701/685d1a36/attachment.sig>


More information about the Dune mailing list