yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #11160
Re: [Question #266037]: CGAL ERROR: assertion violation!
-
To:
yade-users@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Thu, 30 Apr 2015 19:08:06 +0200
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<20150430142138.7193.32335.launchpad@loganberry.canonical.com>
> > Luc Sibille confirmed that the question is solved:
> > I added in the CMakeLists (thank you Timos ;-) ):
> > SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CGAL_DEFINITIONS} -DYADE_CGAL -frounding-math ")
Anton Gladky said: (by the date of Thu, 30 Apr 2015 14:21:38 -0000)
> Question #266037 on Yade changed:
> https://answers.launchpad.net/yade/+question/266037
> Do you have a self-compiled CGAL?
>
> Anton
I have the same error, and I have prepackaged CGAL. I am about to
commit a fix which adds -frounding-math, but only if gcc compiler is
used.
@@ -65,9 +65,9 @@ IF ("${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1}" MATCHES ".*clang")
ELSE()
IF (GCC_VERSION VERSION_GREATER 4.9 OR GCC_VERSION VERSION_EQUAL 4.9)
MESSAGE(STATUS "GCC Version >= 4.9. Adding -fstack-protector-strong")
- ADD_DEFINITIONS("-fstack-protector-strong")
+ ADD_DEFINITIONS("-fstack-protector-strong -frounding-math")
ELSE()
- ADD_DEFINITIONS("-fstack-protector")
+ ADD_DEFINITIONS("-fstack-protector -frounding-math")
ENDIF()
ENDIF()
please give feedback in case of problems.
--
Janek Kozicki http://janek.kozicki.pl/ |
Follow ups
References