• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: clang-llvm: Tracking core OS crashes (Found! It's the 10.4 SDK)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clang-llvm: Tracking core OS crashes (Found! It's the 10.4 SDK)


  • Subject: Re: clang-llvm: Tracking core OS crashes (Found! It's the 10.4 SDK)
  • From: Rich Siegel <email@hidden>
  • Date: Thu, 10 Sep 2009 08:25:20 -0400

On 9/9/09 at 11:10 PM, email@hidden (Brian Barnes) wrote:

Apple guys/gals -- here's where the problem lays.  It's the 10.4 SDK.

clang-llvm on 10.5, compiles without a problem, runs fine
clang-llvm on 10.4, crashes in OS routines (usually interface routines)

I'm pretty certain that 10.4 is not a supported deployment target for binaries built with clang, although I can't find mention as such in the 3.2 release notes.


To the best of my recall and experience, the target compatibility of compilers and SDKs goes something like this:

gcc-4.0: target i386/ppc, sdk 10.4, 10.5, 10.6
gcc-4.2: target i386/ppc, sdk 10.4, 10.5, 10.6 -- see note 1
llvm-gcc-4.2 target i386, sdk 10.5, 10.6 -- see note 2
clang target i386, sdk 10.5, 10.6 -- see note 3


1.  I have found that when building ppc binaries using gcc-4.2 for
    deployment on 10.4, the resulting binary is built for ppc7400,
    which prevents it from running on ppc750 (G3) machines. The
    workaround is to use GCC_VERSION[arch=ppc] = 4.0 for building
    ppc binaries in this situation.

2.  llvm-gcc-4.2 seems to build as well as gcc-4.2 using the 10.5
    SDK, but there seem to be pretty serious problems with C++
    exceptions, at least in my experience - setting "break on throw"
    exception breakpoints doesn't work, and my app crashes when the
    first C++ exception is thrown. (The break-on-throw problem is
    logged as 6993813, one of my colleagues reported the crash, but
    I don't have the case number.)

3.  clang's support for C++ is incomplete to the point that the
    build system invokes gcc to compile C++ when you have selected
    clang.

Recently, Chris Espinosa wrote:

Apple's default and recommended compiler for Snow Leopard is gcc-4.2.

With the caveat about needing to use gcc-4.0 if you want to run on G3 machines, I think it's wise to stick to that default and recommendation...


R.
--
Rich Siegel                                 Bare Bones Software, Inc.
<email@hidden>                      <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: clang-llvm: Tracking core OS crashes (Found! It's the 10.4 SDK)
      • From: Brian Barnes <email@hidden>
References: 
 >Re: clang-llvm: Tracking core OS crashes (Found! It's the 10.4 SDK) (From: Brian Barnes <email@hidden>)

  • Prev by Date: Re: GCD and blocks cross development
  • Next by Date: Re: clang-llvm: Tracking core OS crashes (Found! It's the 10.4 SDK)
  • Previous by thread: Re: clang-llvm: Tracking core OS crashes (Found! It's the 10.4 SDK)
  • Next by thread: Re: clang-llvm: Tracking core OS crashes (Found! It's the 10.4 SDK)
  • Index(es):
    • Date
    • Thread