मैं पर OSX बजना की --thread-sanitizer
विकल्प का उपयोग करने की कोशिश कर रहा हूँ:ओएसएक्स पर क्लैंग थ्रेड सैनिटाइज़र का उपयोग कैसे करें?
$ 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)
एक सम्बन्ध त्रुटि की तरह लग रहा। क्या मुझे कुछ अतिरिक्त libs के साथ लिंक करना चाहिए?
मैकपोर्ट्स में एक बग मिला: http://trac.macports.org/ticket/38528, अभी तक तय नहीं होना चाहिए – grep