Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 571640

Summary: app-office/libreoffice-5.0.4.2: undefined reference to `orcus::csv::parse_error::parse_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
Product: Gentoo Linux Reporter: Vladimir <v_2e>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.xz

Description Vladimir 2016-01-12 09:33:18 UTC
Created attachment 422648 [details]
build.log.xz

app-office/libreoffice-5.0.4.2 fails to build with the following error message:

/CxxObject/sc/source/ui/docshell/datastream.o: In function `sc::datastreams::ReaderThread::execute()':
datastream.cxx:(.text._ZN2sc11datastreams12ReaderThread7executeEv[_ZN2sc11datastreams12ReaderThread7executeEv]+0x950): undefined reference to `orcus::csv::parse_error::parse_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
/var/tmp/portage/app-office/libreoffice-5.0.4.2/work/libreoffice-5.0.4.2/sc/Library_sc.mk:10: recipe for target '/var/tmp/portage/app-office/libreoffice-5.0.4.2/work/libreoffice-5.0.4.2/instdir/program/libsclo.so' failed
make[1]: *** [/var/tmp/portage/app-office/libreoffice-5.0.4.2/work/libreoffice-5.0.4.2/instdir/program/libsclo.so] Error 1

Please see the complete log (attached compressed) for details.
Here is also a wgetpasted log https://gist.github.com/c75eefb40ce682db7868
Comment 1 eroen 2016-01-12 12:53:50 UTC
2015-10-22-gcc-5-new-c++11-abi
  Title                     GCC 5 Defaults to the New C++11 ABI
  Author                    Mike Frysinger <vapier@gentoo.org>
  Posted                    2015-10-22
  Revision                  2

GCC 5 uses the new C++ ABI by default.  When building new code, you might run
into link time errors that include lines similar to:
...: undefined reference to '_ZNSt6chrono12steady_clock3nowEv@GLIBCXX_3.4.17'

Or you might see linkage failures with "std::__cxx11::string" in the output.

These are signs that you need to rebuild packages using the new C++ ABI.
You can quickly do so by using revdep-rebuild (from gentoolkit).

For gentoolkit-0.3.1 or higher:
# revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

For previous versions of gentoolkit:
# revdep-rebuild --library 'libstdc\+\+\.so\.6' -- --exclude gcc

For more details, feel free to peruse:
https://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/
https://blogs.gentoo.org/blueness/2015/03/10/the-c11-abi-incompatibility-problem-in-gentoo/



PS: Please add the output of `emerge --info` to your bug reports as mentioned on lines 41851 to 41856 of the attached log. :)
Comment 2 Vladimir 2016-01-13 13:42:42 UTC
(In reply to eroen from comment #1)
> 
> For gentoolkit-0.3.1 or higher:
> # revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc
> 
It helped. Thank you very much!