Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830009 - app-office/libreoffice-7.1.7.2 build fails with unresolved reference
Summary: app-office/libreoffice-7.1.7.2 build fails with unresolved reference
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-26 14:49 UTC by Alexander Peshkov
Modified: 2022-10-17 09:05 UTC (History)
4 users (show)

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


Attachments
Build log with failure in the end (build.log.xz,187.25 KB, application/x-xz)
2021-12-26 14:51 UTC, Alexander Peshkov
Details
Output of emerge --info =app-office/libreoffice-7.1.5.2 (emerge--info.log,7.51 KB, text/plain)
2021-12-26 14:55 UTC, Alexander Peshkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Peshkov 2021-12-26 14:49:04 UTC
When performing @world update last 3 or 4 times libreoffice build fails. The most relevant error message is:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-7.1.7.2/work/libreoffice-
7.1.7.2/instdir/sdk/lib/libuno_sal.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'



Reproducible: Always

Steps to Reproduce:
Performing any kind of libreoffice-related emerge, for example
# emerge -1auD --verbose-conflicts --keep-going -j8 @system @world
or
# emerge @preserved-rebuild
I always get same link-time error.
Actual Results:  
With --keep-going switch emerge resumes, previous version of libreoffice (7.1.5.2 10(Build:2)) remains in the system.

Expected Results:  
Installed new version of libreoffice.

Unresolved reference appears to be c++ related but gcc instead g++ is used as linker. Manually changing it to g++ makes problematic command from the log pass successfully.
Comment 1 Alexander Peshkov 2021-12-26 14:51:36 UTC
Created attachment 760212 [details]
Build log with failure in the end
Comment 2 Alexander Peshkov 2021-12-26 14:55:41 UTC
Created attachment 760213 [details]
Output of emerge --info =app-office/libreoffice-7.1.5.2
Comment 3 Alexander Peshkov 2022-10-17 09:05:25 UTC
Bug was caused by presence of old libstdc++.so.6 (compiled by older g++ version) in ld search path.