Compile time floating point exception

Jonathan Blanchard BlanchardJ at ieee.org
Tue Jan 27 17:43:24 CET 2009


I had gmp compile and check correctly on core2-pc-solaris2.11 using
sun studio 12. With the following script :

#!/bin/bash

export CC="cc"
export CXX="CC"
export F77="f95"

export LDFLAGS="-L/opt/SunStudioExpress/lib/"
export LD_OPTIONS=$LDFLAGS
export PATH=/opt/SunStudioExpress/bin:$PATH

export CFLAGS="-xO5 -m64"

./gmp-4.2.4/configure --prefix=$HOME/local/gmpss
LDFLAGS="-L/opt/SunStudioExpress/lib/" --build=core2-pc-solaris2.11

if [ "$?" -eq "0" ]
	then
	make -j 4

	if [ "$?" -eq "0" ]
		then
		make check
	fi

fi

-----

Jonathan Blanchard



On Tue, Jan 27, 2009 at 2:38 AM, Dennis Clarke <dclarke at blastwave.org> wrote:
>
> 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
>
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss
>


More information about the gmp-discuss mailing list