[Dune-devel] Dune-devel Digest, Vol 108, Issue 2

Timo Koch timo.koch at iws.uni-stuttgart.de
Thu Jul 8 19:17:22 CEST 2021


Hi Simon

I had similar problems on older macOS stemming from the fact that some of the standard library implementation apparently don’t fully implement optional.

This problem occurred with the AppleClang compiler and also with gcc and clang from homebrew which forced me to upgrade the OS at some point.

Currently on macOS BigSur the AppleClang 12.0.0 that comes with the default developer tools works without problems for me with Dune.
(and no Christoph you don’t need XCode for that but you have to install the default developer tools which homebrew requires anyway as far as I know)

I have however some issues with the current gcc versions from homebrew. Somehow the exception handling is screwed up so
that the program crashes if even I catch errors…
Also valgrind doesn’t work on BigSur.

Timo



> On 8. Jul 2021, at 10:29, dune-devel-request at lists.dune-project.org wrote:
> 
> Send Dune-devel mailing list submissions to
> 	dune-devel at lists.dune-project.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.dune-project.org/mailman/listinfo/dune-devel
> or, via email, send a message with subject or body 'help' to
> 	dune-devel-request at lists.dune-project.org
> 
> You can reach the person managing the list at
> 	dune-devel-owner at lists.dune-project.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Dune-devel digest..."
> 
> 
> Today's Topics:
> 
>   1. Dune on MacOS (Simon Praetorius)
>   2. Re: Dune on MacOS (Christoph Grüninger)
>   3. Re: Dune on MacOS (Peter Bastian)
>   4. Re: Dune on MacOS (Santiago Ospina De Los Rios)
>   5. Re: Dune on MacOS (Samuel Burbulla)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 7 Jul 2021 20:25:30 +0200
> From: Simon Praetorius <simon.praetorius at tu-dresden.de>
> To: <dune-devel at lists.dune-project.org>
> Subject: [Dune-devel] Dune on MacOS
> Message-ID: <97ebfd96-5170-4b26-8c69-2c85c5fbb239 at tu-dresden.de>
> Content-Type: text/plain; charset="utf-8"; format=flowed
> 
> Hi everyone,
> 
> Recently, some of my colleagues tried to install Dune (core modules + 
> some extensions) on their Mac. They used the default compiler on a MacOS 
>> = 10.13 and got several compiler errors, e.g. related to missing 
> std::optional.
> 
> Can anyone share their experience with MacOS since I myself do not own 
> any of these systems, i.e.
> 
> - Which MacOS is supported with its default software?
> - Is there a minimal supported version for Apple-clang?
> - Are there any other restrictions on a standard MacOS setup?
> - What about external dependencies, like MPI, BLAS, LAPACK or 
> SuiteSparse? Are they available via package managers?
> - Is it possible to replace the default apple compiler easily by 
> something else?
> 
> Maybe can we add some description on the webpage? If it is there, please 
> send me the link, I might have missed it. Note, the "Compilers" page 
> seems to be outdated.
> 
> Best regards,
> Simon
> 
> -- 
> Dr. Simon Praetorius
> Technische Universität Dresden
> Institute of Scientific Computing
> phone: +49 351 463-34432
> mail: simon.praetorius at tu-dresden.de
> web: https://tu-dresden.de/mn/math/wir/das-institut/beschaeftigte/simon-praetorius
> 
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 7 Jul 2021 22:41:18 +0200
> From: Christoph Grüninger <foss at grueninger.de>
> To: dune-devel at lists.dune-project.org
> Subject: Re: [Dune-devel] Dune on MacOS
> Message-ID: <7ea27177-04f1-df80-86f1-669da2e10e1e at grueninger.de>
> Content-Type: text/plain; charset=utf-8
> 
> Hi Simon,
> 
> I never used a macOS myself, but I can share some insights:
> 
>> Recently, some of my colleagues tried to install Dune (core modules +
>> some extensions) on their Mac. They used the default compiler on a MacOS
>>> = 10.13 and got several compiler errors, e.g. related to missing
>> std::optional.
> 
> Is there really a default compiler? I think you need to install Xcode.
> You can have a look what LLVM is part of a Xcode:
>> https://en.wikipedia.org/wiki/Xcode#Xcode_11.x_-_13.x_(since_SwiftUI_framework)_2
> 
>> Can anyone share their experience with MacOS since I myself do not own
>> any of these systems, i.e.
>> 
>> - Which MacOS is supported with its default software?
> 
> I think there is no default, you have to install it explicitly.
> 
>> - Is there a minimal supported version for Apple-clang?
> 
> See the list of Xcode version, newer version might required recent
> versions of macOS.
> 
>> - Are there any other restrictions on a standard MacOS setup?
>> - What about external dependencies, like MPI, BLAS, LAPACK or
>> SuiteSparse? Are they available via package managers?
> 
> Most of our users in the past relied on homebrew. MacPorts is an
> alternative. Both should provide all Dune dependencies.
> 
>> - Is it possible to replace the default apple compiler easily by
>> something else?
> 
> Setting the compiler when calling CMake should do the trick.
> 
> I hope I did not confuse too much.
> 
> Bye
> Christoph
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 8 Jul 2021 08:42:21 +0200
> From: Peter Bastian <Peter.Bastian at iwr.uni-heidelberg.de>
> To: dune-devel at lists.dune-project.org
> Subject: Re: [Dune-devel] Dune on MacOS
> Message-ID:
> 	<33239855-f6c3-530e-f91b-3e5b379bceaf at iwr.uni-heidelberg.de>
> Content-Type: text/plain; charset=utf-8
> 
> Dear all,
> 
> I am using Dune on MacOS for many years without any hassle.
> 
> I am using macports (https://www.macports.org/) as packet manager
> and it provides all you need. As pointed out by Christoph, there
> is also homebrew.
> The compilers provided by Apple (with XCode) are usually too old, so I never
> used them.
> 
> Best,
> 
> Peter
> 
> Am 07.07.21 um 22:41 schrieb Christoph Grüninger:
>> Hi Simon,
>> 
>> I never used a macOS myself, but I can share some insights:
>> 
>>> Recently, some of my colleagues tried to install Dune (core modules +
>>> some extensions) on their Mac. They used the default compiler on a MacOS
>>>> = 10.13 and got several compiler errors, e.g. related to missing
>>> std::optional.
>> Is there really a default compiler? I think you need to install Xcode.
>> You can have a look what LLVM is part of a Xcode:
>>> https://en.wikipedia.org/wiki/Xcode#Xcode_11.x_-_13.x_(since_SwiftUI_framework)_2
>>> Can anyone share their experience with MacOS since I myself do not own
>>> any of these systems, i.e.
>>> 
>>> - Which MacOS is supported with its default software?
>> I think there is no default, you have to install it explicitly.
>> 
>>> - Is there a minimal supported version for Apple-clang?
>> See the list of Xcode version, newer version might required recent
>> versions of macOS.
>> 
>>> - Are there any other restrictions on a standard MacOS setup?
>>> - What about external dependencies, like MPI, BLAS, LAPACK or
>>> SuiteSparse? Are they available via package managers?
>> Most of our users in the past relied on homebrew. MacPorts is an
>> alternative. Both should provide all Dune dependencies.
>> 
>>> - Is it possible to replace the default apple compiler easily by
>>> something else?
>> Setting the compiler when calling CMake should do the trick.
>> 
>> I hope I did not confuse too much.
>> 
>> Bye
>> Christoph
>> 
>> _______________________________________________
>> Dune-devel mailing list
>> Dune-devel at lists.dune-project.org
>> https://lists.dune-project.org/mailman/listinfo/dune-devel
> 
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Thu, 8 Jul 2021 08:23:21 +0000
> From: Santiago Ospina De Los Rios
> 	<santiago.ospina at iwr.uni-heidelberg.de>
> To: "dune-devel at lists.dune-project.org"
> 	<dune-devel at lists.dune-project.org>
> Subject: Re: [Dune-devel] Dune on MacOS
> Message-ID: <0f2ada5d0339452ea12576787a267fa6 at iwr.uni-heidelberg.de>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi all,
> 
> 
> I maintain a very simple hombrew TAP (Third-Party Repositories) for dune 2.7. If you It should be as simple as:
> 
> brew install dune-copasi/tap/<dune-module>
> 
> where <dune-module> is any of
> 
>  *   dune-common
>  *   dune-copasi
>  *   dune-functions
>  *   dune-geometry
>  *   dune-grid
>  *   dune-istl
>  *   dune-localfunctions
>  *   dune-logging
>  *   dune-multidomaingrid
>  *   dune-pdelab
>  *   dune-typetree
>  *   dune-uggrid
> 
> If it doesn't work, just let me know in the issue tracker<https://github.com/dune-copasi/homebrew-tap/issues> ;)
> 
> Best,
> Santiago
> 
> ________________________________
> From: Dune-devel <dune-devel-bounces at lists.dune-project.org> on behalf of Peter Bastian <Peter.Bastian at iwr.uni-heidelberg.de>
> Sent: Thursday, July 8, 2021 8:42:21 AM
> To: dune-devel at lists.dune-project.org
> Subject: Re: [Dune-devel] Dune on MacOS
> 
> Dear all,
> 
> I am using Dune on MacOS for many years without any hassle.
> 
> I am using macports (https://www.macports.org/) as packet manager
> and it provides all you need. As pointed out by Christoph, there
> is also homebrew.
> The compilers provided by Apple (with XCode) are usually too old, so I never
> used them.
> 
> Best,
> 
> Peter
> 
> Am 07.07.21 um 22:41 schrieb Christoph Grüninger:
>> Hi Simon,
>> 
>> I never used a macOS myself, but I can share some insights:
>> 
>>> Recently, some of my colleagues tried to install Dune (core modules +
>>> some extensions) on their Mac. They used the default compiler on a MacOS
>>>> = 10.13 and got several compiler errors, e.g. related to missing
>>> std::optional.
>> Is there really a default compiler? I think you need to install Xcode.
>> You can have a look what LLVM is part of a Xcode:
>>> https://en.wikipedia.org/wiki/Xcode#Xcode_11.x_-_13.x_(since_SwiftUI_framework)_2
>>> Can anyone share their experience with MacOS since I myself do not own
>>> any of these systems, i.e.
>>> 
>>> - Which MacOS is supported with its default software?
>> I think there is no default, you have to install it explicitly.
>> 
>>> - Is there a minimal supported version for Apple-clang?
>> See the list of Xcode version, newer version might required recent
>> versions of macOS.
>> 
>>> - Are there any other restrictions on a standard MacOS setup?
>>> - What about external dependencies, like MPI, BLAS, LAPACK or
>>> SuiteSparse? Are they available via package managers?
>> Most of our users in the past relied on homebrew. MacPorts is an
>> alternative. Both should provide all Dune dependencies.
>> 
>>> - Is it possible to replace the default apple compiler easily by
>>> something else?
>> Setting the compiler when calling CMake should do the trick.
>> 
>> I hope I did not confuse too much.
>> 
>> Bye
>> Christoph
>> 
>> _______________________________________________
>> Dune-devel mailing list
>> Dune-devel at lists.dune-project.org
>> https://lists.dune-project.org/mailman/listinfo/dune-devel
> 
> 
> _______________________________________________
> Dune-devel mailing list
> Dune-devel at lists.dune-project.org
> https://lists.dune-project.org/mailman/listinfo/dune-devel
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20210708/d287aec6/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 5
> Date: Thu, 8 Jul 2021 10:29:31 +0200
> From: Samuel Burbulla <samuel.burbulla at mathematik.uni-stuttgart.de>
> To: Simon Praetorius <simon.praetorius at tu-dresden.de>
> Cc: dune-devel at lists.dune-project.org
> Subject: Re: [Dune-devel] Dune on MacOS
> Message-ID:
> 	<9AED1D74-F35B-495D-9722-00FAB85F7BC6 at mathematik.uni-stuttgart.de>
> Content-Type: text/plain;	charset=utf-8
> 
> Hi Simon,
> 
> I use Dune on MacOS (11.2.3), too.
> 
> I use the toolchain installed by the Apple Developer Tools, i.e. clang 12.0.5 and cmake 3.20.2.
> 
> Other packages like suitesparse I install via homebrew.
> 
> Recently, I made a full new setup on a new M1 Mac and also observed no real issues.
> 
> Best,
> Samuel
> 
> 
>> Am 07.07.2021 um 20:25 schrieb Simon Praetorius <simon.praetorius at tu-dresden.de>:
>> 
>> Hi everyone,
>> 
>> Recently, some of my colleagues tried to install Dune (core modules + some extensions) on their Mac. They used the default compiler on a MacOS >= 10.13 and got several compiler errors, e.g. related to missing std::optional.
>> 
>> Can anyone share their experience with MacOS since I myself do not own any of these systems, i.e.
>> 
>> - Which MacOS is supported with its default software?
>> - Is there a minimal supported version for Apple-clang?
>> - Are there any other restrictions on a standard MacOS setup?
>> - What about external dependencies, like MPI, BLAS, LAPACK or SuiteSparse? Are they available via package managers?
>> - Is it possible to replace the default apple compiler easily by something else?
>> 
>> Maybe can we add some description on the webpage? If it is there, please send me the link, I might have missed it. Note, the "Compilers" page seems to be outdated.
>> 
>> Best regards,
>> Simon
>> 
>> -- 
>> Dr. Simon Praetorius
>> Technische Universität Dresden
>> Institute of Scientific Computing
>> phone: +49 351 463-34432
>> mail: simon.praetorius at tu-dresden.de
>> web: https://tu-dresden.de/mn/math/wir/das-institut/beschaeftigte/simon-praetorius
>> 
>> 
>> _______________________________________________
>> Dune-devel mailing list
>> Dune-devel at lists.dune-project.org
>> https://lists.dune-project.org/mailman/listinfo/dune-devel
> 
> 
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Dune-devel mailing list
> Dune-devel at lists.dune-project.org
> https://lists.dune-project.org/mailman/listinfo/dune-devel
> 
> ------------------------------
> 
> End of Dune-devel Digest, Vol 108, Issue 2
> ******************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20210708/9352bc5f/attachment.htm>


More information about the Dune-devel mailing list