Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libreoffice breaks with gcc rebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
GrandeGrabois
n00b
n00b


Joined: 16 Oct 2019
Posts: 12

PostPosted: Sun Nov 10, 2019 5:24 pm    Post subject: libreoffice breaks with gcc rebuild Reply with quote

Hello,

i've rebuild gcc two times in the past days. First was a reinstall of version 8.3.0, that was rebuild because of an mpfr update. Today, i updated to version 9.2.0. In both, libreoffice stoped working with the following error:
Code:
/usr/lib64/libreoffice/program/soffice.bin: relocation error: /usr/lib64/libreoffice/program/libmergedlo.so: symbol _ZSt14__once_functor version GLIBCXX_3.4.11 not defined in file libstdc++.so.6 with link time reference


In anycase, rebuilding libreoffice solves the problem. On the other hand, simply rebuilding libtool as the wiki says, did not.

My question is only if this is normal behaviour (having to rebuild libreoffice after rebuilding gcc) or if this is some sort of bug... Or maybe still, something that i'm doing wrong.
Lots of thanks!
Back to top
View user's profile Send private message
GDH-gentoo
Apprentice
Apprentice


Joined: 20 Jul 2019
Posts: 213
Location: South America

PostPosted: Mon Nov 11, 2019 6:30 pm    Post subject: Re: libreoffice breaks with gcc rebuild Reply with quote

GrandeGrabois wrote:
i've rebuild gcc two times in the past days. First was a reinstall of version 8.3.0, that was rebuild because of an mpfr update. Today, i updated to version 9.2.0. In both, libreoffice stoped working with the following error:
Code:
/usr/lib64/libreoffice/program/soffice.bin: relocation error: /usr/lib64/libreoffice/program/libmergedlo.so: symbol _ZSt14__once_functor version GLIBCXX_3.4.11 not defined in file libstdc++.so.6 with link time reference
In anycase, rebuilding libreoffice solves the problem.
[...]
My question is only if this is normal behaviour (having to rebuild libreoffice after rebuilding gcc) or if this is some sort of bug... Or maybe still, something that i'm doing wrong.
From here:
GrandeGrabois wrote:
Some days ago portage promped me to rebuild gcc because of a depency upgrade (mpc and mpfr). After the rebuild, libreoffice stoped working with the following error:
Code:
/usr/lib64/libreoffice/program/soffice.bin: relocation error: /usr/lib64/libreoffice/program/libmergedlo.so: symbol _ZSt11__once_call version GLIBCXX_3.4.11 not defined in file libstdc++.so.6 with link time reference
It should not be necessary to rebuild anything unless libstdc++, which every C++ program links to, is known to change ABI. Those cases are supposed to be the subject of a news item.

Your libstdc++ seems to have done that for unknown reasons, though: as far as I can tell, symbol _ZSt11__once_call exists if GCC's build system has detected that the toolchain supports thread local storage (TLS), and symbol _ZSt14__once_functor, if it has detected that the toolchain does not support TLS. I don't know why the build system seems to have changed opinion about TLS support in each rebuild.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum