Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] -frounding-math option

Subject: CGAL users discussion list

List archive

[cgal-discuss] -frounding-math option


Chronological Thread 
  • From: Amir Vaxman <>
  • To:
  • Subject: [cgal-discuss] -frounding-math option
  • Date: Tue, 2 Oct 2012 11:31:33 +0200

Hello,

I have recently converted my religion from Windows to Linux Mint, and
am trying to use CGAL copiled by g++ 4.6. I have configured cmake
using:

amir@amir-office ~/workspace/CGAL-4.0.2 $ cmake -fp-model strict .
-- Build CGAL from release in directory CGAL-4.0.2
-- Packagenames: CGAL-4.0.2
-- CGAL_MAJOR_VERSION=4
-- CGAL_MINOR_VERSION=0
-- CGAL_BUGFIX_VERSION=2
-- CGAL_SONAME_VERSION=9
-- CGAL_SOVERSION =9.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- USING CMake version: 2.8.9
-- System: Linux
-- USING GCC_VERSION = '4.6.3'
-- Using gcc version 4 or later. Adding -frounding-math
-- Build type: Release
-- USING CXXFLAGS = ' -frounding-math -O3 -DNDEBUG'
-- USING LDFLAGS = ' '
-- GMP include: /usr/local/include
-- GMP libraries: /usr/local/lib/libgmp.so
-- GMP definitions:
-- USING GMP_VERSION = '5.0.5'
-- MPFR include: /usr/local/include
-- MPFR libraries: /usr/local/lib/libmpfr.so
-- MPFR definitions:
-- USING MPFR_VERSION = '3.1.1'
-- Boost include: /usr/local/include
-- Boost libraries: /usr/local/lib/libboost_thread.so
-- Boost definitions:
-- USING BOOST_VERSION = '1.51.0'
-- Library config detected: Qt3
-- CGAL_Qt3 needs Qt3, cannot be configured.
-- Library config detected: Qt4
-- USING QT4_VERSION = '4.8.1'
-- OpenGL include: /usr/include
-- OpenGL libraries:
/usr/lib/x86_64-linux-gnu/libGLU.so;/usr/lib/x86_64-linux-gnu/libGL.so;/usr/lib/x86_64-linux-gnu/libSM.so;/usr/lib/x86_64-linux-gnu/libICE.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- OpenGL definitions:
-- Qt4 include: /usr/include/qt4
-- Qt4 libraries:
/usr/lib/x86_64-linux-gnu/libQtOpenGL.so;/usr/lib/x86_64-linux-gnu/libQtGui.so;/usr/lib/x86_64-linux-gnu/libQtCore.so
-- Qt4 definitions:
-- moc executable: /usr/bin/moc-qt4
-- uic executable: /usr/bin/uic-qt4
-- Library config detected: ImageIO
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- OpenGL include: /usr/include
-- OpenGL libraries:
/usr/lib/x86_64-linux-gnu/libGLU.so;/usr/lib/x86_64-linux-gnu/libGL.so;/usr/lib/x86_64-linux-gnu/libSM.so;/usr/lib/x86_64-linux-gnu/libICE.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- NOTICE: CGAL_ImageIO needs ZLib to read compressed files. That
feature will not be activated.
-- Library config detected: Core
-- Library configs detected: CGAL;Core;ImageIO;Qt3;Qt4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/amir/workspace/CGAL-4.0.2

the building went ok, but I get the following assertion when running:

CGAL_assertion_msg(-CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1),
"Wrong rounding: did you forget the
-frounding-math option if you use GCC (or -fp-model strict for
Intel)?");

It seems as if this option was added, so what is the problem?

Thanks,
Amir.



Archive powered by MHonArc 2.6.18.

Top of Page