bazaah / aur-ceph

Public workspace for ceph packages in the Archlinux AUR
https://aur.archlinux.org/pkgbase/ceph
6 stars 1 forks source link

Build fails with some boost-python error on Manjaro #19

Closed leberknecht closed 1 year ago

leberknecht commented 1 year ago

Hi, I hope that this is the right place :) => im trying to update from 17.2.6-2 to 17.2.6-3 and im getting this:

-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.1.2")  
-- Found EXPAT: /usr/lib/libexpat.so (found version "2.5.0") 
-- Found OATH: /usr/lib/liboath.so  
-- ssl soname: libssl.so.3
-- crypto soname: libcrypto.so.3
-- Found Python3: /usr/bin/python3.9 (found suitable exact version "3.9.17") found components: Interpreter Development 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.13")  
CMake Error at /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake:141 (find_package):
  Found package configuration file:

    /usr/lib/cmake/boost_python-1.81.0/boost_python-config.cmake

  but it set boost_python_FOUND to FALSE so package "boost_python" is
  considered to be NOT FOUND.  Reason given by package:

  No suitable build variant has been found.

  The following variants have been tried and rejected:

  * libboost_python27.so.1.81.0 (2.7, Boost_PYTHON_VERSION=3.9)

  * libboost_python311.so.1.81.0 (3.11, Boost_PYTHON_VERSION=3.9)

  * libboost_python27.a (2.7, Boost_PYTHON_VERSION=3.9)

  * libboost_python311.a (3.11, Boost_PYTHON_VERSION=3.9)

Call Stack (most recent call first):
  /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake:262 (boost_find_component)
  cmake/modules/FindBoost.cmake:597 (find_package)
  CMakeLists.txt:636 (find_package)

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

same happens when im trying latest 17.2.6-3 from source:

$ git clone https://git.st8l.com/luxolus/aur.ceph
$ cd aur.ceph
$ makepkg         
==> Making package: ceph 17.2.6-3 (Mi 23 Aug 2023 09:48:13 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading ceph-17.2.6.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  160M  100  160M    0     0  9031k      0  0:00:18  0:00:18 --:--:-- 8717k
  -> Found ceph.sysusers
[...]  
Applying patch ceph-17.2.6-cython-fixes.patch
patching file src/pybind/rbd/c_rbd.pxd
patching file src/pybind/rbd/rbd.pyx
==> Starting build()...
-- The CXX compiler identification is GNU 13.2.1
-- The C compiler identification is GNU 13.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
[...]
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.1.2")  
-- Found EXPAT: /usr/lib/libexpat.so (found version "2.5.0") 
-- Found OATH: /usr/lib/liboath.so  
-- ssl soname: libssl.so.3
-- crypto soname: libcrypto.so.3
-- Found Python3: /usr/bin/python3.9 (found suitable exact version "3.9.17") found components: Interpreter Development 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.13")  
CMake Error at /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake:141 (find_package):
  Found package configuration file:

    /usr/lib/cmake/boost_python-1.81.0/boost_python-config.cmake

  but it set boost_python_FOUND to FALSE so package "boost_python" is
  considered to be NOT FOUND.  Reason given by package:

  No suitable build variant has been found.

  The following variants have been tried and rejected:

  * libboost_python27.so.1.81.0 (2.7, Boost_PYTHON_VERSION=3.9)

  * libboost_python311.so.1.81.0 (3.11, Boost_PYTHON_VERSION=3.9)

  * libboost_python27.a (2.7, Boost_PYTHON_VERSION=3.9)

  * libboost_python311.a (3.11, Boost_PYTHON_VERSION=3.9)

Call Stack (most recent call first):
  /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake:262 (boost_find_component)
  cmake/modules/FindBoost.cmake:597 (find_package)
  CMakeLists.txt:636 (find_package)

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

Any ideas how to solve this?

$ pamac list -i | grep boost
boost                                        1.81.0-7                      extra     183,1 MB
boost-libs                                   1.81.0-7                      extra     8,5 MB
boost-python2                                1.81.0-1                      AUR       755,1 kB
boost-python2-libs                           1.81.0-1                      AUR       315,8 kB
$ uname -a 
Linux leberle-desktop 6.4.9-1-MANJARO #1 SMP PREEMPT_DYNAMIC Wed Aug  9 08:32:12 UTC 2023 x86_64 GNU/Linux
leberknecht commented 1 year ago

Maybe its related to the fact that i have python 3.9 and 3.11 installed, looks like the boost libs exist only for 3.11 I see that there is a cmake flag Boost_PYTHON_VERSION which i could point to 3.11 maybe, but im not sure how/where to set this flag. I tried to export it as env-variable, but that didnt helped

leberknecht commented 1 year ago

i edited /usr/lib/cmake/boost_python-1.81.0/boost_python-config.cmake and hardcoded

set(Boost_PYTHON_VERSION "3.11")

and that actually seems to work, build is running now :)

leberknecht commented 1 year ago

Closing this, doesnt seem to be a problem with this package. Sorry!