Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk) - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)
Date
Msg-id 3ADB0E83.768AC1C@alumni.caltech.edu
Whole thread Raw
In response to Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-hackers by date:

Previous
From: Juhan-Peep Ernits
Date:
Subject: Re: cvs postgres doesn't compile with libreadline 4.2
Next
From: Tom Lane
Date:
Subject: Re: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)