<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Chris,</div><div class="">this seems to break my OS X build of compiler-rt:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">$ ninja</div><div class="">[16/57] Linking CXX shared library lib/clang/3.7.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib</div><div class="">FAILED: : && /usr/bin/c++  -fPIC ... -o lib/clang/3.7.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib ...</div><div class="">Undefined symbols for architecture x86_64:</div><div class="">  "__sanitizer::BufferedStackTrace::SlowUnwindStack(unsigned long, unsigned int)", referenced from:</div><div class="">      __sanitizer::BufferedStackTrace::Unwind(unsigned int, unsigned long, unsigned long, void*, unsigned long, unsigned long, bool) in sanitizer_stacktrace_libcdep.cc.o</div><div class="">  "__sanitizer::BufferedStackTrace::SlowUnwindStackWithContext(unsigned long, void*, unsigned int)", referenced from:</div><div class="">      __sanitizer::BufferedStackTrace::Unwind(unsigned int, unsigned long, unsigned long, void*, unsigned long, unsigned long, bool) in sanitizer_stacktrace_libcdep.cc.o</div><div class="">ld: symbol(s) not found for architecture x86_64</div><div class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)</div></div><div class=""><br class=""></div></blockquote>Note that my CMake configuration is `-DCMAKE_BUILD_TYPE=Debug -DCOMPILER_RT_DEBUG=On`, which looks like is the reason why the buildbots build fine.  They build the release version, and here call to `SlowUnwindStack` is optimized out.<div class=""><br class=""></div><div class="">Kuba<br class=""><br class=""><blockquote type="cite" class=""><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">Author: cbieneman
Date: Wed Jun 24 15:13:44 2015
New Revision: 240586

URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D240586-26view-3Drev&d=AwMFAg&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=6KJ7cDTjsYPUJQVgmelmOXAbPH4HH2QA55wrK90Y86A&s=CYFzT-bjdm2O1oJDi6WcL-RRDoh6gOpa4SVC6tAxKq4&e=" class="">http://llvm.org/viewvc/llvm-project?rev=240586&view=rev</a>
Log:
One more change required to build the sanitizers for iOS.

Summary: _Unwind_Backtrace is not available on iOS, so we should ifdef out the posix implementations of BufferedStackTrace::SlowUnwindStack and BufferedStackTrace::SlowUnwindStackWithContext on iOS.

Reviewers: samsonov

Reviewed By: samsonov

Subscribers: llvm-commits

Differential Revision: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D10696&d=AwMFAg&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=6KJ7cDTjsYPUJQVgmelmOXAbPH4HH2QA55wrK90Y86A&s=Spp0vkTnrAn8MapkKglYt7RTCGmkSeSfbf7kbVnF1Ig&e=" class="">http://reviews.llvm.org/D10696</a>
</pre></blockquote><div class=""><br class=""></div></div></body></html>