|
Boost-Build : |
Subject: Re: [Boost-build] Boost.Python build (config ?) error
From: Stefan Seefeld (stefan_at_[hidden])
Date: 2017-03-28 15:00:41
On 28.03.2017 10:55, Steven Watanabe via Boost-build wrote:
> AMDG
>
> On 03/28/2017 08:01 AM, Stefan Seefeld via Boost-build wrote:
>> <snip>
>> - symlinks supported : yes (cached)
>> error: No best alternative for libs/python/build/boost_python
>> next alternative: required properties: <python>2.7
>> matched
>> next alternative: required properties: <python>2.7
>> matched
>> <snip>
>>
>> My ~/user-config.jam file contains
>>
>>
>> using python : 2.7 ;
>> using python : 3.5 : python3 : /usr/include/python3.5m :
>> /usr/lib64/libpython3.5m.so ;
>>
>> Any idea what is wrong ?
>>
> Run b2 with --debug-configuration. My first guess is that
> python is being initialized twice. --debug-configuration
> should show where the other initialization is coming from.
I don't see anything suspicious in this output:
[stefan_at_quasimodo boost]$ ./b2 --with-python --debug-configuration
notice: found boost-build.jam at
/home/stefan3/projects/boost/boost-build.jam
notice: loading Boost.Build from
/home/stefan3/projects/boost/tools/build/src
notice: Searching '/etc' '/home/stefan3'
'/home/stefan3/projects/boost/tools/build/src' '/usr/share/boost-build'
'/home/stefan3/projects/boost/tools/build/src/kernel'
'/home/stefan3/projects/boost/tools/build/src/util'
'/home/stefan3/projects/boost/tools/build/src/build'
'/home/stefan3/projects/boost/tools/build/src/tools'
'/home/stefan3/projects/boost/tools/build/src/contrib'
'/home/stefan3/projects/boost/tools/build/src/.' for site-config
configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in '/etc'
'/home/stefan3' '/home/stefan3/projects/boost/tools/build/src'
'/usr/share/boost-build'
'/home/stefan3/projects/boost/tools/build/src/kernel'
'/home/stefan3/projects/boost/tools/build/src/util'
'/home/stefan3/projects/boost/tools/build/src/build'
'/home/stefan3/projects/boost/tools/build/src/tools'
'/home/stefan3/projects/boost/tools/build/src/contrib'
'/home/stefan3/projects/boost/tools/build/src/.'.
notice: Searching '/home/stefan3'
'/home/stefan3/projects/boost/tools/build/src' '/usr/share/boost-build'
'/home/stefan3/projects/boost/tools/build/src/kernel'
'/home/stefan3/projects/boost/tools/build/src/util'
'/home/stefan3/projects/boost/tools/build/src/build'
'/home/stefan3/projects/boost/tools/build/src/tools'
'/home/stefan3/projects/boost/tools/build/src/contrib'
'/home/stefan3/projects/boost/tools/build/src/.' for user-config
configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from
'/home/stefan3'.
notice: will use 'g++' for gcc, condition <toolset>gcc-6.3.1
notice: using gcc libraries :: <toolset>gcc-6.3.1 :: /usr/lib64/bin
/usr/lib64/lib /usr/lib64/lib32 /usr/lib64/lib64
notice: using gcc archiver :: <toolset>gcc-6.3.1 :: ar
notice: using gcc ranlib :: <toolset>gcc-6.3.1 :: ranlib
warning: toolset gcc initialization: can not find tool windres
warning: initialized from /home/stefan3/user-config.jam:1
notice: using rc compiler :: <toolset>gcc-6.3.1 :: as
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version: "2.7"
notice: [python-cfg] Checking interpreter command "python2.7"...
notice: [python-cfg] running command 'python2.7 -c "from sys import *;
print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s'
%
(version_info[0],version_info[1],platform,prefix,exec_prefix,executable))"
2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "python2.7"
notice: [python-cfg] include path: "/usr/include/python2.7"
notice: [python-cfg] library path: "/usr/lib/python2.7/config" "/usr/lib"
notice: [python-cfg] Checking for NumPy...
notice: [python-cfg] running command 'python2.7 -c "import sys;
sys.stderr = sys.stdout; import numpy; print(numpy.get_include())"'
notice: [python-cfg] NumPy enabled
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version: "3.5"
notice: [python-cfg] user-specified cmd-or-prefix: "python3"
notice: [python-cfg] user-specified includes: "/usr/include/python3.5m"
notice: [python-cfg] user-specified libraries:
"/usr/lib64/libpython3.5m.so"
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "python3"
notice: [python-cfg] include path: "/usr/include/python3.5m"
notice: [python-cfg] library path: "/usr/lib64/libpython3.5m.so"
notice: [python-cfg] Checking for NumPy...
notice: [python-cfg] running command 'python3 -c "import sys; sys.stderr
= sys.stdout; import numpy; print(numpy.get_include())"'
notice: [python-cfg] NumPy enabled
notice: Searching '.' for project-config configuration file
'project-config.jam'.
notice: Loading project-config configuration file 'project-config.jam'
from '.'.
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
Performing configuration checks
- 32-bit : no (cached)
- 64-bit : yes (cached)
- arm : no (cached)
- mips1 : no (cached)
- power : no (cached)
- sparc : no (cached)
- x86 : yes (cached)
Building the Boost C++ Libraries.
- symlinks supported : yes (cached)
error: No best alternative for libs/python/build/boost_python
next alternative: required properties: <python>2.7
matched
next alternative: required properties: <python>2.7
matched
error: No best alternative for libs/python/build/boost_python3
next alternative: required properties: <python>3.5
not matched
next alternative: required properties: <python>3.5
not matched
error: No best alternative for libs/python/build/boost_python
next alternative: required properties: <python>2.7
matched
next alternative: required properties: <python>2.7
matched
error: No best alternative for libs/python/build/boost_python3
next alternative: required properties: <python>3.5
not matched
next alternative: required properties: <python>3.5
not matched
Thanks,
Stefan
-- ...ich hab' noch einen Koffer in Berlin...
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk