Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892816 - sys-devel/gcc:8.5.0, sys-devel/gcc:9.5.0: backport gettext/libstdc++ fix?
Summary: sys-devel/gcc:8.5.0, sys-devel/gcc:9.5.0: backport gettext/libstdc++ fix?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-01 12:03 UTC by David Flogeras
Modified: 2023-02-12 02:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Flogeras 2023-02-01 12:03:20 UTC
Since upgrading my system to gcc:12, and rebuilding world the two older compilers both failed with something like:

Making all in po
make[5]: Entering directory '/var/tmp/portage/sys-devel/gcc-9.5.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/po'
msgfmt -o de.mo /var/tmp/portage/sys-devel/gcc-9.5.0/work/gcc-9.5.0/libstdc++-v3/po/de.po
msgfmt: /var/tmp/portage/sys-devel/gcc-9.5.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib64/libicuuc.so.72)
make[5]: *** [Makefile:550: de.mo] Error 1

Which looks like they are trying to run msgfmt (now compiled with GCC12 abi) against the local, older, libstd++.

I worked around it by setting USE="-nls" for those two compilers.

Reproducible: Always
Comment 1 David Flogeras 2023-02-01 12:04:11 UTC
emerge --info
Portage 3.0.43 (python 3.10.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.36-r5, 5.15.88-gentoo x86_64)
=================================================================
System uname: Linux-5.15.88-gentoo-x86_64-Intel-R-_Core-TM-_i7-10700_CPU_@_2.90GHz-with-glibc2.36
KiB Mem:    65791452 total,  23739524 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 26 Jan 2023 21:00:01 +0000
Head commit of repository gentoo: c36439c1dbcc3a89dcb31b0d5beea17550a4c224
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.7.4 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.9.16::gentoo, 3.10.9::gentoo
dev-lang/rust:             1.66.1::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             8.5.0-r1::gentoo, 9.5.0::gentoo, 10.4.1_p20230119-r1::gentoo, 11.3.1_p20230120-r1::gentoo, 12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

crossdev
    location: /usr/local/portage
    masters: gentoo guru
    priority: 0
    volatile: True

guru
    location: /home/gendev/guru
    masters: gentoo
    priority: 1
    volatile: True

Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.0/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.0/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -pipe -O2"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu jpeg kde kwallet lcms libglvnd libnotify libtirpc mad mng mozbranding mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds qml qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust threads tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xft xinerama xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Mike Gilbert gentoo-dev 2023-02-04 19:39:30 UTC

*** This bug has been marked as a duplicate of bug 843119 ***
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-04 21:38:46 UTC
I'd say it's not a dupe given it's a request to handle the earlier versions and I guess it's useful to keep them buildable if it's trivial, but meh.
Comment 4 David Flogeras 2023-02-07 22:44:35 UTC
Can confirm that 33_all_msgfmt-libstdc++-link.patch from gcc-10.5.0-patches-4.tar.xz seems to work here for both gcc:8 and gcc:9 building with gcc:12 and USE="nls" re-enabled.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-07 22:45:52 UTC
(In reply to David Flogeras from comment #4)
> Can confirm that 33_all_msgfmt-libstdc++-link.patch from
> gcc-10.5.0-patches-4.tar.xz seems to work here for both gcc:8 and gcc:9
> building with gcc:12 and USE="nls" re-enabled.

I'll make the time to do the backport & new patchsets if you file the bug for that sanitizer issue on musl ;)
Comment 6 David Flogeras 2023-02-08 01:04:58 UTC
Hahah yup it's on my list, just waiting for that chroot to finish baking so I can repro the exact log, didn't forget :)
Comment 7 Larry the Git Cow gentoo-dev 2023-02-08 01:14:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4fc7049d963e6c1045fd65e9dfbe2d69eacea0f

commit a4fc7049d963e6c1045fd65e9dfbe2d69eacea0f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-08 01:13:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-08 01:13:59 +0000

    sys-devel/gcc: backport gettext/libstdc++ fix to 8.5.0/9.5.0
    
    Closes: https://bugs.gentoo.org/892816
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest            | 4 ++--
 sys-devel/gcc/gcc-8.5.0-r1.ebuild | 7 ++++---
 sys-devel/gcc/gcc-9.5.0.ebuild    | 4 ++--
 3 files changed, 8 insertions(+), 7 deletions(-)
Comment 8 Larry the Git Cow gentoo-dev 2023-02-12 02:39:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=19c4c47cef978f07b4a605aa772f4478751d2e63

commit 19c4c47cef978f07b4a605aa772f4478751d2e63
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-08 01:09:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-08 01:09:01 +0000

    9.5.0: add 31_all_msgfmt-libstdc++-link.patch
    
    Bug: https://bugs.gentoo.org/892816
    Signed-off-by: Sam James <sam@gentoo.org>

 9.5.0/gentoo/31_all_msgfmt-libstdc++-link.patch | 39 +++++++++++++++++++++++++
 9.5.0/gentoo/README.history                     |  3 ++
 2 files changed, 42 insertions(+)

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=bddbb0244be56ccdd3827ee418c651e59f7a0c11

commit bddbb0244be56ccdd3827ee418c651e59f7a0c11
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-08 01:08:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-08 01:08:14 +0000

    8.5.0: add 33_all_msgfmt-libstdc++-link.patch
    
    Bug: https://bugs.gentoo.org/892816
    Signed-off-by: Sam James <sam@gentoo.org>

 8.5.0/gentoo/33_all_msgfmt-libstdc++-link.patch | 39 +++++++++++++++++++++++++
 8.5.0/gentoo/README.history                     |  3 +-
 2 files changed, 41 insertions(+), 1 deletion(-)