Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539332 - 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<..
Summary: sys-devel/llvm-3.5.1 - ld: ClangCheck.o: ClangCheck.cpp: : undefined referenc...
Status: RESOLVED DUPLICATE of bug 515882
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-08 11:36 UTC by Attila Stehr
Modified: 2015-02-08 13:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
portage build log (llvm-3.5.1_build_log.xz,92.21 KB, application/x-xz)
2015-02-08 11:38 UTC, Attila Stehr
Details
emerge --info (llvm-3.5.1_emerge_info,19.15 KB, text/plain)
2015-02-08 11:39 UTC, Attila Stehr
Details
environment log (llvm-3.5.1_environment.xz,33.57 KB, application/x-xz)
2015-02-08 11:39 UTC, Attila Stehr
Details
manual build output (llvm-3.5.1_manual_build_log.out,130.74 KB, text/plain)
2015-02-08 11:40 UTC, Attila Stehr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Stehr 2015-02-08 11:36:34 UTC
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 #
Comment 1 Attila Stehr 2015-02-08 11:38:43 UTC
Created attachment 395880 [details]
portage build log
Comment 2 Attila Stehr 2015-02-08 11:39:13 UTC
Created attachment 395884 [details]
emerge --info
Comment 3 Attila Stehr 2015-02-08 11:39:48 UTC
Created attachment 395886 [details]
environment log
Comment 4 Attila Stehr 2015-02-08 11:40:38 UTC
Created attachment 395888 [details]
manual build output
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-08 13:30:26 UTC

*** This bug has been marked as a duplicate of bug 515882 ***