Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828676 - net-libs/libtorrent-rasterbar-1.2.15: fails to compile due ld "cannot find -lboost_system"
Summary: net-libs/libtorrent-rasterbar-1.2.15: fails to compile due ld "cannot find -l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-10 09:03 UTC by James Chew
Modified: 2021-12-11 01:16 UTC (History)
3 users (show)

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


Attachments
net-libs/libtorrent-rasterbar-1.2.15 Build Log (build.log,462.67 KB, text/plain)
2021-12-10 09:07 UTC, James Chew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Chew 2021-12-10 09:03:41 UTC
Trying to upgrade from net-libs/libtorrent-rasterbar-1.2.14-r1 to net-libs/libtorrent-rasterbar-1.2.15 but it fails to compile.

Significant part of the log as follows:
gcc.link.dll bin/gcc-11/release/address-model-64/crypto-openssl/libtorrent-python-pic-on/lt-visibility-hidden/python-3.9/libtorrent.cpython-39-x86_64-linux-gnu.so
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lboost_system
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssl
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status


Reproducible: Always
Comment 1 James Chew 2021-12-10 09:04:55 UTC
# emerge --info '=net-libs/libtorrent-rasterbar-1.2.15::gentoo'
Portage 3.0.29 (python 3.9.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.2.1, glibc-2.34-r3, 5.14.21-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.14.21-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1240_v3_@_3.40GHz-with-glibc2.34
KiB Mem:    32843400 total,   6241476 free
KiB Swap:   16777212 total,  16767740 free
Timestamp of repository gentoo: Thu, 09 Dec 2021 16:00:01 +0000
Head commit of repository gentoo: d0795dc3230c616d9a9aa61b02f2ca53d25d96b9
Timestamp of repository usenet-overlay: Wed, 06 Oct 2021 04:06:18 +0000
Head commit of repository usenet-overlay: f51a5cd5dc8f232f72b978a2d75cbbc53e72788e

sh bash 5.1_p12
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
app-shells/bash:          5.1_p12::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          3.9.9::gentoo, 3.10.1::gentoo
dev-util/cmake:           3.22.1::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.37_p1-r1::gentoo
sys-devel/gcc:            11.2.1_p20211127::gentoo
sys-devel/gcc-config:     2.5-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.15-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.34-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/db/repos/gentoo/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 binpkg-multi-instance buildpkg-live 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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
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="acl acpi aes amd64 avx avx2 bzip2 cli crypt dri fma3 fortran gdbm iconv ipv6 libglvnd libtirpc mmx mmxext ncurses nls nptl openmp pam pcre popcnt readline samba seccomp split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 systemd threads unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 2 James Chew 2021-12-10 09:06:02 UTC
# emerge -pqv '=net-libs/libtorrent-rasterbar-1.2.15::gentoo'
[ebuild     U ] net-libs/libtorrent-rasterbar-1.2.15 [1.2.14-r1] USE="dht python ssl -debug -doc -examples -static-libs -test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10%"
Comment 3 James Chew 2021-12-10 09:07:19 UTC
Created attachment 757936 [details]
net-libs/libtorrent-rasterbar-1.2.15 Build Log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-10 13:05:18 UTC
Seems like it's trying to link statically?

Could you check if the existing version re-compiles ok?
Comment 5 James Chew 2021-12-10 13:49:33 UTC
(In reply to Sam James from comment #4)
> Could you check if the existing version re-compiles ok?

Yes, net-libs/libtorrent-rasterbar-1.2.14-r1 re-compiles fine. The issue is only occurring to net-libs/libtorrent-rasterbar-1.2.15
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 00:08:11 UTC
(In reply to James Chew from comment #5)
> (In reply to Sam James from comment #4)
> > Could you check if the existing version re-compiles ok?
> 
> Yes, net-libs/libtorrent-rasterbar-1.2.14-r1 re-compiles fine. The issue is
> only occurring to net-libs/libtorrent-rasterbar-1.2.15

Thanks. Issue seems to be https://github.com/arvidn/libtorrent/commit/fe129a093b153592d84046e371d28164cc877cad
Comment 7 Larry the Git Cow gentoo-dev 2021-12-11 01:16:26 UTC
The bug has been closed via the following commit(s):

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

commit 68bc7de6a6d3ec4d00500b6886beb90feb3afb45
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-11 01:11:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-11 01:16:17 +0000

    net-libs/libtorrent-rasterbar: fix 1.2.15 build (static linking against Boost)
    
    After some fighting with b2/jam, I've given in and just switched to CMake
    like we already did for newer versions. The handling of Boost is saner there
    and it means we can simplify the Python handling again too.
    
    Closes: https://bugs.gentoo.org/828676
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libtorrent-rasterbar/Manifest             |   2 +-
 .../libtorrent-rasterbar-1.2.15-r1.ebuild          |  69 +++++++++++++
 .../libtorrent-rasterbar-1.2.15.ebuild             | 112 ---------------------
 3 files changed, 70 insertions(+), 113 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 1da7b6b2c619ce5403c3a769acaab91a7ef3f58a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-11 01:15:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-11 01:16:18 +0000

    net-p2p/deluge: use PYTHON_SINGLE_USEDEP for libtorrent-rasterbar
    
    Finally had to convert older versions (1.2.x) of libtorrent-rasterbar to
    python-single-r1 so fixing the dependency here too.
    
    Bug: https://bugs.gentoo.org/828676
    Signed-off-by: Sam James <sam@gentoo.org>

 net-p2p/deluge/deluge-2.0.3-r11.ebuild | 145 +++++++++++++++++++++++++++++++++
 net-p2p/deluge/deluge-9999.ebuild      |   7 +-
 2 files changed, 147 insertions(+), 5 deletions(-)