SUMMARY: gcc 3.4.0

From: Don Newcomer <newcomer_at_dickinson.edu>
Date: Mon, 14 Jun 2004 15:50:50 -0400 (EDT)

Thanks to Paul A Sand <pas_at_unh.edu> and Karl Vogel <kvo_at_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_at_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.
Received on Mon Jun 14 2004 - 19:52:45 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT