Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-db/mongodb-3.6.xx fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Gatak
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 174

PostPosted: Wed Nov 06, 2019 7:59 am    Post subject: dev-db/mongodb-3.6.xx fails to build Reply with quote

Hi!

Just did an emerge @world update. dev-libs/boost was updated from 1.6.5 to 1.7.1, which caused a rebuild of dev-db/mongodb.

However now mongodb fails to build. I need to use 3.6.x branch because newer is not compatible with my Ubiquity Unifi Controller.

This is from the mongodb-3.6.14:20191102-130654.log
Code:
src/mongo/util/heap_profiler.cpp: In member function ‘void mongo::{anonymous}::HeapProfiler::generateStackIfNeeded(mongo::{anonymous}::HeapProfiler::Stack&
, mongo::{anonymous}::HeapProfiler::StackInfo&)’:
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);
      |                                 ^~~


I've tried to emerge dev-dv/mongodb-3.6.13 (which was installed before) and update to 3.6.14 ~amd64, but the error is exactly the same.


This is emerge --info
Code:
 # emerge --info dev-db/mongodb
Portage 2.3.78 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-9.2.0, glibc-2.29-r6, 5.3.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.3.7-gentoo-x86_64-AMD_E-350_Processor-with-gentoo-2.6
KiB Mem:     7745748 total,    179348 free
KiB Swap:   16570352 total,  14912752 free
Timestamp of repository gentoo: Tue, 05 Nov 2019 11:26:07 +0000
Head commit of repository gentoo: b2efe64e7ce7f5aa9e693139ac6e87d21f19589e

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

E350-local-overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

Installed sets: @apache, @glances, @kernel-rebuild, @mail, @nextcloud, @plex, @toolchain
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=btver1 -mno-xsave -fopenmp"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /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="-O3 -pipe -march=btver1 -mno-xsave -fopenmp"
DISTDIR="/mnt/storageTemp/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 4  --load-average=3 --autounmask=n --keep-going"
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="-O3 -pipe -march=btver1 -mno-xsave -fopenmp"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O3 -pipe -march=btver1 -mno-xsave -fopenmp"
GENTOO_MIRRORS="https://mirror.mdfnet.se/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
LINGUAS="en_US en_GB sv_SE en sv"
MAKEOPTS="-j3 -l3"
PKGDIR="/mnt/storageTemp/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="pbzip2"
PORTAGE_COMPRESS_FLAGS="-9"
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="3dnowext X a52 aac acl acpi alsa amd64 apache apache2 apic apng bash-completion berkdb bmp branding brotli btrfs bzip2 cairo cdda cdr cli colord crypt cups cxx dbus dri dts dvd dvdr eds elogind emboss encode evo exif fam flac fortran fuse gd gdbm gif gmp gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk http2 iconv icu idn introspection ipv6 jpeg lcms libnotify libsecret libtirpc linux-threads lto lzma lzo mad mmx mmxext mng mp3 mp4 mpeg mysql nautilus ncurses nls nptl nptlonly ogg openexr opengl openmp pam pango pch pcre pdf pgo pic png policykit popcnt ppds pulseaudio python qt5 readline samba sctp sdl seccomp sharedmem smp spell split-usr sse sse2 sse3 sse4a ssl ssse3 startup-notification svg tcmalloc tcpd threads tiff tracker truetype udev udisks unicode upower urandom usb vhosts vorbis vpx webp wxwidgets x264 x265 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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 http2 brotli log_forensic proxy proxy_fcgi proxy_html proxy_http proxy_http2 xml2enc" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" NGINX_MODULES_HTTP="fastcgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="radeon r600 vesa amdgpu" 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, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-db/mongodb-3.6.14::gentoo was built with the following:
USE="lto ssl tools -debug -kerberos -libressl -mms-agent -test" ABI_X86="(64)"
CFLAGS="-pipe -fomit-frame-pointer"
CXXFLAGS="-pipe -fomit-frame-pointer"
LDFLAGS="-Wl,-O1,--sort-common,--enable-new-dtags"



I have tried without the lto USE flag too.

Any ideas?
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2727

PostPosted: Wed Nov 06, 2019 8:21 am    Post subject: Reply with quote

This sounds a lot like:
https://bugs.gentoo.org/698152
However, it should already be fixed, and I even see the patch in the ebuild. Perhaps it's not up to date for you? Fix is fairly recent. I don't use mongodb so I don't know more than this.

Edit: also, haven't tried but bug makes it sound like 3.6.13 is broken still (patch was only added to 3.6.14, so stick to that one)... this may actually be a problem given 3.6.13 is the one that's marked stable.
Back to top
View user's profile Send private message
Gatak
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 174

PostPosted: Wed Nov 06, 2019 2:25 pm    Post subject: Reply with quote

Thanks a lot. Indeed it looks like the same issue.

I just did an ebuild prepare and look, there it is. * Applying mongodb-4.0.12-boost-1.71-cxxabi-include.patch ...

Code:
e350 /usr/portage/dev-db/mongodb # ebuild mongodb-3.6.14.ebuild unpack
 * mongodb-src-r3.6.14.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                       [ ok ]
 * Be sure to set featureCompatibilityVersion to 3.4 before upgrading.
>>> Unpacking source...
>>> Unpacking mongodb-src-r3.6.14.tar.gz to /var/tmp/portage/dev-db/mongodb-3.6.14/work
>>> Source unpacked in /var/tmp/portage/dev-db/mongodb-3.6.14/work
e350 /usr/portage/dev-db/mongodb # ebuild mongodb-3.6.14.ebuild prepare
>>> Existing ${T}/environment for 'mongodb-3.6.14' will be sourced. Run
>>> 'clean' to start with a fresh environment.
>>> Checking mongodb-src-r3.6.14.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> It appears that 'pretend' has already executed for 'mongodb-3.6.14'; skipping.
>>> Remove '/var/tmp/portage/dev-db/mongodb-3.6.14/.pretended' to force pretend.
>>> It appears that 'setup' has already executed for 'mongodb-3.6.14'; skipping.
>>> Remove '/var/tmp/portage/dev-db/mongodb-3.6.14/.setuped' to force setup.
>>> It appears that 'unpack' has already executed for 'mongodb-3.6.14'; skipping.
>>> Remove '/var/tmp/portage/dev-db/mongodb-3.6.14/.unpacked' to force unpack.
>>> Preparing source in /var/tmp/portage/dev-db/mongodb-3.6.14/work/mongodb-src-r3.6.14 ...
 * Applying mongodb-3.6.1-fix-scons.patch ...                                                                                                                                                   [ ok ]
 * Applying mongodb-3.6.1-no-compass.patch ...                                                                                                                                                  [ ok ]
 * Applying mongodb-4.0.12-boost-1.71-cxxabi-include.patch ...                                                                                                                                  [ ok ]
>>> Source prepared.


This system is a little slow, so I'll get back with the results from the compile phase :)

Update: so after about 11 hours it finished and merged properly. Thanks a lot! Saved my day :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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