[compiler-rt] r240586 - One more change required to build the sanitizers for iOS.

Kuba Brecka kuba.brecka at gmail.com
Fri Jun 26 01:10:28 PDT 2015


Hi Chris,
this seems to break my OS X build of compiler-rt:

$ ninja
[16/57] Linking CXX shared library lib/clang/3.7.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib
FAILED: : && /usr/bin/c++  -fPIC ... -o lib/clang/3.7.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib ...
Undefined symbols for architecture x86_64:
  "__sanitizer::BufferedStackTrace::SlowUnwindStack(unsigned long, unsigned int)", referenced from:
      __sanitizer::BufferedStackTrace::Unwind(unsigned int, unsigned long, unsigned long, void*, unsigned long, unsigned long, bool) in sanitizer_stacktrace_libcdep.cc.o
  "__sanitizer::BufferedStackTrace::SlowUnwindStackWithContext(unsigned long, void*, unsigned int)", referenced from:
      __sanitizer::BufferedStackTrace::Unwind(unsigned int, unsigned long, unsigned long, void*, unsigned long, unsigned long, bool) in sanitizer_stacktrace_libcdep.cc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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.

Kuba

> Author: cbieneman
> Date: Wed Jun 24 15:13:44 2015
> New Revision: 240586
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=240586&view=rev <http://llvm.org/viewvc/llvm-project?rev=240586&view=rev>
> 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: http://reviews.llvm.org/D10696 <http://reviews.llvm.org/D10696>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150626/c11dfe95/attachment.html>


More information about the llvm-commits mailing list