Subject: CGAL users discussion list
List archive
- From: Shamyl Zakariya <>
- To:
- Subject: [cgal-discuss] frounding math trouble with GCC 4.0.1
- Date: Wed, 27 May 2009 08:22:49 -0400
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=SQrKrsY7xIVV7RDZRSGcxfSoj2VCt+OyZlgbBZZry1EShL7bMOS5iPV8vqsEMcRQGp ohYiTnwTzi2Eu6yUvPBaHKRr58SacSXqUbooHt9e/1Ra/UFp3aDaYREtAu49ka1gHChL VO37vkPvdgha3rsMquEfjPVuFq1bgFw6KhLPU=
I just installed CGAL 3.4 ( was using 3.1 ) and on running my app,
CGAL terminates with the following error during static initialization:
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
File: /usr/local/include/CGAL/Interval_nt.h
Line: 154
Explanation: Wrong rounding: did you forget the -frounding-math option
if you use GCC?
This is on Mac OS X, 10.5.7
So, assuming I made some sort of mistake during the configuration of
CGAL, I redownloaded the tarball and reconfigured it as such:
# cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=FALSE
And I'm seeing the following during configuration, which implies to me
that the build system is automatically adding -frounding-math...
-- Targetting Unix Makefiles
-- Using /opt/local/bin/c++ compiler.
-- DARWIN_VERSION=9
-- Mac Leopard detected
-- USING CMake version: 2.6.4
-- System: Darwin
-- USING GCC_VERSION = '4.0.1 (Apple Inc. build 5490)'
-- Using gcc version 4 or later. Adding -frounding-math
-- Build type: Release
-- USING CXXFLAGS = ' -frounding-math -O3 -DNDEBUG'
However, ever after this rebuild/reinstall my apps still die on the assertion.
(Please note, I'm not using any of the optional numeric packages, and
I'm using boost 1.36, and cmake 2.6)
- [cgal-discuss] frounding math trouble with GCC 4.0.1, Shamyl Zakariya, 05/27/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Sylvain Pion, 05/27/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Timo Strunk, 05/27/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Laurent Rineau (GeometryFactory), 05/27/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Shamyl Zakariya, 05/27/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Ben Supnik, 05/29/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Laurent Rineau (GeometryFactory), 05/29/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Sylvain Pion, 05/29/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Laurent Rineau (GeometryFactory), 05/29/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Ben Supnik, 05/29/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Timo Strunk, 05/27/2009
- [cgal-discuss] Polyhedron erase_facet followed by fill_hole, Jens K. Becker, 05/29/2009
- Re: [cgal-discuss] Polyhedron erase_facet followed by fill_hole, Jens K. Becker, 05/29/2009
- Re: [cgal-discuss] frounding math trouble with GCC 4.0.1, Sylvain Pion, 05/27/2009
Archive powered by MHonArc 2.6.16.