dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #20788
Re: DOLFIN build breaks with boost 1.45.0 and gcc 4.4 (works with gcc 4.5)
-
To:
DOLFIN Mailing List <dolfin@xxxxxxxxxxxxxxxxxxx>
-
From:
Andre Massing <massing@xxxxxxxxx>
-
Date:
Wed, 19 Jan 2011 10:44:57 +0100
-
User-agent:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; nb-NO; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
Den 18.01.11 21.46, skrev Garth N. Wells:
On 18/01/11 20:28, Florian Rathgeber wrote:
Hi,
Just a sneak preview: when using the current boost release 1.45.0 (which
isn't packaged on the major distributions yet) DOLFIN build breaks:
In IntersectionOperatorImplementation there are conflicts with
boost::optional and the
error: dereferencing pointer \u2018<anonymous>\u2019 does break
strict-aliasing rules
is thrown (boost/optional/optional.hpp 317, 424)
It works using gcc 4.5 though, hence it shouldn't be much of a problem
(unless of course you want to use CUDA: nvcc isn't compatible to gcc 4.5).
Thanks - useful to be proactive in resolving issues like this.
It looks like boost::optional is being used as a bit of sugar.
Andre: can it be easily removed?
It it actually used by the CGAL search tree and as such part of the CGAL
code. I wrapped it such that it is not visible in the upper layers but
as long as we want to have the "find any intersected entity"
functionality via CGAL it is unfortunately not possible to get rid of
boost::optional.
--
Andre
Garth
Florian
_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to : dolfin@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dolfin
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to : dolfin@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dolfin
More help : https://help.launchpad.net/ListHelp
--
André Massing email: massing@xxxxxxxxx
Ph.D. student mobile: +47 469 57 401
Simula Research Laboratory
NO-1367 Fornebu, Norway
--
André Massing email: massing@xxxxxxxxx
Ph.D. student mobile: +47 469 57 401
Simula Research Laboratory
NO-1367 Fornebu, Norway
Follow ups