Re: [PORTS] solaris build problem with Sun compilers

Alan Stange <[email protected]> Thu, 11 May 2006 17:41:28 -0400
Newsgroups gmane.comp.db.postgresql.ports
Organization Renaissance Technologies Corp.
Message-ID <[email protected]>
Tom Lane wrote:
> Alan Stange <[email protected]> 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

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster