2013-04-19 9 views
5

Sto cercando di usare --thread-sanitizer possibilità di clang su OSX:Come utilizzare il disinfettante per filetti clang su 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) 

Sembra un errore di collegamento. Dovrei collegarmi con alcune librerie aggiuntive?

+0

Trovato un errore in macports: http://trac.macports.org/ticket/38528, non deve essere ancora risolto – grep

risposta

2

ThreadSanitizer non è ancora supportato su Darwin per C++. È improbabile che ciò cambi in almeno mezzo anno.

+0

Qualche fonte per questo? – jupp0r

Problemi correlati