Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problems with OS X, GCC 4.2.1 and arrangement_2

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problems with OS X, GCC 4.2.1 and arrangement_2


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Problems with OS X, GCC 4.2.1 and arrangement_2
  • Date: Mon, 30 Mar 2009 19:52:50 +0100
  • Organization: GeometryFactory

On Monday 30 March 2009 20:09:33 Ben Supnik wrote:
> Hi Y'all,
>
> I've hit a case where I get assertion failures doing an insert_curves on
> the arrangement_2 class. (Exact numeric type, segment traits with
> history, CGAL 3.3.1.)
>
> Here's the rub:
>
> On Linux (GCC 4.2.4) my code runs properly.
>
> On OS X (GCC 4.2.1 build 5566) my code hits a precondition violation.
>
> Has anyone hit this before?


Well, it happens from time to time. CGAL code is a kind of test suite for compilers. gcc-4.2 is known to be quite buggy, on MacOS but also on other platforms. With gcc-4.2, you usually need to use the compiler flag -fno-strict-aliasing, so that its optimizer does not assume the strict aliasing rule is followed (because that part of the optimizer of gcc-4.2 is buggy).


--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/





Archive powered by MHonArc 2.6.16.

Top of Page