[Dune] Globally installed modules vs. local modules

Carsten Gräser graeser at mi.fu-berlin.de
Wed Jun 29 15:50:11 CEST 2016


Dear Lukas,
thanks for the patch. I just applied it. The patch
could only be applied using 'git apply'. If you create
patches for commits using 'git format-patch' your
authorship will be preserved in the commit.

Best,
Carsten


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

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


More information about the Dune mailing list