pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Stange <stange@rentec.com>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: 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 20:26:33 -0400
Message-ID: <4463D639.3030802@rentec.com> (raw)
In-Reply-To: <200605112316.k4BNGeB17324@candle.pha.pa.us>
References: <200605112316.k4BNGeB17324@candle.pha.pa.us>

Bruce Momjian wrote:
> Tom Lane wrote:
>   
>> Alan Stange <stange@rentec.com> writes:
>>     
>>> Tom Lane wrote:
>>>       
>>>> 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
>>>       
>> OK, that's a reasonably convincing sample ;-).  Will fix.  Thanks
>> for the report!
>>     
>
> Uh, backend/port/tas/solaris*.s ASM files have "section" like:
>
> 	         .section        ".text"
>
> Are these OK?  I didn't see you report any problems with these.
>   
Without looking at the code (I'm home now) the main difference is that 
the .s file will somewhere need a .text section.  The issue in a .c file 
is that one is already in the context of a .text section given that one 
is in the tas_dummy() {} basic block.   The .data and .text sections in 
the embedded asm code is then just confusing the assembler.  When the 
optimizer is turned on, the .sections are possibly relocated, which 
allows the fbe backend to successfully compute the .size value.


I'll remove the _tas: assembler code from the s_lock.c file and test if 
the code compiles/runs on one or two solaris+compiler combinations.   
I'll certainly compile on all again just to be sure.

-- Alan



view thread (37+ messages)  latest in thread

Message-ID: <4463D639.3030802@rentec.com>
Permalink:  ../4463D639.3030802@rentec.com/
Also on:    postgresql.org/message-id/4463D639.3030802@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, pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us
  Subject: Re: solaris build problem with Sun compilers
  In-Reply-To: <4463D639.3030802@rentec.com>
  References: <200605112316.k4BNGeB17324@candle.pha.pa.us> <4463D639.3030802@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