Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690336 - app-backup/snapper with ld.gold: ../../snapper/.libs/libsnapper.so: error: undefined reference to 'pthread_condattr_setclock'
Summary: app-backup/snapper with ld.gold: ../../snapper/.libs/libsnapper.so: error: un...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-gold
  Show dependency tree
 
Reported: 2019-07-21 09:03 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2022-11-19 10:40 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,35.13 KB, text/x-log)
2019-07-21 09:03 UTC, Michael Mair-Keimberger (iamnr3)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (iamnr3) 2019-07-21 09:03:27 UTC
Created attachment 583866 [details]
build.log

Portage 2.3.69 (python 3.6.9-final-0, default/linux/amd64/17.1, gcc-9.1.0, glibc-2.29-r2, 5.2.1-gentoo x86_64)
=================================================================
System uname: Linux-5.2.1-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.6
KiB Mem:    16410644 total,   7160092 free
KiB Swap:    8388604 total,   8388348 free
Timestamp of repository gentoo: Fri, 19 Jul 2019 18:47:16 +0000
Head commit of repository gentoo: fe7d84011bf21cb2d7cedafffb04ca95f56fcb7d

Head commit of repository local: 823c6c1d3092c720717eb377426b1a04b3ab5c32

Timestamp of repository steam-overlay: Thu, 18 Jul 2019 16:22:33 +0000
Head commit of repository steam-overlay: d127dd045ee604a89cc1bef65e4efafa0a545429

sh bash 5.0_p7
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
app-shells/bash:          5.0_p7::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.15.0::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.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0-r1::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.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

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

local
    location: /var/db/repos/local
    sync-type: git
    sync-uri: git@s2:local
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
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"
CXXFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average 8"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_AT.UTF-8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--info=progress2,name0,del0"
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="aac acl alsa amd64 berkdb bzip2 cli crypt cxx dbus dri elogind exif flac fortran gdbm gif iconv ipv6 jpeg kde ldap libtirpc lzma mad mp3 mp4 multilib ncurses nls nptl openal opengl openmp opus pam pcre png python readline sdl seccomp split-usr ssl svg tcpd threads tiff truetype udev unicode vaapi vdpau vim-syntax vorbis vpx wayland webp x264 xattr xml 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="krita sheets words karbon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" 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="pc" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby26 ruby25" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS



Relevant log:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..  -I../.. -DCONFDIR='"/etc/conf.d"'  -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -c -o CmpDirs.o CmpDirs.cc
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..  -I../.. -DCONFDIR='"/etc/conf.d"'  -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -c -o CreateNumber.o CreateNumber.cc
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..  -I../.. -DCONFDIR='"/etc/conf.d"'  -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -c -o CreateTimeline.o CreateTimeline.cc
/bin/sh ../../libtool  --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -lboost_system -Wl,-O1 -Wl,--as-needed -o List List.o ../../snapper/libsnapper.la -lbtrfs 
/bin/sh ../../libtool  --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -lboost_system -Wl,-O1 -Wl,--as-needed -o ListAll ListAll.o ../../snapper/libsnapper.la -lbtrfs 
/bin/sh ../../libtool  --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -lboost_system -Wl,-O1 -Wl,--as-needed -o Create Create.o ../../snapper/libsnapper.la -lbtrfs 
/bin/sh ../../libtool  --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++  -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -lboost_system -Wl,-O1 -Wl,--as-needed -o CreateTimeline CreateTimeline.o ../../snapper/libsnapper.la -lbtrfs 
libtool: link: x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -Wl,-O1 -Wl,--as-needed -o .libs/List List.o  ../../snapper/.libs/libsnapper.so -lboost_thread -lboost_system -lxml2 -lacl -lz -lmount -lbtrfs
../../snapper/.libs/libsnapper.so: error: undefined reference to 'pthread_condattr_setclock'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:417: List] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: link: x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -Wl,-O1 -Wl,--as-needed -o .libs/Create Create.o  ../../snapper/.libs/libsnapper.so -lboost_thread -lboost_system -lxml2 -lacl -lz -lmount -lbtrfs
libtool: link: x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -Wl,-O1 -Wl,--as-needed -o .libs/ListAll ListAll.o  ../../snapper/.libs/libsnapper.so -lboost_thread -lboost_system -lxml2 -lacl -lz -lmount -lbtrfs
../../snapper/.libs/libsnapper.so: error: undefined reference to 'pthread_condattr_setclock'
collect2: error: ld returned 1 exit status
../../snapper/.libs/libsnapper.so: error: undefined reference to 'pthread_condattr_setclockmake[3]: *** [Makefile:421: ListAll] Error 1
'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:405: Create] Error 1
libtool: link: x86_64-pc-linux-gnu-g++ -O2 -pipe -march=bdver2 -mprefer-avx128 -std=c++11 -Wall -Wextra -Wformat -Wnon-virtual-dtor -Wno-unused-parameter -Wl,-O1 -Wl,--as-needed -o .libs/CreateTimeline CreateTimeline.o  ../../snapper/.libs/libsnapper.so -lboost_thread -lboost_system -lxml2 -lacl -lz -lmount -lbtrfs
../../snapper/.libs/libsnapper.so: error: undefined reference to 'pthread_condattr_setclock'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:413: CreateTimeline] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-backup/snapper-0.8.3/work/snapper-0.8.3/examples/c++-lib'
make[2]: *** [Makefile:376: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-backup/snapper-0.8.3/work/snapper-0.8.3/examples'
make[1]: *** [Makefile:547: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-backup/snapper-0.8.3/work/snapper-0.8.3'
make: *** [Makefile:452: all] Error 2
 * ERROR: app-backup/snapper-0.8.3::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-backup/snapper-0.8.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-backup/snapper-0.8.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-backup/snapper-0.8.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-backup/snapper-0.8.3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-backup/snapper-0.8.3/work/snapper-0.8.3'
 * S: '/var/tmp/portage/app-backup/snapper-0.8.3/work/snapper-0.8.3'
Comment 1 benjamin.herweyer 2020-09-05 02:29:51 UTC
I encountered this problem with the BFD linker on 2.32 after I updated Boost to 1.74. Running `CFLAGS="-lc -pthread" emerge -1 snapper` worked for me.