<div dir="ltr">This is from the openSUSE buildbot so its always a clean build. lldb is placed under tools along with clang (libcxx, libcxxabi is enabled too fwiw). Exact compile line is:<div><br></div><div><div>cmake -G "Ninja" \</div><div>      -DBUILD_SHARED_LIBS=ON \<br></div><div>      -DCMAKE_BUILD_TYPE=RelWithDebInfo \</div><div>      -DCMAKE_INSTALL_PREFIX=%{_prefix} \<br></div><div>      -DLLVM_LIBDIR_SUFFIX=64 \<br></div><div>      -DLLVM_REQUIRES_RTTI=ON \<br></div><div>      -DLLVM_ENABLE_TIMESTAMPS=OFF \</div><div>      -DLLVM_ENABLE_ASSERTIONS=ON \</div><div>      -DLLVM_ENABLE_PIC=ON \</div><div>      -DLLVM_BINUTILS_INCDIR=/usr/include \<br></div><div>      -DLLVM_TARGETS_TO_BUILD=all \</div><div>      -DLLVM_ENABLE_FFI=ON \</div><div>      -DLLVM_INCLUDE_TESTS=OFF \</div><div>      -DLLVM_ENABLE_LIBCXX=ON \<br></div><div>      ..<br></div></div><div><br></div><div>Thanks.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 25, 2014 at 5:04 PM, Vince Harron <span dir="ltr"><<a href="mailto:vharron@google.com" target="_blank">vharron@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">The debian buildbot and many others are able to build.  What is your exact build process?</p>
<p dir="ltr">Have you tried doing a clean checkout/build?</p>
<div class="gmail_quote"><div><div class="h5">On Nov 25, 2014 5:27 AM, "İsmail Dönmez" <<a href="mailto:ismail@donmez.ws" target="_blank">ismail@donmez.ws</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>For the last week or so my combined llvm+clang+lldb build fails while linking lldb-gdbserver:</div><div><br></div><div><div> lib/liblldbHost.a(Host.cpp.o): In function `lldb_private::Host::RunShellCommand(char const*, char const*, int*, int*, std::</div><div>__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, unsigned int, bool)':</div><div> /home/abuild/rpmbuild/BUILD/llvm/stage2/../tools/lldb/source/Host/common/Host.cpp:578: warning: the use of `mktemp' is dang</div><div>erous, better use `mkstemp'</div><div> lib/liblldbExpression.a(ClangExpressionParser.cpp.o): In function `ClangExpressionParser':</div><div> /home/abuild/rpmbuild/BUILD/llvm/stage2/../tools/lldb/source/Expression/ClangExpressionParser.cpp:127: undefined reference</div><div>to `llvm::sys::getDefaultTargetTriple()'</div><div> lib/liblldbExpression.a(ClangExpressionParser.cpp.o): In function `lldb_private::ClangExpressionParser::Parse(lldb_private:</div><div>:Stream&)':</div><div> /home/abuild/rpmbuild/BUILD/llvm/stage2/../tools/lldb/source/Expression/ClangExpressionParser.cpp:315: undefined reference</div><div>to `llvm::sys::fs::createTemporaryFile(llvm::Twine const&, llvm::StringRef, int&, llvm::SmallVectorImpl<char>&)'</div><div> /home/abuild/rpmbuild/BUILD/llvm/stage2/../tools/lldb/source/Expression/ClangExpressionParser.cpp:311: undefined reference</div><div>to `llvm::sys::fs::createUniqueFile(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>&, unsigned int)'</div><div> /home/abuild/rpmbuild/BUILD/llvm/stage2/../tools/lldb/source/Expression/ClangExpressionParser.cpp:339: undefined reference</div><div>to `llvm::MemoryBuffer::getMemBufferCopy(llvm::StringRef, llvm::Twine const&)'</div><div> tools/lldb/tools/lldb-gdbserver/CMakeFiles/lldb-gdbserver.dir/__/__/source/lldb.cpp.o: In function `lldb_private::Initializ</div><div>e()':</div><div> /home/abuild/rpmbuild/BUILD/llvm/stage2/../tools/lldb/source/lldb.cpp:130: undefined reference to `llvm::install_fatal_erro</div><div>r_handler(void (*)(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool), void*</div><div>)'</div></div><div><br></div><div>[lots of similar errors]</div><div><br></div><div>This seems to be due to failing to link to LLVMSupport library which could be fixed by</div><div><br></div><div><div>--- lldb/cmake/LLDBDependencies.cmake</div><div>+++ lldb/cmake/LLDBDependencies.cmake</div><div>@@ -161,6 +161,7 @@ set( LLVM_LINK_COMPONENTS<br></div><div>   mcdisassembler</div><div>   executionengine</div><div>   option</div><div>+  support</div><div>   )</div><div> </div></div><div><br></div><div>but then I hit more undefined symbols elsewhere. So I am wondering if I am the only one hitting this error.</div><div><br></div><div>Regards,</div><div>ismail</div><div><br></div></div>
<br></div></div>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div>
</blockquote></div><br></div>