How to use cotton thread disinfectant on OSX?

I am trying to use the --thread-sanitizerclang option for OSX:

$ clang++ -fthread-sanitizer -fpic tsan1.cc
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
[...]
clang -cc1 version 4.2 based upon LLVM 3.2svn default target x86_64-apple-darwin12.3.0
[...]
Undefined symbols for architecture x86_64:
  "___tsan_func_entry", referenced from:
      threadfunc(void*) in tsan1-6f7gbr.o
[...]
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Sounds like a binding error. Should I reference some additional libraries?

+5
source share
1 answer

ThreadSanitizer is not supported in Darwin for C ++. This is unlikely to change for at least six months.

+2
source

All Articles