[cfe-dev] Odd piece of Clang 2.1 behaviour

Ted Kremenek kremenek at apple.com
Wed Oct 12 11:19:43 PDT 2011


Are you sure you aren't just getting the gcc that was previously installed in /usr/bin?

On Oct 12, 2011, at 11:08 AM, Charles Davis wrote:

> 
> On Oct 12, 2011, at 5:10 AM, Jean-Daniel Dupas wrote:
> 
>> 
>> Le 12 oct. 2011 à 13:08, Dallman, John a écrit :
>> 
>>> Jean-Daniel Dupas wrote:
>>> 
>>>> The problem is that I don't think Apple support new features in GCC.
>>> 
>>> This is entirely survivable. The software has to be portable across a
>>> lot of platforms.
>>> 
>>>> Shouldn't be required, as this [-stdlib=libstdc++] is the default.
>>> 
>>> Making it explicit simply ensures it gets into documentation, and that
>>> we don't get surprised when the default changes.
>>> 
>>>> /Developer/usr/bin/gcc --version
>>>> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
>>>> build 5658) (LLVM build 2336.1.00)
>>> 
>>> llvm-gcc is the default gcc at Xcode 4.1, but that also has a non-LLVM
>>> gcc at /Developer/usr/bin/gcc-4.2. The information I have is that isn't
>>> present at Xcode 4.2.
>>> 
>> 
>> OK. No, there is no gcc-4.2 binary in Xcode 4.2.
> Yeah there is.
> $ xcodebuild -version
> Xcode 4.2
> Build version 4D199
> $ gcc-4.2 --version
> i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
> 
> It's just not installed into /Developer (because it isn't used anymore for Xcode itself).
> $ /Developer/usr/bin/gcc-4.2 --version
> -bash: /Developer/usr/bin/gcc-4.2: No such file or directory
> 
> Chip
> 
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list