pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Stange <stange@rentec.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-ports@postgresql.org
Subject: Re: solaris build problem with Sun compilers
Date: Thu, 11 May 2006 17:41:28 -0400
Message-ID: <4463AF88.4020301@rentec.com> (raw)
In-Reply-To: <19090.1147381499@sss.pgh.pa.us>
References: <44638DE3.6040507@rentec.com>
	<19090.1147381499@sss.pgh.pa.us>

Tom Lane wrote:
> Alan Stange <stange@rentec.com> writes:
>> it appears that there's a problem building postgresql with 
>> --enable-debug on Solaris with the Sun compilers.
> 
> Nobody else has complained of this, so the least you could do is
> identify which Solaris version and exactly which compiler you're
> talking about.  

I just tried building on all of these combinations:

Solaris 10:   compilers 6.2 and 11
Solaris 9:    compilers  8, 9, 10, 11
Solaris 8:    compilers  6.2, 9, 11

Postgresql 8.1.3 fails to compile on all of them with --enable-debug

I can run this back to older compilers as well, if needed.

> What are the risks that we break every other
> Solaris version/compiler if we remove those directives?

none that I'm aware of.

It's been a decade since I've done any serious sparc assembler, but my 
first thought on seeing this C code was that the .section directives 
didn't belong.  Perhaps they might have been needed on SunOS4 systems, 
but I don't think it was.

Either way, add an -xO0 with --enable-debug if you really want to keep 
the directives, but that's just masking the underlying problem.

-- Alan



view thread (37+ messages)  latest in thread

Message-ID: <4463AF88.4020301@rentec.com>
Permalink:  ../4463AF88.4020301@rentec.com/
Also on:    postgresql.org/message-id/4463AF88.4020301@rentec.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: stange@rentec.com, tgl@sss.pgh.pa.us
  Subject: Re: solaris build problem with Sun compilers
  In-Reply-To: <4463AF88.4020301@rentec.com>
  References: <44638DE3.6040507@rentec.com> <19090.1147381499@sss.pgh.pa.us> <4463AF88.4020301@rentec.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox