Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge of libstdc++-v3 fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
trophic263
n00b
n00b


Joined: 09 Aug 2018
Posts: 4

PostPosted: Thu Aug 09, 2018 6:12 pm    Post subject: emerge of libstdc++-v3 fails Reply with quote

Hello,
I have tried to launch Abaqus on my computer, which says does not work because I need the libstdc++.so.5 library. In order to get this library I believe I need the libstdc++-v3 package, which unfortunately fails to emerge and I am not sure why. I have checked the forums and found two older posts from 2009 (https://forums.gentoo.org/viewtopic-t-738002-start-0.html and https://forums.gentoo.org/viewtopic-t-737720.html), but they are out of date (the solutions seem to be wait for an update and the bug will be fixed or try an older version, which I have not been able to find or emerge). I've checked my system (as well as the gcc-complier) for updates and everything seems to be in order. The build log is too large to post here or in pastebin, but I have posted below some outputs that the error code recommended I post. I can also post my fstab file, which more experienced gentoo users have informed me is a little odd. Any help is appreciated. Thanks.

Edit: Figured out how to post the build log through wgetpaste (thanks to fedeliallalinea for letting me know that existed)

Build log
https://paste.pound-python.org/show/7TB01HvPP4zUW27sPIqx/

'emerge --info '=sys-libs/libstdc++-v3-3.3.6-r1::gentoo' '

Code:
Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-7.3.0, glibc-2.26-r7, 4.9.95-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.95-gentoo-x86_64-AMD_Ryzen_5_1600_Six-Core_Processor-with-gentoo-2.4.1
KiB Mem:    16424216 total,  11665724 free
KiB Swap:   16385020 total,  16385020 free
Timestamp of repository gentoo: Wed, 08 Aug 2018 20:30:01 +0000
Head commit of repository gentoo: ee8f03d4a3f92d0291f8bbce83d53842842341c9
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::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.5.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/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/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="-O2 -pipe -march=native"
DISTDIR="/usr/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 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://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli colord crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret libtirpc mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline savedconfig sdl seccomp spell sse sse2 ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" KERNEL="linux" 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" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


emerge -pqv '=sys-libs/libstdc++-v3-3.3.6-r1::gentoo'
Code:
[ebuild  N    ] sys-libs/libstdc++-v3-3.3.6-r1  USE="multilib nls"


gcc-config -l
Code:
 [1] x86_64-pc-linux-gnu-7.3.0 *


Last edited by trophic263 on Thu Aug 09, 2018 8:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Thu Aug 09, 2018 6:18 pm    Post subject: Reply with quote

You can post also full build.log with wgetpaste?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trophic263
n00b
n00b


Joined: 09 Aug 2018
Posts: 4

PostPosted: Thu Aug 09, 2018 8:18 pm    Post subject: Reply with quote

Did not know that existed, thanks.
This should link to the build log.
https://paste.pound-python.org/show/7TB01HvPP4zUW27sPIqx/
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4553
Location: Germany

PostPosted: Fri Aug 10, 2018 1:12 am    Post subject: Reply with quote

trophic263 wrote:
Code:
/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/gcc/g++ -shared-libgcc -B/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/gcc/ -nostdinc++ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -m32 -O2 -pipe -D_GNU_SOURCE -m32 -m32 -o abi_check abi_check.o  -L/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -lm -Wl,--rpath -Wl,/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/gcc/32 -Wl,--rpath -Wl,/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs
/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
make[6]: *** [Makefile:309: abi_check] Error 1
make[6]: Leaving directory '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/testsuite'
make[5]: *** [Makefile:287: all-recursive] Error 1
[...]

Hi, this is probably Bug 654818
You can try the tip from https://bugs.gentoo.org/654818#c14
Example:
Code:
emerge -av binutils:2.29.1
eselect binutils set x86_64-pc-linux-gnu-2.29.1
. /etc/profile
emerge -av1 sys-libs/libstdc++-v3
It builds here successful.
But please remember, please switch (with eselect binutils) afterward back to the latest stable binutils version.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Fri Aug 10, 2018 5:15 am    Post subject: Reply with quote

Josef.95 wrote:
It builds here successful.
But please remember, please switch (with eselect binutils) afterward back to the latest stable binutils version.

There is also a patch for compile with latest binutils
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trophic263
n00b
n00b


Joined: 09 Aug 2018
Posts: 4

PostPosted: Mon Aug 13, 2018 1:35 pm    Post subject: Reply with quote

Thanks for the response. Unfortunately that fix did not work - it gives the same error.

Code:
/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/gcc/g++ -shared-libgcc -B/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/gcc/ -nostdinc++ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -m32 -O2 -pipe -D_GNU_SOURCE -m32 -m32 -o abi_check abi_check.o  -L/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -lm -Wl,--rpath -Wl,/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/gcc/32 -Wl,--rpath -Wl,/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs
/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
make[6]: *** [Makefile:309: abi_check] Error 1
make[6]: Leaving directory '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/testsuite'
make[5]: *** [Makefile:287: all-recursive] Error 1
make[5]: Leaving directory '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3'
make[4]: *** [Makefile:418: all-recursive-am] Error 2
make[4]: Leaving directory '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3'
make[3]: *** [Makefile:558: multi-do] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [Makefile:533: all-multi] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[1]: *** [Makefile:418: all-recursive-am] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make: *** [Makefile:1456: all-target-libstdc++-v3] Error 2
emake failed
 * 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 2270:  Called die
 * The specific snippet of code:
 *       emake all-target-libstdc++-v3 || die
 *
 * If you need support, post the output of `emerge --info '=sys-libs/libstdc++-v3-3.3.6-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/libstdc++-v3-3.3.6-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/build'
 * S: '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r1/work/gcc-3.3.6'
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4553
Location: Germany

PostPosted: Mon Aug 13, 2018 2:05 pm    Post subject: emerge of libstdc++-v3 fails Reply with quote

Hm, can you please post the current `emerge --info`
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Mon Aug 13, 2018 2:48 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-850134.html
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Mon Aug 13, 2018 3:00 pm    Post subject: Reply with quote

trophic263 wrote:
Thanks for the response. Unfortunately that fix did not work - it gives the same error.

You used patch or binutils workaround?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trophic263
n00b
n00b


Joined: 09 Aug 2018
Posts: 4

PostPosted: Mon Aug 20, 2018 5:12 pm    Post subject: Reply with quote

Sorry for the late reply.

I tried the binutils workaround, I am not sure what you mean by the patch.

I've done revdep-rebuild very recently, and I did it again today then tried the emerge again.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Mon Aug 20, 2018 5:33 pm    Post subject: Reply with quote

trophic263 wrote:
I tried the binutils workaround, I am not sure what you mean by the patch.

If work with binutils workaround you can forget patch.
Anyway in the bug there is a patch to apply but since the ebuild is old you should apply manually.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
WorBlux
n00b
n00b


Joined: 07 May 2011
Posts: 39

PostPosted: Mon Oct 01, 2018 12:48 am    Post subject: Reply with quote

I had the same problem and error message today. The Binutils downgrade slot did not work, editing the ebuild to use the patch did. Definitely related to Bug 654818
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum