Re: [GENERAL] Can't Build 7.3.4 on OS X - Mailing list pgsql-bugs

From Theodore Petrosky
Subject Re: [GENERAL] Can't Build 7.3.4 on OS X
Date
Msg-id 20030921014419.58830.qmail@web41001.mail.yahoo.com
Whole thread Raw
Responses Re: [GENERAL] Can't Build 7.3.4 on OS X  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
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@sss.pgh.pa.us> wrote:
> Hunter Hillegas <lists@lastonepicked.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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpq.a must be ranlibed after installation
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Can't Build 7.3.4 on OS X