[Dune-devel] [Dune-Commit] dune-web r1038 - external_libraries

Markus Blatt markus at dr-blatt.de
Fri Jul 20 09:37:54 CEST 2012


Hi Martin,

Is there a chance that we can convince the ALUGrid authors to add
these flags automatically during configure? I think this would make
life for users easier and prevent hard to find errors. Or are there
any drawbacks when doing this?

Cheers,

Markus

On Fri, Jul 20, 2012 at 09:31:04AM +0200, mnolte at dune-project.org wrote:
> Author: mnolte
> Date: 2012-07-20 09:31:04 +0200 (Fri, 20 Jul 2012)
> New Revision: 1038
> 
> Modified:
>    external_libraries/install_alugrid.wml
> Log:
> recommend adding -std=c++0x to CXXFLAGS when configuring ALUGrid
> 
> For gcc-4.7, this is even mandatory, as the ABI of std::list in c++0x mode
> differs from that in C++98/C++03 mode. This causes segmentation faults at run
> time which are very hard to pin down.
> 
> 
> Modified: external_libraries/install_alugrid.wml
> ===================================================================
> --- external_libraries/install_alugrid.wml	2012-07-11 14:21:31 UTC (rev 1037)
> +++ external_libraries/install_alugrid.wml	2012-07-20 07:31:04 UTC (rev 1038)
> @@ -39,6 +39,14 @@
>      and linkers you will use to compile DUNE!!
>  </p>
>  <p>
> +    <em>Warning</em>: DUNE automatically passes <kbd>-std=c++0x</kbd> to the
> +    C++ compiler (if supported). It is highly recommended that you also add
> +    this flag to the CXXFLAGS when configuring ALUGrid.
> +    Due to a different ABI in C++0x (C++11) mode, gcc version 4.7.0 and 4.7.1
> +    will even produce runtime faults if this flag is omitted (see the
> +    <a href="http://gcc.gnu.org/gcc-4.7/changes.html">GCC 4.7 Release Notes</a>).
> +</p>
> +<p>
>      If you want to use the parallel version of ALUGrid, please read
>      the README file in the ALUGrid distribution.
>  <p>For further information and additional options see</p>
> 
> 
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit
> 

-- 
Do you need more support with DUNE or HPC in general? 

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858  Fax: +49 (0)322 1108991658 




More information about the Dune-devel mailing list