Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 552898 (PR54006)

Summary: sys-devel/gcc: libstdc++ support incomplete on hppa/armv5 due to missing lock-free atomics
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: hppa, maekke, matoro_bugzilla_gentoo, sam
Priority: Normal Keywords: PMASKED, PullRequest
Version: unspecified   
Hardware: HPPA   
OS: Linux   
URL: https://gcc.gnu.org/git/?p=gcc.git&a=commit;h=ed3cb4970392edfbae74c82d7e25b7cd961ce70f
See Also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54006
http://bugs.debian.org/727621
https://bugs.gentoo.org/show_bug.cgi?id=558734
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735
https://github.com/gentoo/gentoo/pull/28533
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: net-libs:nghttp2-1.0.2:20150623-042241.log

Description Jeroen Roovers (RETIRED) gentoo-dev 2015-06-23 04:36:39 UTC
Created attachment 405566 [details]
net-libs:nghttp2-1.0.2:20150623-042241.log

Tue 23 Jun 06:32:18 CEST 2015
emerge --info net-libs/nghttp2
Portage 2.2.18 (python 3.4.1-final-0, default/linux/hppa/13.0, gcc-4.8.3, glibc-2.19-r1, 4.0.5-gentoo-JeR parisc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.5-gentoo-JeR-parisc64-PA8800_-Mako-with-gentoo-2.2
KiB Mem:     8231152 total,   5125996 free
KiB Swap:    2101676 total,   2101676 free
Timestamp of repository gentoo: Tue, 23 Jun 2015 03:15:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 hppa2.0-unknown-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.9.6-r3::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo
sys-devel/binutils:       2.22-r1::gentoo, 2.23.1::gentoo, 2.23.2::gentoo, 2.24-r3::gentoo
sys-devel/gcc:            4.6.4::gentoo, 4.7.2-r1::gentoo, 4.7.3-r1::gentoo, 4.8.1-r1::gentoo, 4.8.3::gentoo, 4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.19-r1::gentoo
Repositories:

gentoo
    location: /world/gentoo/portage
    sync-type: rsync
    sync-uri: rsync://rsync.nl.gentoo.org/gentoo-portage
    priority: -1000

JeR
    location: /keeps/gentoo/local
    masters: gentoo
    priority: -100

ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="*"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe -Wno-comment"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib/distcc/bin /usr/share/gnupg/qualified.txt /var/bind /var/spool/torque /var/www/localhost/htdocs/wordpress/wp-config.php"
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.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/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="-mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe"
DISTDIR="/aches/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs buildpkg cgroup compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirror.leaseweb.com/gentoo/ http://gentoo.tiscali.nl/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-keep-memory"
MAKEOPTS="-j6"
PKGDIR="/aches/gentoo/packages/karsten"
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"
USE="256-color X acl alsa amr anacron apng argyllcms audit bash-completion beautifulsoup3 berkdb bfio bittorrent botan bzip2 cairo canberra cli consolekit coverage cracklib crossdev crypt cups custom-cflags cxx dane dbus declarative dirac directfb distinct-l dlz doc dot dri emacs exceptions exif expat fbcon filecaps firefox firmware foomaticdb fortran frontend-optional g-sorcery gbm gdbm geoip geoloc glep gles1 gles2 gost gpg gpm graphite gsm gstreamer gtk gudev guile hddtemp hppa hwdb iconv idn imlib inotify ipv6 jadetex javascript jingle jit jpeg jpeg2k json kdrive kmod ladspa lasi launch-frontend lensfun libav libcaca libcanberra libevent libopts libsoxr libusb libwww lua lzma lzo mad mng mod modplug modules mp3 multislot multitarget munge nagios natspec ncurses netlink nfs nls nptl objc objc++ objc-gc offensive openexr opengl openmp openrc openvg opus oqgraph osmesa oss pam pcre pcre16 php pic pkcs11 png pnm policykit python qt qt3support qt4 readline realtime regression-test rtmp samba sbc schroedinger sctp session smi socks5 speex spell spidermonkey sqlite ssl svg tcl tcpd test tga theora threads tiff tk tokyocabinet truetype unicode unwind v4l vim-syntax vorbis vpx wayland wcwidth x264 x265 xa xattr xcb xft xhtml xkb xml2 xvfb xvid zlib" ALSA_CARDS="ad1889 usb-audio" APACHE2_MODULES="authz_host dir mime alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="nfs 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="evdev joystick keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio magellan microtouch mutouch palmax penmount spaceorb summa tek4957 tslib ur98 void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en nl he" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="stifb dummy" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

[ebuild  N    ~] net-libs/nghttp2-1.0.2:0/1.14::gentoo  USE="cxx {test} threads -debug -hpack-tools -jemalloc -static-libs -utils -xml" 0 KiB

In file included from /usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.8.3/include/g++-v4/vector:64:0,
                 from /var/tmp/portage/net-libs/nghttp2-1.0.2/work/nghttp2-1.0.2/src/includes/nghttp2/asio_http2.h:31,
                 from /var/tmp/portage/net-libs/nghttp2-1.0.2/work/nghttp2-1.0.2/src/includes/nghttp2/asio_http2_server.h:28,
                 from /var/tmp/portage/net-libs/nghttp2-1.0.2/work/nghttp2-1.0.2/src/asio_server_http2_impl.h:30,
                 from /var/tmp/portage/net-libs/nghttp2-1.0.2/work/nghttp2-1.0.2/src/asio_server_http2_impl.cc:25:
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.8.3/include/g++-v4/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::
~_Vector_base() [with _Tp = std::future<unsigned int>; _Alloc = std::allocator<std::future<unsigned int> >]':
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.8.3/include/g++-v4/bits/stl_vector.h:416:33:   required from 'std::vector<_Tp, _Alloc>::~ve
ctor() [with _Tp = std::future<unsigned int>; _Alloc = std::allocator<std::future<unsigned int> >]'
/var/tmp/portage/net-libs/nghttp2-1.0.2/work/nghttp2-1.0.2/src/asio_io_service_pool.h:56:7:   required from 'void std::default_delet
e<_Tp>::operator()(_Tp*) const [with _Tp = nghttp2::asio_http2::server::server]'
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.8.3/include/g++-v4/bits/unique_ptr.h:184:16:   required from 'std::unique_ptr<_Tp, _Dp>::~u
nique_ptr() [with _Tp = nghttp2::asio_http2::server::server; _Dp = std::default_delete<nghttp2::asio_http2::server::server>]'
/var/tmp/portage/net-libs/nghttp2-1.0.2/work/nghttp2-1.0.2/src/asio_server_http2_impl.cc:40:56:   required from here
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.8.3/include/g++-v4/bits/stl_vector.h:161:9: error: invalid use of incomplete type 'class std::future<unsigned int>'
         - this->_M_impl._M_start); }
         ^
In file included from /var/tmp/portage/net-libs/nghttp2-1.0.2/work/nghttp2-1.0.2/src/asio_io_service_pool.h:44:0,
                 from /var/tmp/portage/net-libs/nghttp2-1.0.2/work/nghttp2-1.0.2/src/asio_server.h:50,
                 from /var/tmp/portage/net-libs/nghttp2-1.0.2/work/nghttp2-1.0.2/src/asio_server_http2_impl.cc:29:
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/4.8.3/include/g++-v4/future:113:11: error: declaration of 'class std::future<unsigned int>'
     class future;
           ^
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-07-03 04:08:53 UTC
--- ChangeLog   2015-07-03 06:05:30.260063857 +0200
+++ ChangeLog.new       2015-07-03 06:05:51.483687515 +0200
@@ -2,6 +2,9 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: /var/cvsroot/gentoo-x86/profiles/arch/hppa/ChangeLog,v 1.249 2015/05/24 04:35:58 mattst88 Exp $

+  03 Jul 2015; Jeroen Roovers <jer@gentoo.org> package.use.mask:
+  Mask USE=http2 for net-misc/curl (bug #552898).
+
Comment 2 SpanKY gentoo-dev 2015-07-20 11:57:23 UTC
seems to build fine with USE=-cxx.  waiting for the system to upgrade to gcc and boost before looking further.
Comment 3 SpanKY gentoo-dev 2015-07-21 10:59:38 UTC
fails w/gcc-4.7 & gcc-4.8 and boost-1.56.0.  probably should punt it upstream and see what they have to say.
Comment 4 SpanKY gentoo-dev 2015-07-24 07:14:42 UTC
this isn't a bug in nghttp2, and some other packages can fail in the same way.

look at the details in the referenced gcc bug or debian bug (which talks about armv5, but largely distills down to the same thing for hppa)

instead of masking it entirely, you should just package.use mask nghttp2[cxx]
Comment 5 SpanKY gentoo-dev 2015-09-03 20:43:08 UTC
*** Bug 559544 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2022-12-05 00:00:33 UTC
The bug has been closed via the following commit(s):

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

commit f2226f4aba5d8a83aa42fafad5b21dcae3abc931
Author:     Matoro Mahri <matoro@users.noreply.github.com>
AuthorDate: 2022-12-04 01:43:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-04 23:58:48 +0000

    profiles/arch/hppa: unmask net-libs/nghttp2[cxx]
    
    See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735
    See: https://gcc.gnu.org/git/?p=gcc.git&a=commit;h=ed3cb4970392edfbae74c82d7e25b7cd961ce70f
    See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=727621
    Closes: https://bugs.gentoo.org/552898
    Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com>
    Closes: https://github.com/gentoo/gentoo/pull/28533
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/hppa/package.use.mask | 4 ----
 1 file changed, 4 deletions(-)