<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 8, 2015 at 2:39 AM, Benjamin Kramer <span dir="ltr"><<a href="mailto:benny.kra@gmail.com" target="_blank">benny.kra@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Oct 7, 2015 at 10:25 PM, David Blaikie via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">So I decided to try to improve my iterative dev time (instigated by playing around with LLD) & while LLVM passes all its test with cmake BUILD_SHARED_LIBS=ON, clang does not. I hit the following error.<br><br>Has anyone seen this/worked around it/know what it's about?<br></div></blockquote><div><br></div></span><div>It was a bug ;) <span style="font-size:12.8px">r249608 should help.</span></div></div></div></div></blockquote><div><br></div><div>Seems to have done the trick - thanks a bunch!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">- Ben</span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><div dir="ltr"><pre style="color:rgb(0,0,0)">/usr/local/google/home/blaikie/install/bin/clang++ -fcolor-diagnostics -Wdeprecated -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Werror -std=c++11 -fcolor-diagnostics -fno-common -Woverloaded-virtual -Wno-nested-anon-types -g -Wl,-allow-shlib-undefined tools/clang/unittests/Driver/CMakeFiles/ClangDriverTests.dir/ToolChainTest.cpp.o tools/clang/unittests/Driver/CMakeFiles/ClangDriverTests.dir/MultilibTest.cpp.o -o tools/clang/unittests/Driver/ClangDriverTests lib/libgtest.so.3.8.0svn lib/libgtest_main.so.3.8.0svn lib/libLLVMSupport.so.3.8.0svn lib/libclangDriver.so.3.8.0svn -Wl,-rpath,"\$ORIGIN/../lib" && :
/usr/local/google/home/blaikie/dev/llvm/src/tools/clang/unittests/Driver/ToolChainTest.cpp:31: error: undefined reference to 'clang::DiagnosticIDs::DiagnosticIDs()'
/usr/local/google/home/blaikie/dev/llvm/src/tools/clang/unittests/Driver/ToolChainTest.cpp:33: error: undefined reference to 'clang::DiagnosticsEngine::DiagnosticsEngine(llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> const&, clang::DiagnosticOptions*, clang::DiagnosticConsumer*, bool)'
/usr/local/google/home/blaikie/dev/llvm/src/tools/clang/unittests/Driver/ToolChainTest.cpp:35: error: undefined reference to 'clang::vfs::InMemoryFileSystem::InMemoryFileSystem()'
/usr/local/google/home/blaikie/dev/llvm/src/tools/clang/unittests/Driver/ToolChainTest.cpp:58: error: undefined reference to 'clang::vfs::InMemoryFileSystem::addFile(llvm::Twine const&, long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >)'
/usr/local/google/home/blaikie/dev/llvm/src/tools/clang/unittests/Driver/ToolChainTest.cpp:72: error: undefined reference to 'clang::DiagnosticsEngine::~DiagnosticsEngine()'
/usr/local/google/home/blaikie/dev/llvm/src/tools/clang/unittests/Driver/ToolChainTest.cpp:32: error: undefined reference to 'clang::DiagnosticConsumer::~DiagnosticConsumer()'
/usr/local/google/home/blaikie/dev/llvm/src/tools/clang/include/clang/Basic/Diagnostic.h:1313: error: undefined reference to 'vtable for clang::DiagnosticConsumer'
/usr/local/google/home/blaikie/install/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/usr/local/google/home/blaikie/dev/llvm/src/include/llvm/ADT/IntrusiveRefCntPtr.h:54: error: undefined reference to 'clang::DiagnosticIDs::~DiagnosticIDs()'
tools/clang/unittests/Driver/CMakeFiles/ClangDriverTests.dir/ToolChainTest.cpp.o:/usr/local/google/home/blaikie/dev/llvm/src/tools/clang/unittests/Driver/ToolChainTest.cpp:vtable for (anonymous namespace)::ToolChainTest_VFSGCCInstallation_Test::TestBody()::TestDiagnosticConsumer: error: undefined reference to 'clang::DiagnosticConsumer::IncludeInDiagnosticCounts() const'
tools/clang/unittests/Driver/CMakeFiles/ClangDriverTests.dir/ToolChainTest.cpp.o:/usr/local/google/home/blaikie/dev/llvm/src/tools/clang/unittests/Driver/ToolChainTest.cpp:vtable for (anonymous namespace)::ToolChainTest_VFSGCCInstallation_Test::TestBody()::TestDiagnosticConsumer: error: undefined reference to 'clang::DiagnosticConsumer::HandleDiagnostic(clang::DiagnosticsEngine::Level, clang::Diagnostic const&)'
clang-3.4: error: linker command failed with exit code 1 (use -v to see invocation)</pre></div>
<br></span>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div></div>