Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rrdtool - IEEE math not supported by gcc?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Fri Oct 11, 2002 10:24 am    Post subject: rrdtool - IEEE math not supported by gcc? Reply with quote

Hi guys,

I'm trying to compile rrdtool on my via C3 system (with gcc-3.2) and gets this output:

checking for fpclassify with <math.h>... no
checking for finite... yes
checking for isinf... yes
checking if realloc can deal with NULL... yes
checking if IEEE math works out of the box... nan == nan ... no
checking if IEEE math works with the -ieee switch... no
checking if IEEE math works with the -qfloat=nofold switch... nan == nan ... no
checking if IEEE math works with the -w -qflttrap=enable:zerodivide... nan == nan ... no
checking if IEEE math works with the -mieee switch... no
checking if IEEE math works with the -q float=rndsngl switch... no
checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... no
checking if IEEE math works with fpsetmask(0)... no
checking if IEEE math works with signal(SIGFPE,SIG_IGN)... nan == nan ... no
configure: error:
Your Compiler does not do propper IEEE math ... Please find out how to
make IEEE math work with your compiler and let me know (oetiker@ee.ethz.ch).
Check config.log to see what went wrong ...

do you guys have any clue whats up here?
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Fri Oct 11, 2002 10:41 am    Post subject: Reply with quote

I got an answer from tobias oetiker:

you that you have to figure out how to
compile the test code in configure.in propperly ...

any ideas how I should go on, doing that?

I read some posts about a -miee compile option helping sun users.. but that's it.

Could this have anything to do with my current compile flags:
CFLAGS="-march=i586 -m3dnow -O3 -pipe -fomit-frame-pointer -ffast-math -funroll-loops -fforce-addr -falign-function
s=4"

Thankyou in advance.
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Fri Oct 11, 2002 10:52 am    Post subject: Reply with quote

rrdtool-1.3.9 compiled fine with the following flags:

-march=i586 -02 -pipe

guess I was just optimizing too much :-)
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
flow23
n00b
n00b


Joined: 29 Nov 2002
Posts: 9
Location: Cologne, Germany

PostPosted: Sun Mar 16, 2003 5:52 pm    Post subject: I Know this is old Reply with quote

Just found it today and wanted to add my 2 cents:

For me it didn't compile with:
CFLAGS=-O3 -mcpu=pentium3 -march=i686 -ffast-math -fomit-frame-pointer -mmmx -msse -pipe

but compiled with:
CFLAGS=-O3 -mcpu=pentium3 -march=i686 -fomit-frame-pointer -mmmx -msse -pipe

so it seems to be the -ffast-math optimization.
Greetings from Cologne, Germany
fLOW
Back to top
View user's profile Send private message
kozmic
n00b
n00b


Joined: 29 Oct 2002
Posts: 33

PostPosted: Sun Jul 20, 2003 3:00 am    Post subject: Reply with quote

Thanks.

Removing --ffast-math helped me getting rrdtool installed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum