Summary: | sys-devel/gcc[nls]: failure when building older GCC with newer GCC (msgfmt: symbol lookup error: /usr/lib/libicuuc.so.68: undefined symbol: _ZSt14__once_functor, version GLIBCXX_3.4.11) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | admnd, dflogeras2, lebkoungcity, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=295480 https://bugs.gentoo.org/show_bug.cgi?id=372377 https://bugs.gentoo.org/show_bug.cgi?id=841955 https://bugs.gentoo.org/show_bug.cgi?id=867196 https://bugs.gentoo.org/show_bug.cgi?id=886447 https://bugs.gentoo.org/show_bug.cgi?id=892816 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 sys-devel:gcc-10.3.1_p20211126:20220507-035622.log.bz2 temp.tar.bz2 |
Description
Toralf Förster
2022-05-07 09:01:38 UTC
Created attachment 777239 [details]
emerge-info.txt
Created attachment 777242 [details]
emerge-history.txt
Created attachment 777245 [details]
environment
Created attachment 777248 [details]
etc.portage.tar.bz2
Created attachment 777251 [details]
logs.tar.bz2
Created attachment 777254 [details]
sys-devel:gcc-10.3.1_p20211126:20220507-035622.log.bz2
Created attachment 777257 [details]
temp.tar.bz2
This is unfixable, pretty much. It's because gettext (msgfmt) is linked with libxml2 which is linked with ICU which here has been built with libstdc++ from a newer GCC (12 here). You can workaround with USE="-nls" but it's the same thing as trying to downgrade GCC in general: https://wiki.gentoo.org/wiki/Upgrading_GCC#Downgrading_GCC. *** Bug 843107 has been marked as a duplicate of this bug. *** (In reply to Sam James from comment #8) > This is unfixable, pretty much. It's because gettext (msgfmt) is linked with > libxml2 which is linked with ICU which here has been built with libstdc++ > from a newer GCC (12 here). > > You can workaround with USE="-nls" but it's the same thing as trying to > downgrade GCC in general: > https://wiki.gentoo.org/wiki/Upgrading_GCC#Downgrading_GCC. I think I was slightly brash here: I don't think LD_LIBRARY_PATH should necessarily be set for the gettext calls to e.g. msgfmt. But it's somewhat low priority given the above and it has a workaround. *** Bug 776733 has been marked as a duplicate of this bug. *** *** Bug 855611 has been marked as a duplicate of this bug. *** Heh, we did actually have a patch for this in the past! $ find . | grep -i msgfmt | sort ./4.7.4/gentoo/20_all_msgfmt-libstdc++-link.patch ./4.8.4/gentoo/20_all_msgfmt-libstdc++-link.patch ./4.8.5/gentoo/20_all_msgfmt-libstdc++-link.patch ./4.9.2/gentoo/20_all_msgfmt-libstdc++-link.patch ./4.9.3/gentoo/20_all_msgfmt-libstdc++-link.patch ./4.9.4/gentoo/20_all_msgfmt-libstdc++-link.patch ./5.1.0/gentoo/20_all_msgfmt-libstdc++-link.patch ./5.2.0/gentoo/20_all_msgfmt-libstdc++-link.patch ./5.3.0/gentoo/20_all_msgfmt-libstdc++-link.patch ./5.4.0/gentoo/20_all_msgfmt-libstdc++-link.patch ./5.5.0/gentoo/06_all_msgfmt-libstdc++-link.patch We just need to bring it up to date. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93868fad1ad8671a100060a34e3de0238d2fd865 commit 93868fad1ad8671a100060a34e3de0238d2fd865 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-03 02:19:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-03 02:19:06 +0000 sys-devel/gcc: fix USE=nls w/ newer GCC for 12.1.1* Not that it really matters here for now, hence not doing 12.1.0 etc. Bug: https://bugs.gentoo.org/843119 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-12.1.1_p20220702.ebuild | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a57e9564140ad377454ea6f6be9369ac05c0732 commit 6a57e9564140ad377454ea6f6be9369ac05c0732 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-03 02:10:51 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-03 02:10:51 +0000 sys-devel/gcc: fix USE=nls w/ newer GCC for 11.{3,4}.0 Bug: https://bugs.gentoo.org/843119 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 2 ++ sys-devel/gcc/gcc-11.3.0.ebuild | 2 +- sys-devel/gcc/gcc-11.3.1_p20220701.ebuild | 2 +- sys-devel/gcc/{gcc-11.4.9999.ebuild => gcc-11.3.9999.ebuild} | 0 4 files changed, 4 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=294855c97d8d182b59d0fc34ac721d6a2358fb87 commit 294855c97d8d182b59d0fc34ac721d6a2358fb87 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-03 01:50:28 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-03 01:50:41 +0000 sys-devel/gcc: fix USE=nls w/ newer GCC for 10.4.0 Bug: https://bugs.gentoo.org/843119 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-10.4.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=1a5882abf01ae085e999ddcf4d208105e21e1a0d commit 1a5882abf01ae085e999ddcf4d208105e21e1a0d Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-03 02:03:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-03 02:22:11 +0000 10.4.0, 11.3.0, 11.4.0, 12.1.0: add gettext/msgfmt libstdc++ patch Fixes building w/ USE=nls using a newer GCC. Bug: https://bugs.gentoo.org/843119 Signed-off-by: Sam James <sam@gentoo.org> 10.4.0/gentoo/33_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++++++++++++ 10.4.0/gentoo/README.history | 3 ++ 11.3.0/gentoo/27_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++++++++++++ 11.3.0/gentoo/README.history | 3 ++ 11.4.0/gentoo/27_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++++++++++++ 11.4.0/gentoo/README.history | 3 ++ 12.1.0/gentoo/29_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++++++++++++ 12.1.0/gentoo/README.history | 3 ++ 8 files changed, 168 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6fb906ef2da01327d64cea263887ef34c97c1bbf commit 6fb906ef2da01327d64cea263887ef34c97c1bbf Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2022-09-18 07:15:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-30 00:13:22 +0000 10.3.0: backport glibc 2.36, gettext/msgfmt patch from 10.4.0 Bug: https://bugs.gentoo.org/295480 Bug: https://bugs.gentoo.org/372377 Bug: https://bugs.gentoo.org/843119 Bug: https://bugs.gentoo.org/864717 Bug: https://bugs.gentoo.org/865879 Closes: https://github.com/gentoo/gcc-patches/pull/2 Signed-off-by: Sam James <sam@gentoo.org> 10.3.0/gentoo/36_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++ 10.3.0/gentoo/37_all_glibc_236.patch | 68 ++++++++++++++++++++++++ 10.3.0/gentoo/README.history | 4 ++ 3 files changed, 111 insertions(+) *** Bug 892816 has been marked as a duplicate of this bug. *** |