aitikin Posted May 25, 2019 Report Share Posted May 25, 2019 Running into a failed emerge when emerging ldb as part of a "emerge @preserved-rebuild" Seemingly relevant part from the failed emerge: 19:00:25 runner x86_64-pc-linux-gnu-gcc -march=native -O2 -fomit-frame-pointer -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -DSTATIC_replace_MODULES=NULL -DSTATIC_replace_MODULES_PROTO=extern void __replace_dummy_module_proto(void) -MD -Idefault/lib/replace -I../lib/replace -Idefault -I.. -I/usr/local/include -I/usr/include/tirpc -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -DHAVE_CONFIG_H=1 ../lib/replace/cwrap.c -c -o default/lib/replace/cwrap_2.o In file included from ../lib/replace/system/filesys.h:126:0, from ../lib/replace/replace.c:28: /usr/include/attr/xattr.h:5:2: warning: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Wcpp] #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" ^~~~~~~ [ 9/116] Linking default/lib/replace/libreplace-ldb.so 19:00:25 runner x86_64-pc-linux-gnu-gcc default/lib/replace/replace_2.o default/lib/replace/cwrap_2.o -o /var/tmp/portage/sys-libs/ldb-1.4.3/work/ldb-1.4.3-abi_x86_64.amd64/bin/default/lib/replace/libreplace-ldb.so -march=native -O2 -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -lpthread -Wl,-no-undefined -shared -Wl,--version-script=/var/tmp/portage/sys-libs/ldb-1.4.3/work/ldb-1.4.3-abi_x86_64.amd64/bin/default/lib/replace/replace.vscript -L/usr/local/lib -Wl,-Bdynamic -lbsd -lcrypt -ldl -lnsl -ltirpc /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnsl collect2: error: ld returned 1 exit status Waf: Leaving directory `/var/tmp/portage/sys-libs/ldb-1.4.3/work/ldb-1.4.3-abi_x86_64.amd64/bin' Build failed: -> task failed (err #1): {task: cc_link replace_2.o,cwrap_2.o -> libreplace-ldb.so} output of "emerge --info '=sys-libs/ldb-1.4.3::core-server-kit'" emerge --info '=sys-libs/ldb-1.4.3::core-server-kit' Portage 2.3.47 (python 3.6.6-final-0, funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-7.4.1, glibc-2.27-r6, 4.9.168_p1-debian-sources-lts x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.9.168_p1-debian-sources-lts-x86_64-Intel-R-_Core-TM-_i5-3470_CPU_@_3.20GHz-with-gentoo-2.2.2 KiB Mem: 3977212 total, 49724 free KiB Swap: 2097148 total, 2092744 free sh bash 4.4_p18 ld GNU ld (Gentoo 2.31.1 p3) 2.31.1 app-shells/bash: 4.4_p18::core-kit dev-lang/perl: 5.26.2-r1::perl-kit dev-lang/python: 2.7.15::python-kit, 3.6.6::python-kit, 3.7.0::python-kit dev-util/cmake: 3.12.3::core-kit sys-apps/baselayout: 2.2.2::core-kit sys-apps/openrc: 0.40.2-r2::core-kit sys-apps/sandbox: 2.13::core-kit sys-devel/autoconf: 2.69-r4::core-kit sys-devel/automake: 1.11.6-r3::core-kit, 1.15.1-r2::core-kit, 1.16.1-r1::core-kit sys-devel/binutils: 2.31.1-r1::core-kit sys-devel/gcc: 7.4.1-r6::core-kit sys-devel/gcc-config: 2.0::core-kit sys-devel/libtool: 2.4.6-r5::core-kit sys-devel/make: 4.2.1-r4::core-kit sys-kernel/linux-headers: 4.14::core-kit (virtual/os-headers) sys-libs/glibc: 2.27-r6::core-kit Repositories: nokit location: /var/git/meta-repo/kits/nokit masters: core-kit priority: -500 core-gl-kit location: /var/git/meta-repo/kits/core-gl-kit masters: core-kit priority: 1 core-hw-kit location: /var/git/meta-repo/kits/core-hw-kit masters: core-kit priority: 1 core-kit location: /var/git/meta-repo/kits/core-kit priority: 1 aliases: gentoo core-server-kit location: /var/git/meta-repo/kits/core-server-kit masters: core-kit priority: 1 core-ui-kit location: /var/git/meta-repo/kits/core-ui-kit masters: core-kit priority: 1 desktop-kit location: /var/git/meta-repo/kits/desktop-kit masters: core-kit priority: 1 dev-kit location: /var/git/meta-repo/kits/dev-kit masters: core-kit priority: 1 editors-kit location: /var/git/meta-repo/kits/editors-kit masters: core-kit priority: 1 games-kit location: /var/git/meta-repo/kits/games-kit masters: core-kit priority: 1 gnome-kit location: /var/git/meta-repo/kits/gnome-kit masters: core-kit priority: 1 haskell-kit location: /var/git/meta-repo/kits/haskell-kit masters: core-kit priority: 1 java-kit location: /var/git/meta-repo/kits/java-kit masters: core-kit priority: 1 kde-kit location: /var/git/meta-repo/kits/kde-kit masters: core-kit priority: 1 lang-kit location: /var/git/meta-repo/kits/lang-kit masters: core-kit priority: 1 lisp-scheme-kit location: /var/git/meta-repo/kits/lisp-scheme-kit masters: core-kit priority: 1 llvm-kit location: /var/git/meta-repo/kits/llvm-kit masters: core-kit priority: 1 media-kit location: /var/git/meta-repo/kits/media-kit masters: core-kit priority: 1 ml-lang-kit location: /var/git/meta-repo/kits/ml-lang-kit masters: core-kit priority: 1 net-kit location: /var/git/meta-repo/kits/net-kit masters: core-kit priority: 1 perl-kit location: /var/git/meta-repo/kits/perl-kit masters: core-kit priority: 1 python-kit location: /var/git/meta-repo/kits/python-kit masters: core-kit priority: 1 python-modules-kit location: /var/git/meta-repo/kits/python-modules-kit masters: core-kit priority: 1 ruby-kit location: /var/git/meta-repo/kits/ruby-kit masters: core-kit priority: 1 rust-kit location: /var/git/meta-repo/kits/rust-kit masters: core-kit priority: 1 science-kit location: /var/git/meta-repo/kits/science-kit masters: core-kit priority: 1 security-kit location: /var/git/meta-repo/kits/security-kit masters: core-kit priority: 1 text-kit location: /var/git/meta-repo/kits/text-kit masters: core-kit priority: 1 xfce-kit location: /var/git/meta-repo/kits/xfce-kit masters: core-kit priority: 1 xorg-kit location: /var/git/meta-repo/kits/xorg-kit masters: core-kit priority: 1 fkmclane location: /var/lib/layman/fkmclane masters: core-kit priority: 50 megacoffee location: /var/lib/layman/megacoffee masters: core-kit priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -fomit-frame-pointer" 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/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -fomit-frame-pointer" DISTDIR="/var/cache/portage/distfiles" 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="-march=ivybridge -O2 -pipe" GENTOO_MIRRORS="https://fastpull-us.funtoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/var/cache/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 apache2 berkdb bzip2 cracklib crypt curl cxx dbus gdbm iconv icu ipv6 mmx modules mudflap ncurses nls nptl ntp offensive openmp pam pcre python readline resolvconf sse sse2 ssl tcpd unicode xattr xml zlib" ABI_X86="64" APACHE2_MODULES="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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c 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 pc" INPUT_DEVICES="evdev synaptics keyboard mouse" 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="php7-2" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, ENV_UNSET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= sys-libs/ldb-1.4.3::core-server-kit was built with the following: USE="ldap lmdb python -doc" PYTHON_TARGETS="python2_7" output of "emerge -pqv '=sys-libs/ldb-1.4.3::core-server-kit'" [ebuild R ] sys-libs/ldb-1.4.3 USE="ldap lmdb python -doc" PYTHON_TARGETS="python2_7" I'm guessing that somehow something got deleted when I was stupidly rooting around one time. Any suggestions? Link to comment Share on other sites More sharing options...
1 cardinal Posted May 26, 2019 Report Share Posted May 26, 2019 /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnsl # pkg-config --libs libnsl -lnsl -ltirpc Verify you have libnsl-1.2.0 installed. My sys-libs:ldb-1.4.3:20190526-041530.log Link to comment Share on other sites More sharing options...
0 aitikin Posted May 26, 2019 Author Report Share Posted May 26, 2019 Re-emerging libnsl seems to have fixed it. Thanks cardinal! Link to comment Share on other sites More sharing options...
Question
aitikin
Running into a failed emerge when emerging ldb as part of a "emerge @preserved-rebuild"
Seemingly relevant part from the failed emerge:
output of "emerge --info '=sys-libs/ldb-1.4.3::core-server-kit'"
emerge --info '=sys-libs/ldb-1.4.3::core-server-kit' Portage 2.3.47 (python 3.6.6-final-0, funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-7.4.1, glibc-2.27-r6, 4.9.168_p1-debian-sources-lts x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.9.168_p1-debian-sources-lts-x86_64-Intel-R-_Core-TM-_i5-3470_CPU_@_3.20GHz-with-gentoo-2.2.2 KiB Mem: 3977212 total, 49724 free KiB Swap: 2097148 total, 2092744 free sh bash 4.4_p18 ld GNU ld (Gentoo 2.31.1 p3) 2.31.1 app-shells/bash: 4.4_p18::core-kit dev-lang/perl: 5.26.2-r1::perl-kit dev-lang/python: 2.7.15::python-kit, 3.6.6::python-kit, 3.7.0::python-kit dev-util/cmake: 3.12.3::core-kit sys-apps/baselayout: 2.2.2::core-kit sys-apps/openrc: 0.40.2-r2::core-kit sys-apps/sandbox: 2.13::core-kit sys-devel/autoconf: 2.69-r4::core-kit sys-devel/automake: 1.11.6-r3::core-kit, 1.15.1-r2::core-kit, 1.16.1-r1::core-kit sys-devel/binutils: 2.31.1-r1::core-kit sys-devel/gcc: 7.4.1-r6::core-kit sys-devel/gcc-config: 2.0::core-kit sys-devel/libtool: 2.4.6-r5::core-kit sys-devel/make: 4.2.1-r4::core-kit sys-kernel/linux-headers: 4.14::core-kit (virtual/os-headers) sys-libs/glibc: 2.27-r6::core-kit Repositories: nokit location: /var/git/meta-repo/kits/nokit masters: core-kit priority: -500 core-gl-kit location: /var/git/meta-repo/kits/core-gl-kit masters: core-kit priority: 1 core-hw-kit location: /var/git/meta-repo/kits/core-hw-kit masters: core-kit priority: 1 core-kit location: /var/git/meta-repo/kits/core-kit priority: 1 aliases: gentoo core-server-kit location: /var/git/meta-repo/kits/core-server-kit masters: core-kit priority: 1 core-ui-kit location: /var/git/meta-repo/kits/core-ui-kit masters: core-kit priority: 1 desktop-kit location: /var/git/meta-repo/kits/desktop-kit masters: core-kit priority: 1 dev-kit location: /var/git/meta-repo/kits/dev-kit masters: core-kit priority: 1 editors-kit location: /var/git/meta-repo/kits/editors-kit masters: core-kit priority: 1 games-kit location: /var/git/meta-repo/kits/games-kit masters: core-kit priority: 1 gnome-kit location: /var/git/meta-repo/kits/gnome-kit masters: core-kit priority: 1 haskell-kit location: /var/git/meta-repo/kits/haskell-kit masters: core-kit priority: 1 java-kit location: /var/git/meta-repo/kits/java-kit masters: core-kit priority: 1 kde-kit location: /var/git/meta-repo/kits/kde-kit masters: core-kit priority: 1 lang-kit location: /var/git/meta-repo/kits/lang-kit masters: core-kit priority: 1 lisp-scheme-kit location: /var/git/meta-repo/kits/lisp-scheme-kit masters: core-kit priority: 1 llvm-kit location: /var/git/meta-repo/kits/llvm-kit masters: core-kit priority: 1 media-kit location: /var/git/meta-repo/kits/media-kit masters: core-kit priority: 1 ml-lang-kit location: /var/git/meta-repo/kits/ml-lang-kit masters: core-kit priority: 1 net-kit location: /var/git/meta-repo/kits/net-kit masters: core-kit priority: 1 perl-kit location: /var/git/meta-repo/kits/perl-kit masters: core-kit priority: 1 python-kit location: /var/git/meta-repo/kits/python-kit masters: core-kit priority: 1 python-modules-kit location: /var/git/meta-repo/kits/python-modules-kit masters: core-kit priority: 1 ruby-kit location: /var/git/meta-repo/kits/ruby-kit masters: core-kit priority: 1 rust-kit location: /var/git/meta-repo/kits/rust-kit masters: core-kit priority: 1 science-kit location: /var/git/meta-repo/kits/science-kit masters: core-kit priority: 1 security-kit location: /var/git/meta-repo/kits/security-kit masters: core-kit priority: 1 text-kit location: /var/git/meta-repo/kits/text-kit masters: core-kit priority: 1 xfce-kit location: /var/git/meta-repo/kits/xfce-kit masters: core-kit priority: 1 xorg-kit location: /var/git/meta-repo/kits/xorg-kit masters: core-kit priority: 1 fkmclane location: /var/lib/layman/fkmclane masters: core-kit priority: 50 megacoffee location: /var/lib/layman/megacoffee masters: core-kit priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -fomit-frame-pointer" 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/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -fomit-frame-pointer" DISTDIR="/var/cache/portage/distfiles" 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="-march=ivybridge -O2 -pipe" GENTOO_MIRRORS="https://fastpull-us.funtoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/var/cache/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 apache2 berkdb bzip2 cracklib crypt curl cxx dbus gdbm iconv icu ipv6 mmx modules mudflap ncurses nls nptl ntp offensive openmp pam pcre python readline resolvconf sse sse2 ssl tcpd unicode xattr xml zlib" ABI_X86="64" APACHE2_MODULES="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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c 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 pc" INPUT_DEVICES="evdev synaptics keyboard mouse" 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="php7-2" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, ENV_UNSET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= sys-libs/ldb-1.4.3::core-server-kit was built with the following: USE="ldap lmdb python -doc" PYTHON_TARGETS="python2_7"
output of "emerge -pqv '=sys-libs/ldb-1.4.3::core-server-kit'"
[ebuild R ] sys-libs/ldb-1.4.3 USE="ldap lmdb python -doc" PYTHON_TARGETS="python2_7"
I'm guessing that somehow something got deleted when I was stupidly rooting around one time. Any suggestions?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts