src/mongo/db/matcher/expression_tree.h:204:25: note: remove ‘std::move’ call src/mongo/util/heap_profiler.cpp: In member function ‘void mongo::{anonymous}::HeapProfiler::generateStackIfNeeded(mongo::{anonymous}::HeapProfiler::Stack&, mongo> src/mongo/util/heap_profiler.cpp:484:33: error: ‘abi’ has not been declared 484 | demangled = abi::__cxa_demangle(dli.dli_sname, 0, 0, &status); | ^~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/heap_profiler.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of ‘std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with> src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove ‘std::move’ call src/mongo/db/matcher/expression_type.h: In instantiation of ‘std::unique_ptr<mongo::MatchExpression> mongo::TypeMatchExpressionBase<T>::shallowClone() const [with> src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove ‘std::move’ call scons: *** [build/opt/mongo/util/heap_profiler.o] Error 1 [..] scons: building terminated because of errors. build/opt/mongo/util/heap_profiler.o failed: Error 1 * ERROR: dev-db/mongodb-4.0.12::gentoo failed (compile phase): * escons failed. * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 3536: Called escons 'CC=x86_64-pc-linux-gnu-gcc' 'CXX=x86_64-pc-linux-gnu-g++' '--disable-warnings-as-errors' '--use-system-boost' '--use-system-pcre' '--use-system-snappy' '--use-system-stemmer' '--use-system-yaml' '--use-system-zlib' '--ssl' 'core' 'tools' * environment, line 1637: Called die * The specific snippet of code: * die -n "escons failed." * * If you need support, post the output of `emerge --info '=dev-db/mongodb-4.0.12::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-db/mongodb-4.0.12::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-db/mongodb-4.0.12/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mongodb-4.0.12/temp/environment'. * Working directory: '/var/tmp/portage/dev-db/mongodb-4.0.12/work/mongodb-src-r4.0.12' * S: '/var/tmp/portage/dev-db/mongodb-4.0.12/work/mongodb-src-r4.0.12'
Created attachment 589964 [details] build.log.gz
Portage 2.3.76 (python 3.7.4-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.29-r5, 5.2.13-gentoo x86_64) ================================================================= System uname: Linux-5.2.13-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_C2758_@_2.40GHz-with-gentoo-2.6 KiB Mem: 32911356 total, 10832992 free KiB Swap: 34078716 total, 34078716 free Timestamp of repository gentoo: Sun, 15 Sep 2019 20:15:01 +0000 Head commit of repository gentoo: d142b465d609034ed9d3a942dea0819321171569 sh bash 5.0_p11 ld GNU ld (Gentoo 2.32 p2) 2.32.0 distcc 3.3.3 x86_64-pc-linux-gnu [disabled] ccache version 3.7.4 [enabled] app-shells/bash: 5.0_p11::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.0::gentoo dev-lang/python: 2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo, 3.7.4-r1::gentoo dev-util/ccache: 3.7.4::gentoo dev-util/cmake: 3.15.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 9.2.0::gentoo sys-devel/gcc-config: 2.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.2::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r5::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes crossdev location: /usr/local/crossdev masters: gentoo galactica location: /usr/local/portage masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /opt/fhem /usr/share/gnupg/qualified.txt /var/lib/fhem /var/lib/unifi" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/*" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now" LINGUAS="de de_DE" MAKEOPTS="-j9 -l8" PKGDIR="/var/cache/binpkgs" PORTAGE_BUNZIP2_COMMAND="pbunzip2" PORTAGE_BZIP2_COMMAND="pbzip2" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9e" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" 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 aalib acl alsa amd64 berkdb bluetooth bzip2 cairo calendar caps cddb cgi cjk colord cracklib crypt cups curl cvs cxx dbus dga djvu dri encode exif fbcon fbcpm ffmpeg fftw flac fontconfig fortran ftp gd gdbm geolocation gif git gmp gnutls gphoto2 gpm graphviz gsm gstreamer iconv icu idn ieee1394 imap imlib inotify introspection ipv6 java javascript jbig jemalloc jit joystick jpeg jpeg2k lcms ldap libass libcaca libnotify libsamplerate lm-sensors lua luajit lzma lzo mad maildir mbox mhash mikmod milter mmap modplug mono mp3 mysql mysqli ncurses networkmanager nls nntp nptl nsplugin offensive ogg openal openexr opengl openmp opus orc oss pam pcre pdf perl pie png policykit posix postgres postscript pulseaudio python raw readline rtmp samba sasl scanner sdl session slang slp smartcard sndfile snmp soap sockets sound sox speex spell split-usr sqlite ssl startup-notification subversion suid svg symlink syslog tcpd theora threads tiff truetype udev unicode usb v4l vaapi vcd vdpau vhosts vim-syntax vnc vorbis wavpack wayland webkit webp wifi wmf x264 xattr xcb xface xft xinetd xml xmp xpm xscreensaver xv xvid zeroconf zlib zsh-completion zstd" ABI_X86="32 64" COLLECTD_PLUGINS="apcups battery cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec fhcount filecount gps hddtemp hugepages interface ipc ipmi iptables irq load lvm java mcelog md memory mysql netlink nfs nginx ntpd openldap openvpn ping postgresql processes protocols rrdcached sensors serial smart snmp swap syslog tcpconns thermal turbostat unixsock uptime users wireless" CPU_FLAGS_X86="aes mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt nmea0183" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LCD_DEVICES="cfontzpacket crystalfontz glcd2usb hd44780 lcd2usb" NGINX_MODULES_HTTP="access auth_basic autoindex brotli browser charset fancyindex fastcgi geo geoip geoip2 gunzip gzip gzip_static headers_more image_filter javascript limit_conn limit_req map metrics proxy realip referer rewrite secure_link sticky stub_status upload_progress upstream_keepalive vhost_traffic_status xslt" NGINX_MODULES_MAIL="imap pop3 smtp" NGINX_MODULES_STREAM="access geo geoip geoip2 javascript limit_conn map realip return ssl_preread" PHP_TARGETS="php7-3" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby26" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="ast fbdev" Unset: CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BINHOST
Created attachment 589966 [details, diff] mongodb_boost_171_cxxabi.patch Same here, happened after bumping dev-libs/boost-1.65.0 -> dev-libs/boost-1.71.0 With gcc-8.3.0 I get > src/mongo/util/heap_profiler.cpp:484:33: error: ‘abi’ has not been declared With sys-devel/clang-8.0.1 I get > src/mongo/util/heap_profiler.cpp:484:33: error: use of undeclared identifier 'abi' The attached patch was enough to get dev-db/mongodb-4.0.12 built and out of @preserved-rebuild.
Supplied patch works for me (GCC 9.2 ~amd64). Thanks!
Same here, patch works!
(In reply to Jouni Kosonen from comment #3) > Created attachment 589966 [details, diff] [details, diff] > mongodb_boost_171_cxxabi.patch > > Same here, happened after bumping dev-libs/boost-1.65.0 -> > dev-libs/boost-1.71.0 > > With gcc-8.3.0 I get > > src/mongo/util/heap_profiler.cpp:484:33: error: ‘abi’ has not been declared > > With sys-devel/clang-8.0.1 I get > > src/mongo/util/heap_profiler.cpp:484:33: error: use of undeclared identifier 'abi' > > The attached patch was enough to get dev-db/mongodb-4.0.12 built and out of > @preserved-rebuild. Could you test this against the old boost, and some older GCCs as well? If it passes, I'll add it.
(In reply to David Seifert from comment #6) > Could you test this against the old boost, and some older GCCs as well? If > it passes, I'll add it. I've now tried the patch also with gcc-7.3.0 against both boost-1.71.0 and boost-1.65.0 and it works in both.
(In reply to Jouni Kosonen from comment #3) > Created attachment 589966 [details, diff] [details, diff] > mongodb_boost_171_cxxabi.patch > > Same here, happened after bumping dev-libs/boost-1.65.0 -> > dev-libs/boost-1.71.0 > > With gcc-8.3.0 I get > > src/mongo/util/heap_profiler.cpp:484:33: error: ‘abi’ has not been declared > > With sys-devel/clang-8.0.1 I get > > src/mongo/util/heap_profiler.cpp:484:33: error: use of undeclared identifier 'abi' > > The attached patch was enough to get dev-db/mongodb-4.0.12 built and out of > @preserved-rebuild. Works with the patch on unstable (boost 1.71, gcc 9.2.0) and on stable too (boost 1.65.0 gcc 8.3.0-r1). Thanks for the fix.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d32a1753b39623696eff690223cda79078c8a967 commit d32a1753b39623696eff690223cda79078c8a967 Author: Jouni Kosonen <jouni.kosonen@tukesoft.com> AuthorDate: 2019-09-21 21:22:14 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2019-09-21 21:22:14 +0000 dev-db/mongodb: Fix building against boost 1.71 Closes: https://bugs.gentoo.org/694530 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: David Seifert <soap@gentoo.org> .../files/mongodb-4.0.12-boost-1.71-cxxabi-include.patch | 12 ++++++++++++ dev-db/mongodb/mongodb-4.0.12.ebuild | 1 + 2 files changed, 13 insertions(+)
it is still an issue at stable amd64 tinderbox image 17.1_desktop_gnome-stable-20190922-165624
Created attachment 590772 [details] emerge-info.txt
Created attachment 590774 [details] dev-db:mongodb-4.0.10:20190923-095648.log
Created attachment 590776 [details] emerge-history.txt
Created attachment 590778 [details] environment
Created attachment 590780 [details] etc.portage.tbz2
Created attachment 590782 [details] logs.tbz2
Created attachment 590784 [details] temp.tbz2
But it is fixed in 4.0.12.
Created attachment 590884 [details] emerge-info.txt
Created attachment 590886 [details] dev-db:mongodb-3.6.13:20190923-231616.log.bz2
Created attachment 590888 [details] emerge-history.txt
Created attachment 590890 [details] environment
Created attachment 590892 [details] etc.portage.tbz2
Created attachment 590894 [details] logs.tbz2
Created attachment 590896 [details] temp.tbz2
Still fixed in 4.0.12. :)