Compiling rustc on OSX 10.6 fails with "Symbol not found: __tlv_bootstrap" · Issue #10842 · rust-lang/rust (original) (raw)

The full relevant part of the error:

compile_and_link: x86_64-apple-darwin/stage0/lib/rustc/x86_64-apple-darwin/lib/libstd.dylib
dyld: Symbol not found: __tlv_bootstrap
  Referenced from: /Users/agrif/local/rust/x86_64-apple-darwin/stage0/bin/../lib/libstd-6425b930ca146ae9-0.9-pre.dylib
  Expected in: /usr/lib/libSystem.B.dylib
 in /Users/agrif/local/rust/x86_64-apple-darwin/stage0/bin/../lib/libstd-6425b930ca146ae9-0.9-pre.dylib

It looks like __tlv_bootstrap is a marker symbol for the thread local variables rust uses, and this is available in 10.7 but not 10.6.

@alexcrichton provided me with this snippet of LLVM code that fails to link in both GCC and Clang with the same error.

OSX 10.6 is still listed in the README as a supported platform. I'd love to be able to compile this under 10.6, but if not, remember to update that readme.