X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C09B09FA278 for ; Thu, 11 May 2006 18:41:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 93650-01 for ; Thu, 11 May 2006 18:41:32 -0300 (ADT) X-Greylist: delayed 02:23:29.497368 by SQLgrey- Received: from centaur.rentec.com (centaur.rentec.com [216.223.240.8]) by postgresql.org (Postfix) with ESMTP id 4AA1A9FA19B for ; Thu, 11 May 2006 18:41:31 -0300 (ADT) Received: from ram.rentec.com (ram [192.5.35.66]) by centaur.rentec.com (8.13.6/8.12.1) with ESMTP id k4BLfT5w020771 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 May 2006 17:41:29 -0400 (EDT) X-Source: non-mednet Received: from [172.26.132.145] (hoopoe.rentec.com [172.26.132.145]) by ram.rentec.com (8.13.1/8.12.1) with ESMTP id k4BLfSRc026760; Thu, 11 May 2006 17:41:28 -0400 (EDT) Message-ID: <4463AF88.4020301@rentec.com> Date: Thu, 11 May 2006 17:41:28 -0400 From: Alan Stange Reply-To: stange@rentec.com Organization: Renaissance Technologies Corp. User-Agent: Mail/News 1.5.0.2 (X11/20060427) MIME-Version: 1.0 To: Tom Lane CC: pgsql-ports@postgresql.org Subject: Re: solaris build problem with Sun compilers References: <44638DE3.6040507@rentec.com> <19090.1147381499@sss.pgh.pa.us> In-Reply-To: <19090.1147381499@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Logged: Logged by centaur.rentec.com as k4BLfT5w020771 at Thu May 11 17:41:29 2006 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/16 X-Sequence-Number: 2397 Tom Lane wrote: > Alan Stange 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