Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544116 - net-libs/rb_libtorrent-0.16.19: Build fails at /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ltorrent-rasterbar
Summary: net-libs/rb_libtorrent-0.16.19: Build fails at /usr/lib/gcc/x86_64-pc-linux-g...
Status: RESOLVED DUPLICATE of bug 542434
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-22 16:21 UTC by James Chew
Modified: 2015-03-22 21:34 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,347.58 KB, application/octet-stream)
2015-03-22 16:22 UTC, James Chew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Chew 2015-03-22 16:21:19 UTC
When building net-libs/rb_libtorrent-0.16.19 on a new system, it will fail to build when trying to link torrent-rasterbar.

I think it is related to bug 542434.

Side note:
Building net-libs/rb_libtorrent-0.16.17-r1 works. And then subsequently upgrading to net-libs/rb_libtorrent-0.16.19 would then work. But building net-libs/rb_libtorrent-0.16.19 from scratch does not work. 

Reproducible: Always



Expected Results:  
net-libs/rb_libtorrent-0.16.19 should be able to be built from scratch

# emerge --info '=net-libs/rb_libtorrent-0.16.19::gentoo'
Portage 2.2.18 (python 3.3.5-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.9.2, glibc-2.20-r2, 3.17.8-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.17.8-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2500_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:    16128056 total,   3674336 free
KiB Swap:   16777212 total,  16768060 free
Timestamp of repository gentoo: Sat, 21 Mar 2015 14:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.17-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.161.254/gentoo-portage
    priority: -1000

Personal_Portage
    location: /var/lib/personal_portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=sandybridge --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=sandybridge"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=sandybridge --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=sandybridge"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gg3.net/ http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="acl acpi aes amd64 apache2 avx berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 libav lm_sensors mmx mmxext modules ncurses nls nptl openmp pam pcre popcnt postgres readline samba session sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 tcpd threads unicode 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" 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="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 James Chew 2015-03-22 16:22:00 UTC
# emerge -pqv '=net-libs/rb_libtorrent-0.16.19::gentoo'
[ebuild  N    ] net-libs/rb_libtorrent-0.16.19  USE="python ssl -debug -doc -examples -static-libs {-test}" PYTHON_TARGETS="python2_7 python3_3 -python3_4"
Comment 2 James Chew 2015-03-22 16:22:38 UTC
Created attachment 399470 [details]
build.log
Comment 3 Rafał Mużyło 2015-03-22 18:24:17 UTC
> I think it is related to bug 54243.

It probably is and your side note is actually *the* issue at hand.

> x86_64-pc-linux-gnu-g++ -pthread -shared -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -fvisibility=hidden -fvisibility-inlines-hidden -O2 -pipe -march=sandybridge --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=sandybridge -ftemplate-depth=120 -fvisibility=hidden -fvisibility-inlines-hidden build/temp.linux-x86_64-3.3/src/alert.o build/temp.linux-x86_64-3.3/src/big_number.o build/temp.linux-x86_64-3.3/src/converters.o build/temp.linux-x86_64-3.3/src/create_torrent.o build/temp.linux-x86_64-3.3/src/datetime.o build/temp.linux-x86_64-3.3/src/entry.o build/temp.linux-x86_64-3.3/src/error_code.o build/temp.linux-x86_64-3.3/src/fingerprint.o build/temp.linux-x86_64-3.3/src/ip_filter.o build/temp.linux-x86_64-3.3/src/magnet_uri.o build/temp.linux-x86_64-3.3/src/module.o build/temp.linux-x86_64-3.3/src/peer_info.o build/temp.linux-x86_64-3.3/src/session.o build/temp.linux-x86_64-3.3/src/session_settings.o build/temp.linux-x86_64-3.3/src/string.o build/temp.linux-x86_64-3.3/src/torrent_handle.o build/temp.linux-x86_64-3.3/src/torrent_info.o build/temp.linux-x86_64-3.3/src/torrent_status.o build/temp.linux-x86_64-3.3/src/utility.o build/temp.linux-x86_64-3.3/src/version.o -L../../src/.libs -L/usr/lib64 -ltorrent-rasterbar -lpthread -lboost_system-mt -lboost_python-3.3 -lpthread -lssl -lcrypto -lpython3.3 -o build/lib.linux-x86_64-3.3/libtorrent.cpython-33.so -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -fvisibility=hidden -fvisibility-inlines-hidden
> ...
> make: Leaving directory '/var/tmp/portage/net-libs/rb_libtorrent-0.16.19/work/libtorrent-rasterbar-0.16.19-python3_3/bindings/python'

Note '-L../../src/.libs' part (also, as my side note: given that '-L/usr/lib64' is the first value, this is prone to breaking on ABI breaks).
python_install
Probably, just adding a proper symlink in python_configure or python_install would solve the original problem.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2015-03-22 21:34:42 UTC

*** This bug has been marked as a duplicate of bug 542434 ***