Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867196 - dev-lang/gnat-gpl-2021-r1 build failure (libstdc++.so.6: version `GLIBCXX_3.4.30' not found)
Summary: dev-lang/gnat-gpl-2021-r1 build failure (libstdc++.so.6: version `GLIBCXX_3.4...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux ADA team
URL:
Whiteboard:
Keywords:
: 864226 871990 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-28 21:48 UTC by David Duchesne
Modified: 2022-10-01 07:16 UTC (History)
2 users (show)

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


Attachments
dev-lang:gnat-gpl-2021-r1 (build log) (dev-lang:gnat-gpl-2021-r1:20220828-205010.log.xz,86.99 KB, application/x-xz)
2022-08-28 21:51 UTC, David Duchesne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Duchesne 2022-08-28 21:48:49 UTC
dev-lang/gnat-gpl-2021-r1 build failure (libstdc++.so.6: version `GLIBCXX_3.4.30' not found)

After updating my system from sys-devel/gcc-11.3.0 to sys-devel/gcc-12.2.0, I'm unable to rebuild dev-lang/gnat-gpl-2021-r1 (r3 fails also with the exact same error)
Maybe similar to this : https://bugs.gentoo.org/843119 ?

See logs attached. Thanks.

Reproducible: Always




Portage 3.0.30 (python 3.10.6-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-12.2.0, glibc-2.35-r8, 5.19.4-gentoo-hardened x86_64)
=================================================================
System uname: Linux-5.19.4-gentoo-hardened-x86_64-AMD_A10-6800K_APU_with_Radeon-tm-_HD_Graphics-with-glibc2.35
KiB Mem:    32352896 total,   2805056 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sun, 28 Aug 2022 11:00:01 +0000
Head commit of repository gentoo: f9cf98f10155f409d41f2e6084b629ee53f35dfb
Timestamp of repository localrepo: Sat, 27 Aug 2022 01:21:08 +0000
Timestamp of repository menelkir: Wed, 24 Aug 2022 05:02:54 +0000
Head commit of repository menelkir: c036e21c02d155718b351dc9d866a3f71ce3509f

Timestamp of repository mv: Wed, 24 Aug 2022 05:02:38 +0000
Head commit of repository mv: c9242d03476abb23ec91cb9a07dff800c66b0989

Timestamp of repository tatsh-overlay: Sun, 28 Aug 2022 08:46:53 +0000
Head commit of repository tatsh-overlay: d584737d8dbed363abc4c47475e5ba44eda9ac06

Timestamp of repository vapoursynth: Wed, 24 Aug 2022 05:02:42 +0000
Head commit of repository vapoursynth: c2bb30ecdcfeb99d56378ed6fd34cadc7c4d1645

Timestamp of repository vortex: Wed, 24 Aug 2022 05:02:42 +0000
Head commit of repository vortex: f3847e8b64c7f9f1c179034edeb38646b3ae9ca1

Head commit of repository xfceclassic: d0fb6a84e27039e76420d6416d1d802a55b80911

sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.10.6_p2::gentoo
dev-lang/rust:             1.62.1::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             12.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

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

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

menelkir
    location: /var/db/repos/menelkir
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/menelkir.git
    masters: gentoo

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo

tatsh-overlay
    location: /var/db/repos/tatsh-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/tatsh-overlay.git
    masters: gentoo

vapoursynth
    location: /var/db/repos/vapoursynth
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/vapoursynth.git
    masters: gentoo

vortex
    location: /var/db/repos/vortex
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/vortex.git
    masters: gentoo

xfceclassic
    location: /var/db/repos/xfceclassic
    sync-type: git
    sync-uri: https://github.com/Xfce-Classic/gentoo-overlay
    masters: gentoo

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    priority: 10

Installed sets: @dbuspkg, @fonts, @games, @librsvg, @localrepo, @phone, @subtitles, @themes, @vm, @wm, @xfce
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/portage/savedconfig/sys-kernel/linux-firmware /usr/bin/startx /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer /usr/share/thumbnailers/imagemagick-pdf.thumbnailer"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=bdver2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-march=bdver2 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg 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="-march=bdver2 -O2 -pipe"
GENTOO_MIRRORS="https://mirror.leaseweb.com/gentoo/"
INSTALL_MASK="/etc/sysctl.d/               /etc/systemd/               /lib/systemd/               /usr/lib/sysctl.d/               /usr/lib/systemd/               /run/systemd/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
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 aio alsa amd64 bzip2 cairo cdda cdr cli crypt cryptsetup cups dbus device-mapper dri dts dvd dvr elogind emboss encode exif fam fftw flac gif gnat_2021 gpm graphite gtk hardened hscolour iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc lto lvm lz4 lzma lzo mad mp3 mp4 mpeg ncurses nfs nls nptl ogg opengl openmp openssl opus otr pam pango pcre pdf pgo pie png policykit ppds readline sdl seccomp sftp split-usr ssh ssl ssp startup-notification svg system-av1 system-binutils system-cairo system-clang system-cmark system-compress system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-images system-jpeg system-jsoncpp system-lcms system-leveldb system-libevent system-libmspack system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-nss system-openjpeg system-pixman system-png system-renpy system-snappy system-sqlite system-tbb system-uulib system-vpx system-zlib tiff tk truetype udev udisks unicode upower usb vaapi vdpau verify-sig vorbis webp wxwidgets x264 xattr xcb xml xtpax xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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="libinput" KERNEL="linux" L10N="fr" 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" QEMU_SOFTMMU_TARGETS="aarch64 arm ppc ppc64 i386 x86_64" QEMU_USER_TARGETS="aarch64 arm armeb ppc ppc64 i386 x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, 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 1 David Duchesne 2022-08-28 21:51:43 UTC
Created attachment 801721 [details]
dev-lang:gnat-gpl-2021-r1 (build log)
Comment 2 Tupone Alfredo gentoo-dev 2022-08-31 20:10:46 UTC
maybe rebuild of dev-libs/icu can help ?
Comment 3 David Duchesne 2022-09-01 14:56:04 UTC
Hi,
Forgot to mention that after having installed sys-devel/gcc-12.2.0 and switched to it. (and sourced /etc/profile), I rebuilt @system and then @world. So dev-lib/icu was already rebuilt twice with gcc-12.
Nonetheless, I tried your suggestion and rebuilt dev-libs/icu again, unfortunately it still fails and log shows the exact same error.
Also,
strings /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libstdc++.so.6 | grep GLIBCXX | tail -n2

GLIBCXX_3.4.30
GLIBCXX_DEBUG_MESSAGE_LENGTH

So I don't understand why it is reported as being "not found".
Comment 4 Tupone Alfredo gentoo-dev 2022-09-02 04:51:37 UTC
hmm, the error seems to come from msgfmt

if you just run msgfmt does it error out?

what is the output of 
ldd msgfmt

?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-02 05:05:45 UTC
This definitely sounds like bug 843119.

The issue is that it tries to use the just-built libstdc++ (which is too old and missing symbols) with a system ICU built against a newer gcc & libstdc++.

It should be enough to update the Ada ebuilds to the latest GCC 10 patches we're using, although might need to backport to 10.3.0.
Comment 6 David Duchesne 2022-09-02 23:25:31 UTC
(In reply to Tupone Alfredo from comment #4)
> hmm, the error seems to come from msgfmt
> 
> if you just run msgfmt does it error out?
> 
> what is the output of 
> ldd msgfmt
> 
> ?

No error.
ldd $(which msgfmt)

	linux-vdso.so.1 (0x00007ffe52f6e000)
	libgettextsrc-0.21.so => /usr/lib64/libgettextsrc-0.21.so (0x00007985e7f3a000)
	libgettextlib-0.21.so => /usr/lib64/libgettextlib-0.21.so (0x00007985e7e5a000)
	libc.so.6 => /lib64/libc.so.6 (0x00007985e7c5a000)
	libacl.so.1 => /lib64/libacl.so.1 (0x00007985e7c4a000)
	libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007985e7ada000)
	libtextstyle.so.0 => /usr/lib64/libtextstyle.so.0 (0x00007985e7a3a000)
	libm.so.6 => /lib64/libm.so.6 (0x00007985e7962000)
	/lib64/ld-linux-x86-64.so.2 (0x00007985e7fd2000)
	libicuuc.so.71 => /usr/lib64/libicuuc.so.71 (0x00007985e776a000)
	libz.so.1 => /lib64/libz.so.1 (0x00007985e774a000)
	liblzma.so.5 => /lib64/liblzma.so.5 (0x00007985e7722000)
	libicudata.so.71 => /usr/lib64/libicudata.so.71 (0x00007985e5a00000)
	libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libstdc++.so.6 (0x00007985e5600000)
	libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/libgcc_s.so.1 (0x00007985e59da000)

(In reply to Sam James from comment #5)
> This definitely sounds like bug 843119.
> 
> The issue is that it tries to use the just-built libstdc++ (which is too old
> and missing symbols) with a system ICU built against a newer gcc & libstdc++.
> 
> It should be enough to update the Ada ebuilds to the latest GCC 10 patches
> we're using, although might need to backport to 10.3.0.

Alright! I will report back when these patches are available then. For now I still can use the previously compiled gnat-gpl, I still have the xpak too.
Thanks.
Comment 7 Tupone Alfredo gentoo-dev 2022-09-06 10:09:42 UTC
Need to update gcc related patches and only after, I can update gnat-gpl ebuild
Comment 8 Tupone Alfredo gentoo-dev 2022-09-18 19:32:09 UTC
*** Bug 864226 has been marked as a duplicate of this bug. ***
Comment 9 Larry the Git Cow gentoo-dev 2022-09-30 16:51:05 UTC
The bug has been closed via the following commit(s):

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

commit 65d2fdfea526104ef7734f86ba72d7d72e1462e1
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2022-09-30 16:48:38 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2022-09-30 16:50:52 +0000

    dev-lang/gnat-gpl: add backported gcc-patches
    
    Closes: https://bugs.gentoo.org/868789
    Closes: https://bugs.gentoo.org/867196
    
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 dev-lang/gnat-gpl/Manifest                         |  1 +
 ...-gpl-2021-r3.ebuild => gnat-gpl-2021-r4.ebuild} | 23 ++++++++++------------
 2 files changed, 11 insertions(+), 13 deletions(-)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-01 07:16:54 UTC
*** Bug 871990 has been marked as a duplicate of this bug. ***