Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libclangTidyHICPPModule.so.6.0.0svn link error #34765

Closed
llvmbot opened this issue Nov 25, 2017 · 2 comments
Closed

libclangTidyHICPPModule.so.6.0.0svn link error #34765

llvmbot opened this issue Nov 25, 2017 · 2 comments
Labels
bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Nov 25, 2017

Bugzilla Link 35417
Resolution FIXED
Resolved on Nov 25, 2017 00:53
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

With -DBUILD_SHARED_LIBS=on:

...
[3108/3491] Linking CXX shared library lib/libclangTidyHICPPModule.so.6.0.0svn                                                
FAILED: lib/libclangTidyHICPPModule.so.6.0.0svn                                                                                                    
: && /usr/bin/g++ -fPIC -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -
pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -
O3 -fdiagnostics-color=always -Wno-class-memaccess -Wno-implicit-fallthrough -march=native -pipe  -Wl,-z,defs   -Wl,-O3 -Wl,--gc-sections -shared -Wl,-soname,libclangTidyHICPPModu
le.so.6 -o lib/libclangTidyHICPPModule.so.6.0.0svn tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/ExceptionBaseclassCheck.cpp.o tools/clang/tools/ext
ra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/NoAssemblerCheck.cpp.o tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/HICPPTidyModule.cpp.o t
ools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib" lib/libclangAST.so.6.0.0svn lib/libclangASTMatch
ers.so.6.0.0svn lib/libclangBasic.so.6.0.0svn lib/libclangLex.so.6.0.0svn lib/libclangTidy.so.6.0.0svn lib/libclangTidyCppCoreGuidelinesModule.so.6.0.0svn lib/libclangTidyGoogleMo
dule.so.6.0.0svn lib/libclangTidyMiscModule.so.6.0.0svn lib/libclangTidyModernizeModule.so.6.0.0svn lib/libclangTidyReadabilityModule.so.6.0.0svn lib/libclangTidyUtils.so.6.0.0svn
 lib/libLLVMSupport.so.6.0.0svn && :                                                                                                                                               
tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/HICPPTidyModule.cpp.o:HICPPTidyModule.cpp:function std::_Function_handler<clang::tidy::ClangTidyCheck*
 (llvm::StringRef, clang::tidy::ClangTidyContext*), void clang::tidy::ClangTidyCheckFactories::registerCheck<clang::tidy::bugprone::UseAfterMoveCheck>(llvm::StringRef)::{lambda(ll
vm::StringRef, clang::tidy::ClangTidyContext*)#1}>::_M_invoke(std::_Any_data const&, llvm::StringRef&&, clang::tidy::ClangTidyContext*&&): error: undefined reference to 'vtable fo
r clang::tidy::bugprone::UseAfterMoveCheck'                                                                                                          
/usr/lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../x86_64-pc-linux-gnu/bin/ld: the vtable symbol may be undefined because the class is missing its key function                    
collect2: error: ld returned 1 exit status  

Adding lib/libclangTidyBugproneModule.so to the link command fixes the issue.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Nov 25, 2017

Thanks for the report. Should be fixed in r318972.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Nov 27, 2021

changed the description

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

1 participant