Compile time floating point exception

Dennis Clarke dclarke at blastwave.org
Tue Jan 27 07:38:48 CET 2009


I'm trying to compile libgmp with some degree of optimization flags given
to the compiler. I repeatedly hit this message during "make check" :

"t-modlinv.c", [all]:ube: error: SIGNAL: Compile time floating point
exception
cc: ube failed for ../../gmp-4.2.4/tests/t-modlinv.c

$ cc -V
cc: Sun C 5.9 SunOS_i386 Patch 124868-08 2008/11/25
usage: cc [ options] files.  Use 'cc -flags' for details
$ echo $CFLAGS
-fsimple=0 -xO5 -Xa -xtarget=opteron -m64 -Kpic
$


Has anyone had any success with compiling libgmp using -xO3 or similar and
Sun Studio 12 compilers? Or even GCC on AMD Opterons or 64-bit Solaris.

I'll be happy to hear from anyone that has seen libgmp compile and test
clean with other than -xO0 optimization flags.

-- 
Dennis Clarke



More information about the gmp-discuss mailing list