pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brian Wipf <brian@clickspace.com>
Cc: pgsql-ports@postgresql.org
Cc: Brendan Duddridge <brendan@clickspace.com>
Cc: Guido Neitzer <lists@event-s.net>
Subject: Re: Compiling PostgreSQL 8.1.5 with 64-bit on a G5 SOLVED
Date: Mon, 27 Nov 2006 21:46:10 -0500
Message-ID: <27491.1164681970@sss.pgh.pa.us> (raw)
In-Reply-To: <CADD371E-2F1C-47F0-A492-A24D8273AF5D@clickspace.com>
References: <AB6F2081-C828-43EF-88DD-641196C61F33@clickspace.com>
	<24175.1164660535@sss.pgh.pa.us>
	<D4E50A09-DE45-4244-BC93-0529A10A2A56@clickspace.com>
	<26231.1164674902@sss.pgh.pa.us>
	<418CDBAD-CF9C-4A87-BB68-8DEF5F2912E0@clickspace.com>
	<26575.1164676678@sss.pgh.pa.us>
	<B4C37758-D690-473F-9E21-B659EF150F24@clickspace.com>
	<26816.1164677947@sss.pgh.pa.us>
	<CADD371E-2F1C-47F0-A492-A24D8273AF5D@clickspace.com>

Brian Wipf <brian@clickspace.com> writes:
> On 27-Nov-06, at 6:39 PM, Tom Lane wrote:
>> Try "make clean; make all" in src/test/regress and watch the make output
>> to see exactly how refint.so is getting built.  I suspect your 64-bit
>> CFLAGS are not getting propagated there for some reason.

> make -C ../../../contrib/spi refint.so autoinc.so
> gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith - 
> Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict- 
> aliasing -arch ppc64 -Wall -Wmissing-prototypes -Wpointer-arith - 
> Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict- 
> aliasing  -DREFINT_VERBOSE -I. -I../../src/include   -c -o refint.o  
> refint.c
> gcc -no-cpp-precomp -bundle -o refint.so refint.o - 
> bundle_loader ../../src/backend/postgres

Hm, well the -arch flag is getting to the gcc -c step OK, but I wonder
whether it is needed in the gcc -bundle (ie, link) step as well?

Please try this patch and see if it makes it better.  Also, please check
how file(1) describes refint.so now, and whether it changes after
re-making with the patch.  I get
	refint.so: Mach-O bundle ppc
on a regular PPC Mac, and I bet you need it to say "ppc64".

inline patch 1: Makefile.darwin, Makefile.darwin 28 Nov 2006 02:41:21 -0000 (+1/-1 lines) download inline-1.patchIndex: Makefile.darwin =================================================================== RCS file: /cvsroot/pgsql/src/makefiles/Makefile.darwin,v retrieving revision 1.9 diff -c -r1.9 Makefile.darwin *** Makefile.darwin 19 Jan 2006 21:19:12 -0000 1.9 --- Makefile.darwin 28 Nov 2006 02:41:21 -0000 *************** *** 13,18 **** # Rule for building shared libs (currently used only for regression test # shlib ... should go away, since this is not really enough knowledge) %.so: %.o ! $(CC) -bundle -o $@ $< $(BE_DLLLIBS) sqlmansect = 7 --- 13,18 ---- # Rule for building shared libs (currently used only for regression test # shlib ... should go away, since this is not really enough knowledge) %.so: %.o ! $(CC) $(CFLAGS) -bundle -o $@ $< $(BE_DLLLIBS) sqlmansect = 7
regards, tom lane

view thread (12+ messages)  latest in thread

Message-ID: <27491.1164681970@sss.pgh.pa.us>
Permalink:  ../27491.1164681970@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27491.1164681970@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, brian@clickspace.com, brendan@clickspace.com, lists@event-s.net
  Subject: Re: Compiling PostgreSQL 8.1.5 with 64-bit on a G5 SOLVED
  In-Reply-To: <27491.1164681970@sss.pgh.pa.us>
  References: <AB6F2081-C828-43EF-88DD-641196C61F33@clickspace.com> <24175.1164660535@sss.pgh.pa.us> <D4E50A09-DE45-4244-BC93-0529A10A2A56@clickspace.com> <26231.1164674902@sss.pgh.pa.us> <418CDBAD-CF9C-4A87-BB68-8DEF5F2912E0@clickspace.com> <26575.1164676678@sss.pgh.pa.us> <B4C37758-D690-473F-9E21-B659EF150F24@clickspace.com> <26816.1164677947@sss.pgh.pa.us> <CADD371E-2F1C-47F0-A492-A24D8273AF5D@clickspace.com> <27491.1164681970@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