Subject: CGAL users discussion list
List archive
- From: Jonathan Fisher <>
- To:
- Subject: [cgal-discuss] Assertion thrown -- wrong rounding
- Date: Thu, 1 Oct 2009 19:03:06 -0400
I'm developing an app which uses CGAL, and I am getting an assertion thrown in during initialization. The explanation is: "Wrong rounding: did you forget the -frounding-math option if you use GCC?"
I installed CGAL using cmake (with the cmake-gui) following the instructions in the CGAL installation manual. Can anyone suggest what I might look for in tracking down the problem? -- it would be much appreciated.
I have previously run the app without errors on a PowerPC platform, and I recently moved the app to an Intel Mac (with a new installation of CGAL). I had had some trouble linking the app, getting error messages about undefined CGAL symbols (including symbols about assertions). I got the build to complete without errors, and now I am getting the assertion thrown at runtime.
A minimal amount of grepping around in the makefiles indicates that the frounding-math option is on.
I am using CGAL 3.4, with Xcode 3.2, under Mac OS 10.6.1; the Boost version is 1_40_0.
The Console report on the error follows --
10/1/09 6:25:18 PM [0x0-0x152152].com.yourcompany.EpModelCo[6475] terminate called after throwing an instance of 'CGAL::Assertion_exception'
10/1/09 6:25:18 PM [0x0-0x152152].com.yourcompany.EpModelCo[6475] what(): CGAL ERROR: assertion violation!
10/1/09 6:25:18 PM [0x0-0x152152].com.yourcompany.EpModelCo[6475] Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
10/1/09 6:25:18 PM [0x0-0x152152].com.yourcompany.EpModelCo[6475] File: /usr/local/include/CGAL/Interval_nt.h
10/1/09 6:25:18 PM [0x0-0x152152].com.yourcompany.EpModelCo[6475] Line: 154
10/1/09 6:25:18 PM [0x0-0x152152].com.yourcompany.EpModelCo[6475] Explanation: Wrong rounding: did you forget the -frounding-math option if you use GCC?
10/1/09 6:25:23 PM com.apple.launchd.peruser.502[501] ([0x0-0x152152].com.yourcompany.EpModelCo[6475]) Job appears to have crashed: Abort trap
10/1/09 6:25:24 PM ReportCrash[6478] Saved crash report for EpModelCo[6475] version ??? (???) to /Users/jonathan/Library/Logs/ DiagnosticReports/EpModelCo_2009-10-01-182524_Fermat.crash
- [cgal-discuss] Assertion thrown -- wrong rounding, Jonathan Fisher, 10/02/2009
- Re: [cgal-discuss] Assertion thrown -- wrong rounding, pafotein, 10/02/2009
- Re: [cgal-discuss] Assertion thrown -- wrong rounding, Laurent Rineau (GeometryFactory), 10/02/2009
Archive powered by MHonArc 2.6.16.