[MacPorts] #31717: postgresql91 segfaults on OS X 10.7 when built with Xcode 4.2
MacPorts
noreply at macports.org
Sat Nov 5 04:54:10 PDT 2011
#31717: postgresql91 segfaults on OS X 10.7 when built with Xcode 4.2
-------------------------------+--------------------------------------------
Reporter: francis@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: haspatch | Port: postgresql91
-------------------------------+--------------------------------------------
Comment(by francis@…):
Replying to [comment:7 howarth@…]:
> Replying to [comment:1 ryandesign@…]:
> > The default compiler on Xcode 4.2 is clang. Please try llvm-gcc-4.2;
if that works, we want to use that, not apple-gcc-4.2.
> >
> > If really only apple-gcc-4.2 works, then more code is needed than what
you added in the patch; see wiki:PortfileRecipes#compiler
> >
> > What about the older postgresql ports? Are they affected too?
>
> Are you sure about that? Every machine which I have installed Xcode 4.2
on (for both Lion and SL) has the system compiler set to llvm-gcc (instead
of clang)?
You're right - on my machine the default compiler is llvm too:
{{{
francis at jupiter ~ $ uname -a
Darwin jupiter.repton.int 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9
20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
francis at jupiter ~ $ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
francis at jupiter ~ $ cc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
}}}
However, postgresql91 segfaults for me without postgresql91-llvm-
gcc-4.2.diff and works fine with postgresql91-llvm-gcc-4.2.diff applied.
Perhaps MacPorts defaults to clang even though the system default compiler
is llvm-gcc? https://trac.macports.org/wiki/ProblemHotlist suggests that:
''If a port foo fails to build and you're using Xcode 4.2 or later, the
default compiler is clang; try compiling with llvm-gcc-4.2 instead''
Have you tried doing a "\dt" on a postgresql91 built on 10.7 with Xcode
4.2? Did it work for you with/without the patch?
--
Ticket URL: <https://trac.macports.org/ticket/31717#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list