Re: Missing libstdc++ symlink in the 10.6 SDK from Xcode 4.3?
Re: Missing libstdc++ symlink in the 10.6 SDK from Xcode 4.3?
- Subject: Re: Missing libstdc++ symlink in the 10.6 SDK from Xcode 4.3?
- From: Jamie Kirkpatrick <email@hidden>
- Date: Wed, 29 Feb 2012 09:43:56 +0100
Here's the output from the two compilers on my system:
jkp@143 [09:41:23] [~]
-> % clang++ -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -print-search-dirs
programs: =/usr/bin:/usr/bin:/usr/bin/../../../../usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1:/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1:/usr/bin/../../../../usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin9/4.2.1:/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin9/4.2.1:/usr/bin/../../../../usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1:/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1:/usr/bin/../../../../usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin12/4.2.1:/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin12/4.2.1:/usr/bin/../../../../usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin13/4.2.1:/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin13/4.2.1
libraries: =/usr/bin/../lib/clang/3.1
jkp@143 [09:41:34] [~]
-> % g++ -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -print-search-dirs
install: /Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/
programs: =/usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/:/usr/llvm-gcc-4.2/bin/../libexec/gcc/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/:/usr/libexec/gcc/i686-apple-darwin11/4.2.1/:/usr/libexec/gcc/i686-apple-darwin11/:/usr/lib/gcc/i686-apple-darwin11/4.2.1/:/usr/lib/gcc/i686-apple-darwin11/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/bin/i686-apple-darwin11/4.2.1/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/bin/:/Applications/Xcode.app/Contents/Dev
eloper/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/bin/i686-apple-darwin11/4.2.1/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/bin/
libraries: =/lib/i686-apple-darwin11/4.2.1/x86_64/:/lib/x86_64/:/usr/lib/i686-apple-darwin11/4.2.1/x86_64/:/usr/lib/x86_64/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/x86_64/:/usr/llvm-gcc-4.2/bin/../lib/gcc/x86_64/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/x86_64/:/usr/lib/gcc/i686-apple-darwin11/4.2.1/x86_64/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/lib/i686-apple-darwin11/4.2.1/x86_64/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/lib/x86_64/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/lib/i686-apple-darwin11/4.2.1/x86_64/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/lib/x86_64/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../i686-apple-darw
in11/4.2.1/x86_64/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../x86_64/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../i686-apple-darwin11/4.2.1/x86_64/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../x86_64/:/lib/i686-apple-darwin11/4.2.1/:/lib/:/usr/lib/i686-apple-darwin11/4.2.1/:/usr/lib/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/:/usr/llvm-gcc-4.2/bin/../lib/gcc/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/:/usr/lib/gcc/i686-apple-darwin11/4.2.1/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/lib/i686-apple-darwin11/4.2.1/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/lib/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin1
1/lib/i686-apple-darwin11/4.2.1/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/lib/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../i686-apple-darwin11/4.2.1/:/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../i686-apple-darwin11/4.2.1/:/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../
jkp@143 [09:41:43] [~]
-> %
Looks fairly busted.
--
jkp
On Tuesday, 28 February 2012 at 11:46, Anders Montonen wrote:
>
> On Feb 28, 2012, at 12:09, Andreas Grosam wrote:
> > On Feb 27, 2012, at 7:56 PM, Jamie Kirkpatrick wrote:
> >
> > > Seems that clang++ isn't behaving itself like llvm-g++. If I force the use of llvm-g++ things build as expected: clang++ doesn't seem to add the correct directories to the search path as you indicated it should. Is this a bug?
> > It would be worth to know which library path clang++ uses. It seems, we couldn't figure out that.
> >
> > If you get actually linker errors when compiling with Xcode using clang and the usual setup - then this would be certainly a bug. However, I don't get a linker error. On the other hand, unless we know which library clang uses and whether this path is actually correct, it's worth to investigate further. To me, the paths set in gcc look like a mess. Many of them just are plainly wrong.
>
> I've seen the same error when building with clang from the command line (ie. not via Xcode) using the 10.6 SDK. Building an Xcode project using the clang+10.6 SDK combination works.
>
> -a
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden (mailto:email@hidden))
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden (mailto:email@hidden)
_______________________________________________
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