pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Martijn de Munnik <martijndemunnik@gmail.com>
Cc: pgsql-ports@postgresql.org
Cc: pgsql-bugs@postgresql.org
Subject: Re: [PORTS] Compile with Solaris 10 AMD 64bit Sun CC
Date: Thu, 01 Sep 2005 23:36:47 -0400
Message-ID: <10052.1125632207@sss.pgh.pa.us> (raw)
In-Reply-To: <5D9CD747-D04D-46BC-BCE8-AF5FAD89F108@gmail.com>
References: <5D9CD747-D04D-46BC-BCE8-AF5FAD89F108@gmail.com>

Martijn de Munnik <martijndemunnik@gmail.com> 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



view thread (3+ messages)

Message-ID: <10052.1125632207@sss.pgh.pa.us>
Permalink:  ../10052.1125632207@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10052.1125632207@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, martijndemunnik@gmail.com, pgsql-bugs@postgresql.org
  Subject: Re: [PORTS] Compile with Solaris 10 AMD 64bit Sun CC
  In-Reply-To: <10052.1125632207@sss.pgh.pa.us>
  References: <5D9CD747-D04D-46BC-BCE8-AF5FAD89F108@gmail.com> <10052.1125632207@sss.pgh.pa.us>

* 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