SUMMARY: gcc 3.4.0

From: Don Newcomer (newcomer@dickinson.edu)
Date: Mon Jun 14 2004 - 15:50:50 EDT


Thanks to Paul A Sand <pas@unh.edu> and Karl Vogel <kvo@seagha.com> for
their suggestions. Paul suggested:

Haven't tackled gcc yet, but
I had a similar (maybe the same) problem in compiling gdb.

My notes say I included the lines

    #include <float.h>
    #define NAN DBL_QNAN

in libiberty/floatformat.c to make things work better.

Hope this helps, no warranties expressed or implied, etc.

-----

...and Karl said:

This looks familiar.. I bumped into this myself when porting OpenPKG-current
(http://www.openpkg.org) to Tru64 V5.1-1.

The solution is to add '-ieee' to the compile flags.

-----

Doing the two suggestions allowed the compile to succeed.

Don Newcomer
Senior Manager, Systems
Infrastructure Systems Department
Library and Information Services
Dickinson College
P.O. Box 1773
Carlisle, PA 17013
717-245-1256 (Voice)
717-245-1690 (FAX)
newcomer@dickinson.edu

> Has anyone managed to compile gcc 3.4.0 under Tru64 version 5.1B yet? When
> I try I get this error:
>
> cc -c -DHAVE_CONFIG_H -g -I. -I./../include floatformat.c -o floatformat.o
> cc: Error: floatformat.c, line 319: In this statement, the libraries on this pla
> tform do not yet support compile-time evaluation of the constant expression "0.0
> /0.0". (constfoldns)
> dto = NAN;
> --------------^
> make[1]: *** [floatformat.o] Error 1
> make[1]: Leaving directory `/usr/local/source/gcc-3.4.0/libiberty'
> make: *** [all-libiberty] Error 2
>
>
> Is there a workaround? Thanks in advance.



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:01 EDT