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.
Created attachment 760212 [details] Build log with failure in the end
Created attachment 760213 [details] Output of emerge --info =app-office/libreoffice-7.1.5.2
Bug was caused by presence of old libstdc++.so.6 (compiled by older g++ version) in ld search path.