[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OS X Lion / Xcode 4.1 / problem compiling tarsnap
I've also just found that it does compile fine (with -O2) using
Xcode 4.1's /usr/bin/gcc-4.2:
"Using built-in specs.
Target: i686-apple-darwin11
Configured with:
/private/var/tmp/gcc/gcc-5666.3~278/src/configure
--disable-checking --enable-werror --prefix=/usr
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--program-prefix=i686-apple-darwin11-
--host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)"
but not with Xcode 4.1's /usr/bin/gcc (which is actually /usr/bin/llvm-gcc-4.2):
"Using built-in specs.
Target: i686-apple-darwin11
Configured with:
/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure
--disable-checking --enable-werror
--prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm-
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local
--program-prefix=i686-apple-darwin11-
--host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)"
I don't know what was the position under the previous Xcode 4.0
(I can't go back to that) but I do note:
http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_4-1.html
"The default compiler for iOS development in Xcode 4.1 is
LLVM-GCC 4.2. Compared with the GCC compiler that was the
default in Xcode 4.0, LLVM-GCC provides better code generation
and optimization than GCC, while being exactly source compatible
with GCC 4.2."
- John, jman@home.org