On Sep 26, 2011, at 2:47 PM, Russ Cox wrote:
> On Mon, Sep 26, 2011 at 3:23 PM, Anthony Sorace <[email protected]> wrote:
>> Do you have reason to believe this is a Lion issue? I'm running
>> Xcode 4.1 on Snow Leopard and libthread is buggered for me,
>> as well (I don't currently have a Lion system to confirm it's
>> buggered in the same way).
>
> No, I believe it is an Xcode 4.1 issue.
> However, I don't know how to obtain
> Xcode 4.1 for Snow Leopard, only Lion.
> How did you get it?
I believe Xcode 4.1 has been out since an iOS 4.x release. Xcode
4.2 is still in beta as it is bundled with iOS 5 beta. There is
a strong chance that the gnu toolchain in that release could our
culprit, akin to Russ' suspect of getcontext/setcontext. It may
also be that the 4.1 release was the first one where llvm-gcc was
also an option. My other build issue is in libstdio:
% 9c -v dtoa.c
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)
/usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/cc1 -quiet -v
-I/usr/local/plan9/include -imultilib x86_64 -iprefix
/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/ -dD -D__DYNAMIC__
-DPLAN9PORT dtoa.c -fPIC -quiet -dumpbase dtoa.c -mmacosx-version-min=10.7.1
-m64 -mtune=core2 -auxbase dtoa -g3 -O2 -Wall -Wno-parentheses
-Wno-missing-braces -Wno-switch -Wno-comment -Wno-sign-compare
-Wno-unknown-pragmas -version -fno-omit-frame-pointer -o
/var/folders/bl/0lxz1p188xl3x1006s6bjlhh0000gn/T//cc8g6Ba2.s
ignoring nonexistent directory
"/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
ignoring nonexistent directory
"/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/plan9/include
/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include
/usr/local/include
/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
(i686-apple-darwin11)
compiled by GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM
build 2335.15.00).
GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=65536
Compiler executable checksum: edef36ecca2ce3f93d0f78610b5af911
dtoa.c:491: error: ‘FPdbleword’ undeclared
dtoa.c:491: error: expected expression before ‘)’ token
dtoa.c:492: error: expected expression before ‘)’ token
dtoa.c:493: error: expected expression before ‘)’ token
...