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

Compilation issues on latest llvm 19 #9

Open
githubuser6000 opened this issue Jul 7, 2024 · 0 comments
Open

Compilation issues on latest llvm 19 #9

githubuser6000 opened this issue Jul 7, 2024 · 0 comments

Comments

@githubuser6000
Copy link

githubuser6000 commented Jul 7, 2024

[build] /usr/bin/ld: tooling/CMakeFiles/metareflect.dir/reflect.cpp.o:(.data.rel.ro._ZTI11ClassFinder[_ZTI11ClassFinder]+0x10): undefined reference to `typeinfo for clang::ast_matchers::MatchFinder::MatchCallback'
[build] /usr/bin/ld: tooling/CMakeFiles/metareflect.dir/reflect.cpp.o:(.data.rel.ro._ZTIZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_21FrontendActionFactoryESt14default_deleteIS5_EEPT_PNS0_19SourceFileCallbacksEE28FrontendActionFactoryAdapter[_ZTIZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_21FrontendActionFactoryESt14default_deleteIS5_EEPT_PNS0_19SourceFileCallbacksEE28FrontendActionFactoryAdapter]+0x10): undefined reference to `typeinfo for clang::tooling::FrontendActionFactory'
[build] /usr/bin/ld: tooling/CMakeFiles/metareflect.dir/reflect.cpp.o:(.data.rel.ro._ZTIZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_21FrontendActionFactoryESt14default_deleteIS5_EEPT_PNS0_19SourceFileCallbacksEEN28FrontendActionFactoryAdapter22ConsumerFactoryAdaptorE[_ZTIZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_21FrontendActionFactoryESt14default_deleteIS5_EEPT_PNS0_19SourceFileCallbacksEEN28FrontendActionFactoryAdapter22ConsumerFactoryAdaptorE]+0x10): undefined reference to `typeinfo for clang::ASTFrontendAction'
[build] clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[build] ninja: build stopped: subcommand failed.
[proc] The command: cmake --build metareflect/build --config Debug --target all -- exited with code: 1
[driver] Build completed: 00:00:04.742
[build] Build finished with exit code 1

I added all the libs I could find, but the error remains. What am I missing?

target_link_libraries(metareflect
    PRIVATE
    clangBasic
    clangFrontend
    clangSerialization
    clangTooling
    clangFrontend
    clangSerialization
    clangDriver
    clangParse
    clangSema
    clangAnalysis
    clangAST
    clangASTMatchers
    clangDynamicASTMatchers
    clangBasic
    clangEdit
    clangLex
    clangTooling
    LLVMBitstreamReader
    LLVMRemarks
    LLVMBinaryFormat
    LLVMCore
    LLVMipo
    LLVMScalarOpts
    LLVMInstCombine
    LLVMFrontendDriver
    LLVMTransformUtils
    LLVMAnalysis
    LLVMTarget
    LLVMOption
    LLVMMCParser
    LLVMMC 
    LLVMObject 
    LLVMBitReader
    LLVMCore
    LLVMSupport
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant