Re: [GENERAL] Can't Build 7.3.4 on OS X

From: Theodore Petrosky <tedpet5(at)yahoo(dot)com>
To: pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: [GENERAL] Can't Build 7.3.4 on OS X
Date: 2003-09-21 01:44:19
Message-ID: 20030921014419.58830.qmail@web41001.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general pgsql-hackers


Tom,

I was totally unable to get 3.3 to work. Even with the
switch. My method is to switch with the script to 3.1
to make postgresql. (for mac OS X)

sudo gcc_select 3.1

works fine through 7.4 beta 3.

Ted

--- Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Hunter Hillegas <lists(at)lastonepicked(dot)com> writes:
> > I cannot build the latest release on OS X Jaguar.
> > Running GCC 3.3 from Apple:
>
> It seems "-traditional-cpp" has become
> nontraditional in 3.3. Or
> possibly Apple changed their system header files in
> a way that broke
> that preprocessor. What's certain is that gcc 3.3
> rejects some of
> the Darwin header files when using -traditional-cpp.
> This is not our
> fault ;-).
>
> It seems to work okay if you change -traditional-cpp
> to -no-cpp-precomp
> in src/template/darwin (you will need to rerun
> configure afterwards).
>
> Experimenting, I find that Apple's gcc 3.1 and 3.3
> both build PG fine
> with that switch. Their latest update of gcc 2.95
> no longer seems to
> work at all (it generates invalid assembler code for
> xlog.c).
>
> I tried removing the cpp option entirely, but that
> blew up in other
> places, and I have no interest in figuring out why
> just now.
>
> Is anyone on the list still running OS X 10.1, or
> anyway still using a
> version of the OS X developer tools older than the
> Dec 2002 release?
> It would be good to check if -no-cpp-precomp creates
> any problems on
> any release that anyone still cares about. For the
> moment, I've made
> src/template/darwin unconditionally use
> -no-cpp-precomp, but we could
> probably hack it to use -traditional-cpp if there's
> still any interest
> in Darwin compiler versions that don't recognize
> -no-cpp-precomp.
>
> regards, tom lane

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-09-21 02:25:22 Re: [GENERAL] Can't Build 7.3.4 on OS X
Previous Message Tom Lane 2003-09-20 21:27:44 Re: libpq.a must be ranlibed after installation

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-09-21 02:25:22 Re: [GENERAL] Can't Build 7.3.4 on OS X
Previous Message Lamar Owen 2003-09-21 00:32:46 Re: State of Beta 2

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-09-21 02:25:22 Re: [GENERAL] Can't Build 7.3.4 on OS X
Previous Message Tom Lane 2003-09-21 00:50:25 Re: PostgreSQL not ACID compliant?