Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526140 - sys-devel/gcc-4.8.3 built with sys-devel/gcc-4.9.1 - .../work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib64/libicuuc.so.53)
Summary: sys-devel/gcc-4.8.3 built with sys-devel/gcc-4.9.1 - .../work/build/x86_64-pc...
Status: RESOLVED DUPLICATE of bug 513450
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-4.8 gcc-4.9
  Show dependency tree
 
Reported: 2014-10-20 18:34 UTC by Mark R. Pariente
Modified: 2014-11-09 11:02 UTC (History)
1 user (show)

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


Attachments
gcc-4.8.3-build-1.log.gz (gcc-4.8.3-build-1.log.gz,99.40 KB, application/gzip)
2014-10-21 19:55 UTC, Mark R. Pariente
Details
sed Makefile.am to run msgfmt without LD_LIBRARY_PATH (gcc-4.8.3-env-u-LD_LIBRARY_PATH-msgfmt.patch,532 bytes, patch)
2014-10-22 02:52 UTC, Mark Wright
Details | Diff
build log with patch (failed) (build.log.gz,94.51 KB, application/gzip)
2014-10-23 22:59 UTC, jeremiah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark R. Pariente 2014-10-20 18:34:40 UTC
I'm running into an interesting problem - I've unmasked =sys-devel/gcc-4.9.1 and recompiled @system and @world with it (which went remarkably well, only this issue out of 1400 packages). The problem is that emerging =sys-devel/gcc-4.8.3 fails during the compile step with:

msgfmt -o de.mo /var/tmp/portage/sys-devel/gcc-4.8.3/work/gcc-4.8.3/libstdc++-v3/po/de.po
msgfmt -o fr.mo /var/tmp/portage/sys-devel/gcc-4.8.3/work/gcc-4.8.3/libstdc++-v3/po/fr.po
msgfmtmsgfmt: /var/tmp/portage/sys-devel/gcc-4.8.3/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib64/libicuuc.so.53)
: /var/tmp/portage/sys-devel/gcc-4.8.3/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib64/libicuuc.so.53)
Makefile:460: recipe for target 'de.mo' failed
make[5]: *** [de.mo] Error 1
make[5]: *** Waiting for unfinished jobs....
Makefile:460: recipe for target 'fr.mo' failed
make[5]: *** [fr.mo] Error 1
make[5]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.8.3/work/build/x86_64-pc-linux-gnu/libstdc++-v3/po'
Makefile:480: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.8.3/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
Makefile:386: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.8.3/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
Makefile:12179: recipe for target 'all-stage1-target-libstdc++-v3' failed
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.8.3/work/build'
Makefile:18414: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-4.8.3/work/build'
Makefile:18729: recipe for target 'bootstrap-lean' failed
make: *** [bootstrap-lean] Error 2

I've tried switching back the active compiler to GCC 4.8.3 but the compile of =sys-devel/gcc-4.8.3 still fails, presumably because gettext was compiled with gcc 4.9.1 (the issue above with msgfmt CXX ABI). I can't make any more progress because I'm unable to recompile gettext with GCC 4.8.3 either:

checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-devel/gettext-0.19.3/work/gettext-0.19.3-abi_x86_64.amd64/gettext-runtime':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure: error: /var/tmp/portage/sys-devel/gettext-0.19.3/work/gettext-0.19.3/gettext-runtime/configure failed for gettext-runtime

Without looking at this with more detail, I think the issue is that when msgfmt (compiled with gcc 4.9.1) is running under the =sys-devel/gcc-4.8.3 compile environment, it's being dynamically loaded against an incompatible libstdc++ (from gcc 4.8.3).
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-20 21:17:38 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.
Comment 2 Mark R. Pariente 2014-10-21 19:55:42 UTC
Created attachment 387160 [details]
gcc-4.8.3-build-1.log.gz

Attaching full build log. Here's also emerge --info:

Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.1, glibc-2.19-r1, 3.16.6-gentoo x86_64)
=================================================================
System uname: Linux-3.16.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-3517U_CPU_@_1.90GHz-with-gentoo-2.2
KiB Mem:    10097896 total,   1052960 free
KiB Swap:   23451604 total,  23451604 free
Timestamp of tree: Tue, 21 Oct 2014 18:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p30
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r1
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3, 4.9.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo mrpdaemon local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=core-avx-i -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=core-avx-i -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf"
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="-O3 -pipe -fomit-frame-pointer -march=core-avx-i -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=core-avx-i -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l5"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mrpdaemon /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi avx bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli clutter colord cracklib crypt cscope cups cxx dbus dri dts dv dvd dvdr eds emboss encode evo exif faac fam ffmpeg firefox flac fortran gdbm gif git glade glamor gnome gnome-keyring gnome-online-accounts gphoto2 gpm gstreamer gtk iconv introspection ipv6 jabber jpeg laptop lcms libnotify libsecret mad mmx mmxext mng modules mp3 mp4 mpeg msn multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support qt4 readline rtmp sdl session socialweb spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff tracker truetype udev udisks unicode upower usb v4l vaapi vala vim-syntax vorbis vpx wxwidgets x264 xcb xml xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Mark Wright gentoo-dev 2014-10-22 02:50:36 UTC
Thanks for reporting.  It would be neat if you could please try
downloading the attached ebuild patch to some directory, and
let us know the results of testing:

mkdir -p /usr/local/portage/sys-devel/gcc
cd /usr/local/portage/sys-devel/gcc
cp -pR /usr/portage/sys-devel/gcc/* .
patch --verbose -p 1 </path-to-download-patch/gcc-4.8.3-env-u-LD_LIBRARY_PATH-msgfmt.patch
ebuild gcc-4.8.3.ebuild manifest
emerge -av -1 sys-devel/gcc:4.8
Comment 4 Mark Wright gentoo-dev 2014-10-22 02:52:06 UTC
Created attachment 387178 [details, diff]
sed Makefile.am to run msgfmt without LD_LIBRARY_PATH
Comment 5 Mark R. Pariente 2014-10-22 15:58:10 UTC
Unfortunately I've had a hardware issue with my laptop so I can't test your patch until I get it repaired (next week or so).
Comment 6 jeremiah 2014-10-23 15:45:10 UTC
I'm having this same problem.
Tried patch but failed, will upload results.
Comment 7 jeremiah 2014-10-23 22:59:12 UTC
Created attachment 387278 [details]
build log with patch (failed)
Comment 8 Anthony Basile gentoo-dev 2014-10-24 00:59:28 UTC
(In reply to jeremiah from comment #7)
> Created attachment 387278 [details]
> build log with patch (failed)

Its a mismatch of libstdc++'s hitting dev-libs/icu.  Am I right in understanding that when you you upgraded to gcc-4.9 you rebuild world, including icu?  If so, now when libicuuc.so.52 tries to link against ../src/.libs/libstdc++.so.6 rather than the system libstdc++ it fails on that symbol.  Something like that patch should work.
Comment 9 jeremiah 2014-10-24 03:03:18 UTC
well, I rebuilt -e system and -e kde-meta, which probably included icu
Comment 10 Mark R. Pariente 2014-10-28 03:10:58 UTC
(In reply to Mark Wright from comment #4)
> Created attachment 387178 [details, diff] [details, diff]
> sed Makefile.am to run msgfmt without LD_LIBRARY_PATH

This patch worked for me - gcc 4.8.3 compiled successfully.

BTW to answer Anthony's question - yes I had already done emerge -e @system @world with gcc 4.9.1 before running into this, so icu was compiled with 4.9.1.
Comment 11 Anthony Basile gentoo-dev 2014-10-28 10:25:37 UTC
(In reply to Mark R. Pariente from comment #10)
> (In reply to Mark Wright from comment #4)
> > Created attachment 387178 [details, diff] [details, diff] [details, diff]
> > sed Makefile.am to run msgfmt without LD_LIBRARY_PATH
> 
> This patch worked for me - gcc 4.8.3 compiled successfully.
> 
> BTW to answer Anthony's question - yes I had already done emerge -e @system
> @world with gcc 4.9.1 before running into this, so icu was compiled with
> 4.9.1.

Good otherwise the bug would be confusing.
Comment 12 Andrew 2014-10-30 21:24:46 UTC
patch works fine without any rebuilds of @system, thank you
Comment 13 SpanKY gentoo-dev 2014-11-01 03:42:30 UTC

*** This bug has been marked as a duplicate of bug 513450 ***