[Lldb-commits] OSX cmake+ninja build broken by [lldb] r225398 - lldb-platform - static link all llvm dependencies

Dawn Perchik dperchik at embarcadero.com
Fri Jan 9 10:47:21 PST 2015

Vince Harron <vharron <at> google.com> writes:
> Author: vharron
> Date: Wed Jan  7 15:35:07 2015
> New Revision: 225398
> URL: http://llvm.org/viewvc/llvm-project?rev=225398&view=rev
> Log:
> lldb-platform - static link all llvm dependencies
> Differential Revision: http://reviews.llvm.org/D6797
> lldb-gdbserver statically links all llvm dependencies. This allows
> dead stripping code and reduces total binary size.
> This change modifies lldb-plaform to static link llvm dependencies
> like lldb-gdbserver.

Our upstream build has been broken since this commit and is preventing us from
merging.   Vince, can you please have a look?  Build errors are:

Undefined symbols for architecture x86_64:
  "_liblldb_coreVersionString", referenced from:
      lldb_private::GetVersion() in lldb.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[6/12] Linking CXX shared library lib/liblldb.3.6.0.dylib
ninja: build stopped: subcommand failed.

Build commands used are:
cmake -G Ninja .. "-DLLVM_TARGETS_TO_BUILD=ARM;X86;AArch64" \
   -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" -DCMAKE_BUILD_TYPE=Debug


PS: I'm using my work e-mail since burble.org is down - when it recovers you
might get another e-mail about this - if so, please ignore :) .

More information about the lldb-commits mailing list