From owner-freebsd-ports@freebsd.org Mon Jul 29 23:31:03 2019 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E6380B9AC1 for ; Mon, 29 Jul 2019 23:31:03 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9A3858254B for ; Mon, 29 Jul 2019 23:31:03 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 99B39B9AC0; Mon, 29 Jul 2019 23:31:03 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9979BB9ABF for ; Mon, 29 Jul 2019 23:31:03 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78DF78254A; Mon, 29 Jul 2019 23:31:03 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 4FEAFD0A5; Mon, 29 Jul 2019 23:31:03 +0000 (UTC) From: Jan Beich To: "Willem Jan Withagen \(Nefos\)" Cc: "ports\@freebsd.org" Subject: Re: Using Boost 1.7.0 and trying to get boost_python References: Date: Tue, 30 Jul 2019 01:30:59 +0200 In-Reply-To: (Willem Jan Withagen's message of "Tue, 30 Jul 2019 00:07:15 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 78DF78254A X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; NEURAL_HAM_SHORT(-0.99)[-0.989,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2019 23:31:04 -0000 "Willem Jan Withagen (Nefos)" writes: > Hi, > > I'm trying to get Ceph to build with Boost 1.70 but have limitted success. > First I needed to fight with static and shared libs, got that to work a bit. > > But now it also fails on > |find_package( Boost COMPONENTS python REQUIRED ) > or > ||find_package( Boost COMPONENTS python3 REQUIRED ) > or > ||find_package( Boost COMPONENTS python36 REQUIRED ) Outside of ports only fully-qualified component name (e.g., python27, python36) are supported with Boost >= 1.67. As FreeBSD Ports never used distribution-specific suffixes with Boost < 1.67 the CMake package is patched to *deterministically* translate "python" component to "pythonXY" according to USES=python. > -- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0 > -- Requested configuration: QUIET REQUIRED COMPONENTS python > -- BoostConfig: find_package(boost_headers 1.70.0 EXACT CONFIG > REQUIRED QUIET HINTS /usr/local/lib/cmake) > -- BoostConfig: find_package(boost_python 1.70.0 EXACT CONFIG REQUIRED > QUIET HINTS /usr/local/lib/cmake) > CMake Error at /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake:95 > (find_package): > Could not find a package configuration file provided by "boost_python" > (requested version 1.70.0) with any of the following names: > > boost_pythonConfig.cmake > boost_python-config.cmake > > Add the installation prefix of "boost_python" to CMAKE_PREFIX_PATH or set > "boost_python_DIR" to a directory containing one of the above files. If > "boost_python" provides a separate development package or SDK, be sure it > has been installed. > Call Stack (most recent call first): > /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake:124 > (boost_find_dependency) > cmake/modules/FindBoost.cmake:264 (find_package) > CMakeLists.txt:654 (find_package) I can't reproduce. Can you share minimal CMakeLists.txt? > But I cannot find anything resembling: > || boost_pythonConfig.cmake > boost_python-config.cmake Check /usr/local/share/cmake/Modules/FindBoost.cmake defines Boost_NO_BOOST_CMAKE. Native CMake integration is currently disabled due to bugs.