X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DBBEED7242; Fri, 2 Sep 2005 00:45:22 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63929-10; Fri, 2 Sep 2005 03:45:21 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 614EAD71FD; Fri, 2 Sep 2005 00:45:19 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j823alkO010053; Thu, 1 Sep 2005 23:36:51 -0400 (EDT) To: Martijn de Munnik Cc: pgsql-ports@postgresql.org, pgsql-bugs@postgresql.org Subject: Re: [PORTS] Compile with Solaris 10 AMD 64bit Sun CC In-reply-to: <5D9CD747-D04D-46BC-BCE8-AF5FAD89F108@gmail.com> References: <5D9CD747-D04D-46BC-BCE8-AF5FAD89F108@gmail.com> Comments: In-reply-to Martijn de Munnik message dated "Fri, 02 Sep 2005 03:04:19 +0200" Date: Thu, 01 Sep 2005 23:36:47 -0400 Message-ID: <10052.1125632207@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/3 X-Sequence-Number: 12743 Martijn de Munnik writes: > I'm trying to compile PostgreSQL 8.0.3 on a Sun Solaris 10 box, dual > opteron and using the sun studio cc compiler. I get the following error; It looks to me like we currently cover amd64 only for gcc. Do you want to roll up your sleeves and fix that, or is it easier just to use gcc? If the former, look at: src/include/storage/s_lock.h There's a chunk of code here that's #if defined(__sun) && defined(__i386) This probably needs to also allow whatever Sun's compiler defines as the CPU symbol for amd64. src/backend/port/tas/solaris_i386.s It sounds like this contains code that is not quite syntactically right for amd64. We manage to share code between i386 and amd64 for gcc, so maybe that's fixable; if not, you'll need to create a parallel file with the right assembler syntax for amd64. src/template/solaris There's a "case $host" here that may need modification, especially if you decide you need a separate .s file. It's worth your while to fix this, because the performance with --disable-spinlocks will seriously suck. If you do fix it, please send in a patch. regards, tom lane