Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767835 - net-libs/libtorrent-rasterbar-1.2.11 : configure: error: Could not find a version of the Boost::System library!
Summary: net-libs/libtorrent-rasterbar-1.2.11 : configure: error: Could not find a ver...
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-01-29 10:46 UTC by Toralf Förster
Modified: 2021-10-31 04:43 UTC (History)
7 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.38 KB, text/plain)
2021-01-29 10:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,252.91 KB, text/plain)
2021-01-29 10:46 UTC, Toralf Förster
Details
environment (environment,149.78 KB, text/plain)
2021-01-29 10:46 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,21.58 KB, application/x-bzip)
2021-01-29 10:46 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,8.20 KB, application/x-bzip)
2021-01-29 10:46 UTC, Toralf Förster
Details
net-libs:libtorrent-rasterbar-1.2.11:20210129-005025.log (net-libs:libtorrent-rasterbar-1.2.11:20210129-005025.log,10.50 KB, text/plain)
2021-01-29 10:46 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,36.31 KB, application/x-bzip)
2021-01-29 10:46 UTC, Toralf Förster
Details
logs requested when bug during emerge happens (logs.tgz,40.94 KB, application/x-compressed-tar)
2021-10-11 10:03 UTC, Alexander Peshkov
Details
Requested logs and working patch (logsNpatch.tgz,23.24 KB, application/x-compressed-tar)
2021-10-13 13:49 UTC, Alexander Peshkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-01-29 10:46:26 UTC
checking whether x86_64-pc-linux-gnu-g++ supports C++11 features with -std=c++11... yes
checking whether the Boost::System library is available... yes
configure: error: Could not find a version of the Boost::System library!

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-libs/libtorrent-rasterbar-1.2.11/work/libtorrent-1.2.11/config.log

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib_hardened-20210123-231458

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.0.1
Python 3.8.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.48.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.272_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Jan 28 23:33:03 UTC 2021

emerge -qpvO net-libs/libtorrent-rasterbar
[ebuild  N    ] net-libs/libtorrent-rasterbar-1.2.11  USE="dht ssl -debug -doc -examples -libressl -python -static-libs -test" PYTHON_TARGETS="python3_8 -python3_7 -python3_9"
Comment 1 Toralf Förster gentoo-dev 2021-01-29 10:46:28 UTC
Created attachment 685056 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-01-29 10:46:29 UTC
Created attachment 685059 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-01-29 10:46:31 UTC
Created attachment 685062 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-01-29 10:46:32 UTC
Created attachment 685065 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-01-29 10:46:33 UTC
Created attachment 685068 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-01-29 10:46:34 UTC
Created attachment 685071 [details]
net-libs:libtorrent-rasterbar-1.2.11:20210129-005025.log
Comment 7 Toralf Förster gentoo-dev 2021-01-29 10:46:36 UTC
Created attachment 685074 [details]
temp.tar.bz2
Comment 8 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-03-09 10:17:55 UTC
Did some trivial breakage happen? I was going to stabilize that version and tested against all the available boost versions, everything went fine so far...
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-09 13:34:05 UTC
*** Bug 775038 has been marked as a duplicate of this bug. ***
Comment 10 Jeremy Stent 2021-05-10 23:39:20 UTC
This appears to be caused by libboost_system-mt at line 17855 of the configure script.  It does an ls and finds libboost_system as well as libboost_system-mt, and gets an error when it gets around to trying libboost_system-mt.
We would need to modify to exclude this file from the checking in the configure script(s).
Hacking these scripts on my system has allowed it to configure and compile.  I am not experienced in configure scripts to know the best way of correcting this.

For python I did have to add 'BOOST_BUILD_PATH="/usr/share/boost-build/"' as an environment variable.
Comment 11 Igor Filatov 2021-05-23 15:19:53 UTC
Problem configure in option --with-boost=/usr

It is worked:
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libtorrent-rasterbar-1.2.12 --htmldir=/usr/share/doc/libtorrent-rasterbar-1.2.12/html --with-sysroot=/ --libdir=/usr/lib64 --disable-debug --disable-export-all --disable-logging --enable-dht --disable-examples --enable-encryption --disable-static --disable-tests --with-libiconv --enable-logging
Comment 12 Larry the Git Cow gentoo-dev 2021-08-27 00:26:16 UTC
The bug has been closed via the following commit(s):

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

commit b3c6afa4d9c2dba2bded8b0e25bdbd9f6fe3b118
Author:     Alan Swanson <reiver@improbability.net>
AuthorDate: 2021-06-07 08:20:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-27 00:26:06 +0000

    net-libs/libtorrent-rasterbar: Version bump (v1.2.14)
    
    Signed-off-by: Alan Swanson <reiver@improbability.net>
    Closes: https://bugs.gentoo.org/767835
    Closes: https://github.com/gentoo/gentoo/pull/20850
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libtorrent-rasterbar/Manifest             |   1 +
 .../libtorrent-rasterbar-1.2.14.ebuild             | 112 +++++++++++++++++++++
 2 files changed, 113 insertions(+)
Comment 13 Alexander Peshkov 2021-10-11 10:01:52 UTC
Exactly same failure with net-libs/libtorrent-rasterbar-1.2.14 (emerge --sync 6-oct-2021).

Side note - if I run ./configure with parameters present in build.log via command line (in /build directory) it passes successfully, but long term that's not a way to go.
Comment 14 Alexander Peshkov 2021-10-11 10:03:38 UTC
Created attachment 744474 [details]
logs requested when bug during emerge happens
Comment 15 Piotr Karbowski (RETIRED) gentoo-dev 2021-10-12 19:34:51 UTC
What is the version of boost you're running? And is your system fully updated? I cannot reproduce your issue, it just work here.
Comment 16 Alexander Peshkov 2021-10-12 21:37:36 UTC
In my system boost 1.76.0 is installed:
# equery l boost
 * Searching for boost ...
[IP-] [  ] dev-libs/boost-1.76.0-r1:0/1.76.0

I believe system is fully updated. At least 
emerge -1auD --verbose-conflicts --keep-going -j8 @world
emerge -1aD --verbose-conflicts --keep-going -j8 @preserved-rebuild
emerge --depclean
completed successfully.

> I cannot reproduce your issue, it just work here.
The worst type of bugs is one hard to reproduce. I believe something is wrong with env - pay attention, that same ./configure passes successfully when started not from emerge but from plane command line. 

I'll be away for 2 weeks, starting with 27 of October I'll be glad to run on my problematic box anything needed to help reproducing an issue.
Comment 17 Alexander Peshkov 2021-10-12 21:40:25 UTC
To be precise - mentioned error first took place during world emerge. I had to remove the library and qbittorrent in order to complete update. When system got fully updated I wanted to install torrent again - but failed.
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-12 21:48:12 UTC
(In reply to Alexander Peshkov from comment #14)
> Created attachment 744474 [details]
> logs requested when bug during emerge happens

Could you include this too?

>!!! Please attach the following file when seeking support:
>!!! /var/tmp/portage/net-libs/libtorrent-rasterbar-1.2.14/work/libtorrent-1.2.14/config.log
Comment 19 Piotr Karbowski (RETIRED) gentoo-dev 2021-10-12 22:05:21 UTC
(In reply to Alexander Peshkov from comment #13)
> Exactly same failure with net-libs/libtorrent-rasterbar-1.2.14 (emerge
> --sync 6-oct-2021).
> 
> Side note - if I run ./configure with parameters present in build.log via
> command line (in /build directory) it passes successfully, but long term
> that's not a way to go.

Can you attach full output of such configure call to this bug, the working one? Like 
    
    ./configure [whatever params you added] 2>&1 | tee -a /tmp/configure.log

I am interested in what it said and where it found boost there.
Comment 20 Alexander Peshkov 2021-10-13 13:49:19 UTC
Created attachment 744747 [details]
Requested logs and working patch

After reboot I've failed to reproduce successful run of ./configure from command line.

But due to easy reproduced failure I've found a reason of it - incorrect value of BOOST_LDFLAGS=-L/usr/lib/x86_64-linux-gnu, on my box there is such directory but boost libraries are located in /usr/lib64. That made possible trivial patch that helped me finish with emerge (patch in tgz archive). It's definitely not generally useful, just an illustration for you.

I've attached needed to you logs but suppose reason of failure is almost clear - when searching for liboost* path a case when liboost* libraries are located in system lib directory and therefore available w/o additional -L flag should be checked first.
Comment 21 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-31 04:42:39 UTC
(In reply to Alexander Peshkov from comment #20)
> Created attachment 744747 [details]
> Requested logs and working patch
> 
> After reboot I've failed to reproduce successful run of ./configure from
> command line.
> 
> But due to easy reproduced failure I've found a reason of it - incorrect
> value of BOOST_LDFLAGS=-L/usr/lib/x86_64-linux-gnu, on my box there is such
> directory but boost libraries are located in /usr/lib64. That made possible
> trivial patch that helped me finish with emerge (patch in tgz archive). It's
> definitely not generally useful, just an illustration for you.
> 

Ah. Why does such a directory exist for you?

Anyway, I've reproduced the bug if I mkdir it.

AX_BOOST_BASE has --with-boost-libdir which we can pass to override this detection (it thinks you're on Debian):

https://github.com/arvidn/libtorrent/blob/RC_1_2/m4/ax_boost_base.m4#L121.

Thanks!
Comment 22 Larry the Git Cow gentoo-dev 2021-10-31 04:43:31 UTC
The bug has been closed via the following commit(s):

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

commit ff6cb86226cec4ee21db00dbbd7e10c3764a61c7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-31 04:42:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-31 04:42:50 +0000

    net-libs/libtorrent-rasterbar: fix finding Boost in some cases
    
    AX_BOOST_BASE may be misled if some errant directories exist,
    like /usr/lib/x86_64-linux-gnu (thinking we're on Debian).
    
    Closes: https://bugs.gentoo.org/767835
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.14-r1.ebuild | 2 ++
 1 file changed, 2 insertions(+)