| Summary: | sys-devel/llvm-3.5.1 - ld: ClangCheck.o: ClangCheck.cpp: : undefined reference to `vtable for std::unique_ptr<clang::tooling::FrontendActionFactory, std::default_delete<clang::tooling::Fr ontendActionFactory> > clang::tooling::newFrontendActionFactory<.. | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Attila Stehr <as.gentoo> |
| Component: | [OLD] Development | Assignee: | Bernard Cafarelli <voyageur> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | mgorny |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
portage build log
emerge --info environment log manual build output |
||
Created attachment 395880 [details]
portage build log
Created attachment 395884 [details]
emerge --info
Created attachment 395886 [details]
environment log
Created attachment 395888 [details]
manual build output
*** This bug has been marked as a duplicate of bug 515882 *** |
update to sys-devel/llvm-3.5.1 by using sys-devel/gcc-4.7.4 fails with /mnt/ramdisk/portage/sys-devel/llvm-3.5.1/work/llvm-3.5.1.src/Makefile.rules:937: recipe for target 'remove-cstr-calls/.makeall' failed make[1]: *** [remove-cstr-calls/.makeall] Error 2 After updating to sys-devel/gcc-4.9.2 building llvm (and clang) works as expected. Reproducible: Always Steps to Reproduce: emerge llvm doesn't help: * not using tmpfs for PORTAGE_TMPDIR * unmerging llvm (and clang) first * CFLAGS="-O1 -pipe -mtune=generic" CXXFLAGS="${CFLAGS} MAKEOPTS="-j1" * USE="gold" * --with-bdeps=y respectively =n Actual Results: * InitHeaderSearch.cpp ... * Fixing install dirs * abi_x86_64.amd64: running multilib-minimal_abi_src_configure * abi_x86_64.amd64: running multilib-minimal_abi_src_compile * ERROR: sys-devel/llvm-3.5.1::gentoo failed (compile phase): * emake failed --- The logfile contains some entries like this: /mnt/ramdisk/portage/sys-devel/llvm-3.5.1/work/llvm-3.5.1.src-abi_x86_64.amd64/tools/clang/tools/extra/remove-cstr-calls/Release/RemoveCStrCalls.o: In function `std::unique_ptr<clang::tooling::FrontendActionFactory, std::default_delete<clang::tooling::FrontendActionFactory> > \ clang::tooling::newFrontendActionFactory<clang::ast_matchers::MatchFinder>(clang::ast_matchers::MatchFinder*, \ clang::tooling::SourceFileCallbacks*)::FrontendActionFactoryAdapter::ConsumerFactoryAdaptor::ConsumerFactoryAdaptor(clang::ast_matchers::MatchFinder*, \ clang::tooling::SourceFileCallbacks*)': RemoveCStrCalls.cpp:(.text._ZZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_\ 21FrontendActionFactoryESt14default_deleteIS5_EEPT_PNS0_19SourceFileCallbacksEEN28FrontendActionFactoryAdapter22ConsumerFactoryAdaptorC2EPS3_\ SC_[_ZZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_21FrontendActionFactoryESt14default_deleteIS5_EEPT_\ PNS0_19SourceFileCallbacksEEN28FrontendActionFactoryAdapter22ConsumerFactoryAdaptorC5EPS3_SC_]+0x27): undefined reference to \ `vtable for std::unique_ptr<clang::tooling::FrontendActionFactory, std::default_delete<clang::tooling::FrontendActionFactory> > clang::tooling::newFrontendActionFactory<clang::ast_matchers::MatchFinder>(\ clang::ast_matchers::MatchFinder*, clang::tooling::SourceFileCallbacks*)::FrontendActionFactoryAdapter::ConsumerFactoryAdaptor' collect2: error: ld returned 1 exit status /mnt/ramdisk/portage/sys-devel/llvm-3.5.1/work/llvm-3.5.1.src/Makefile.rules:1432: recipe for target '/mnt/ramdisk/portage/sys-devel/llvm-3.5.1\ /work/llvm-3.5.1.src-abi_x86_64.amd64/Release/bin/remove-cstr-calls' failed make[2]: *** [/mnt/ramdisk/portage/sys-devel/llvm-3.5.1/work/llvm-3.5.1.src-abi_x86_64.amd64/Release/bin/remove-cstr-calls] Error 1 make[2]: Leaving directory '/mnt/ramdisk/portage/sys-devel/llvm-3.5.1/work/llvm-3.5.1.src-abi_x86_64.amd64/tools/clang/tools/extra/remove-cstr-calls' /mnt/ramdisk/portage/sys-devel/llvm-3.5.1/work/llvm-3.5.1.src/Makefile.rules:937: recipe for target 'remove-cstr-calls/.makeall' failed make[1]: *** [remove-cstr-calls/.makeall] Error 2 make[1]: *** Waiting for unfinished jobs.... llvm[3]: Compiling Transforms.cpp for Release build manual build using gcc version 4.7.4 _does_ work: /mnt/ramdisk/llvm-3.5.1.src $> make clean && ./configure && make -j5 $> ./configure --help | grep -A2 clang --enable-clang-arcmt Enable building of clang ARCMT (default is YES) --enable-clang-plugin-support Enable plugin support in clang (default is YES) --enable-clang-static-analyzer Enable building of clang Static Analyzer (default is YES) ### emerge --info didn't fit in here #