From: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Douglas Carmichael <dcarmich(at)chef(dot)ourservers(dot)net> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk) |
Date: | 2001-04-16 15:23:47 |
Message-ID: | 3ADB0E83.768AC1C@alumni.caltech.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> No, those don't do it. We need an actual NaN value. These are just
> flags, I think.
> > >> >> gmake -C adt SUBSYS.o
> > >> >> gmake[4]: Entering directory `/usr/users/dcarmich/postgresql-7.1/src/
> > >> >> backend/utils/adt'
> > >> >> cc -std -O4 -Olimit 2000 -I../../../../src/include -c -o float.o float.c
> > >> >> cc: Error: float.c, line 251: In this statement, the libraries on this
> > >> >> platform do not yet support compile-time evaluation of the constant
> > >> >> expression "0.0/0.0". (constfoldns)
> > >> >> val = NAN;
> > >> >> ------------------------------^
Where does the "-O4" come from? That level of optimization probably is
forcing the compile-time constant folding, which is causing trouble.
Try backing off to "-O2" or turn off optimization all together and I'll
bet it will compile. Another possibility is to go into the adt/
subdirectory, compile float.o by cutting and pasting the line above
(substituting -O0 for -O4) and then go back up and resume the make from
the top.
- Thomas
From | Date | Subject | |
---|---|---|---|
Next Message | matthew green | 2001-04-16 16:15:56 | re: NetBSD "Bad address" failure (was Re: Third call for platform testing) |
Previous Message | Allan C Huffman | 2001-04-16 14:48:07 | RedHat/Postgres.pm Error |