Re: Solaris SPARC - Sun compiler 5.5 - 64 bit

From: "Clark, Andrew" <Andrew(dot)Clark(at)fnf(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, <pgsql-ports(at)postgresql(dot)org>
Subject: Re: Solaris SPARC - Sun compiler 5.5 - 64 bit
Date: 2005-07-29 16:42:03
Message-ID: 74825F195D477C4995425A1313D646B114A8C8@smbfisyyz01.FNFIS.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Quick Summary:

1.

With the follow config:

./configure \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes \

I have the following config:

configure:1298: checking build system type
configure:1316: result: sparc-sun-solaris2.8
configure:1324: checking host system type
configure:1338: result: sparc-sun-solaris2.8
configure:1348: checking which template to use
configure:1449: result: solaris

2.

With the following config:

./configure \
CFLAGS="-v -DSUNOS4_CC" \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes

I have the following config:

configure:1298: checking build system type
configure:1316: result: sparc-sun-solaris2.8
configure:1324: checking host system type
configure:1338: result: sparc-sun-solaris2.8
configure:1348: checking which template to use
configure:1449: result: solaris

3.

With the following config:

./configure \
CFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2 -DSUNOS4_CC" \
LDFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
LDFLAGS_SL="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes

I have the following config:

configure:1298: checking build system type
configure:1316: result: sparc-sun-solaris2.8
configure:1324: checking host system type
configure:1338: result: sparc-sun-solaris2.8
configure:1348: checking which template to use
configure:1449: result: solaris

4.

./configure \
CFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
LDFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
LDFLAGS_SL="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes

I have the following config:

configure:1298: checking build system type
configure:1316: result: sparc-sun-solaris2.8
configure:1324: checking host system type
configure:1338: result: sparc-sun-solaris2.8
configure:1348: checking which template to use
configure:1449: result: solaris

NOTES:

1 and 2 can compile and they both produce 32bit bins and libs.
3 can compile and it produces 64bit bins and libs.
4 can't compile (fbe fails)

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: July 29, 2005 12:18 PM
To: Clark, Andrew
Cc: Peter Eisentraut; pgsql-ports(at)postgresql(dot)org
Subject: Re: [PORTS] Solaris SPARC - Sun compiler 5.5 - 64 bit

I wrote:
> "Clark, Andrew" <Andrew(dot)Clark(at)fnf(dot)com> writes:
>> Well that definitely did something, but now I get a different error:

> OK, thanks for the confirmation. There was some discussion recently
> of whether we shouldn't add -DSUNOS4_CC to the solaris template, but
> we didn't have proof.

Actually, this doesn't prove anything one way or the other. Because you
were manually specifying CFLAGS, and thereby overriding the template,
the lack of -DSUNOS4_CC in the manual CFLAGS caused the s_lock.c
failure.

So: which template did configure pick on your machine, anyway?
(This is reported in the first few lines of configure output)

regards, tom lane

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 2005-07-29 16:58:20 Re: Solaris SPARC - Sun compiler 5.5 - 64 bit
Previous Message Tom Lane 2005-07-29 16:17:45 Re: Solaris SPARC - Sun compiler 5.5 - 64 bit