Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665768 - sys-libs/libstdc++-v3-3.3.6-r1 fail to compile (sys-devel/binutils-2.30-r3)
Summary: sys-libs/libstdc++-v3-3.3.6-r1 fail to compile (sys-devel/binutils-2.30-r3)
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:
: 654818 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-09-12 11:13 UTC by jms
Modified: 2018-10-02 21:30 UTC (History)
3 users (show)

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


Attachments
build log (sys-libs:libstdc++-v3-3.3.6-r1:20180912-110249.tar.gz,205.98 KB, application/gzip)
2018-09-12 11:13 UTC, jms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jms 2018-09-12 11:13:08 UTC
Created attachment 546694 [details]
build log

*   61_all_arm-bigendian.patch ...
 *   70_all_gcc33-make-whitespace.patch ...
 *   71_all_gcc33-gnu-string-prototypes.patch ...
 *   80_all_canadian-cross-spec-and-syslimits.patch ...
 *   83_all_gcc-3.x-larger-g77-file-limit.patch ...
 *   85_all_gcc-ca-translation-typo.patch ...
 *   85_all_gcc-es-translation-ICE-workaround.patch ...
 *   86_all_gcc-3.3-doxygen-filter-locale.patch ...
 *   88_all_gcc-3.3-make-SHELL.patch ...
 * Done with patching
 * Applying libstdc++-v3-3.3.6-glibc226.patch ...
 * strip-flags: CFLAGS: changed '-O2 -pipe -fno-delete-null-pointer-checks' to '-O2 -pipe'
 * strip-flags: CXXFLAGS: changed '-O2 -pipe -fno-delete-null-pointer-checks' to '-O2 -pipe'
 * ERROR: sys-libs/libstdc++-v3-3.3.6-r1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 2279:  Called die
 * The specific snippet of code:
 *       emake all-target-libstdc++-v3 || die




emerge --info '=sys-libs/libstdc++-v3-3.3.6-r1::gentoo'
Portage 2.3.49 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-8.2.0, glibc-2.26-r7, 4.18.7-gentoo-jms-10.8-docker-1-vb-intel-0.1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.18.7-gentoo-jms-10.8-docker-1-vb-intel-0.1-x86_64-Intel-R-_Core-TM-_i5-7200U_CPU_@_2.50GHz-with-gentoo-2.4.1
KiB Mem:     8112400 total,   1808672 free
KiB Swap:   10485756 total,  10483708 free
Timestamp of repository gentoo: Wed, 12 Sep 2018 09:00:01 +0000
Head commit of repository gentoo: f73445d6f63e570d115d495d4acecf835949b235
sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p3) 2.30.0
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r3::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo, 8.2.0-r2::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

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

jms-local-Overlay
    location: /usr/local/portage
    masters: gentoo

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fno-delete-null-pointer-checks"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fno-delete-null-pointer-checks"
DISTDIR="/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr es"
MAKEOPTS="-j3"
PKGDIR="/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"
USE="X a52 aac acl acpi activities alsa amd64 apache2 berkdb bindist bluetooth bluray branding bzip2 cairo cdda cddb cdr cgroups cli consolekit crypt cups cxx dbus declarative dri dri3 dts dvbpsi dvd dvdr ebook efi egl emboss encode epub exif fam ffmpeg flac fortran gbm gdbm gif glamor gpm grub gtk iconv ipv6 jpeg kde kipi kwallet lame lcms ldap libass libcaca libnotify libtirpc lm_sensors lvm lzma mad matroska mng mobi modules mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openmax openmp opus pam pango pcre pdf phonon php plasma pm-utils png policykit ppds projectm pulseaudio qml qt5 qtmedia readline sddm sdl seccomp semantic-desktop spell ssl startup-notification svg taglib tcpd threads tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vlm vorbis vpx vulkan widgets wxwidgets x264 x265 xa xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64 32" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en-GB fr-FR es-ES en fr es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-libs/libstdc++-v3-3.3.6-r1::gentoo was built with the following:
USE="multilib nls (policykit)" ABI_X86="(64)"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
LDFLAGS=""
Comment 1 josef.95 2018-09-12 11:33:59 UTC
Hm yes, see Bug 654818
Comment 2 jms 2018-09-12 19:33:59 UTC
(In reply to josef.95 from comment #1)
> Hm yes, see Bug 654818
thanks

I just checked with sys-devel/binutils-2.31.1 and it fail to compile too.

was going to check with the patch in  Bug 654818 but it turns out I don't need 
sys-libs/libstdc++-v3 anymore
libstdc++-v3 =Compatibility package for binaries linked against a pre gcc 3.4 libstdc++
and I have got gcc-8.2.0
not many library should remain linked to a re gcc 3.4 libstdc++ for me none


equery d sys-libs/libstdc++-v3
just bring virtual/libstdc++
equery d virtual/libstdc++ bring nothing
so I removed virtual/libstdc++ and sys-libs/libstdc++-v3

curious that this doesn 't show up in 
emerge --depclean -p

also maybe sys-libs/libstdc++-v3 ebuild should have a dependency with <=sys-devel/binutils-2.29.1-r1 for the stable build 
and 
 an unstable one with the patch?
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2018-10-02 21:03:09 UTC
The failure here is:

  /usr/x86_64-pc-linux-gnu/bin/ld: abi_check: hidden symbol `fstat' in /usr/lib32/libc_nonshared.a(fstat.oS) is referenced by DSO
  /usr/x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

It was fixed in gcc-3.3.6 patchset as:
    https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=c0986555810d6795912a6a20185197c4e612bedd

Let's pull the same patchset into libstdc++.
Comment 4 Larry the Git Cow gentoo-dev 2018-10-02 21:29:25 UTC
The bug has been closed via the following commit(s):

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

commit 83d4a0d2f242693aeac13f8333b8e9f6033ed972
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-10-02 21:28:22 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-10-02 21:29:17 +0000

    sys-libs/libstdc++-v3: bump 1.10 patchset
    
    Reported-by: jms
    Closes: https://bugs.gentoo.org/665768
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
    Package-Manager: Portage-2.3.50, Repoman-2.3.11

 sys-libs/libstdc++-v3/Manifest                     |  2 +-
 .../files/libstdc++-v3-3.3.6-glibc226.patch        | 33 ----------------------
 sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild |  9 +++---
 3 files changed, 5 insertions(+), 39 deletions(-)
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2018-10-02 21:30:57 UTC
*** Bug 654818 has been marked as a duplicate of this bug. ***