Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost 1.65.0 Beta 1 [boost.python] issue
From: Raffi Enficiaud (raffi.enficiaud_at_[hidden])
Date: 2017-07-14 13:23:07


Le 13.07.17 à 14:41, Marshall Clow via Boost-users a écrit :
> Boost release 1.65.0 beta 1 is now available at:
>
> <https://dl.bintray.com/boostorg/beta/1.65.0.beta.1/source/
> <https://dl.bintray.com/boostorg/beta/1.65.0.beta.1/source/>>
>
> The SHA256 checksums are as follows:
>
> d54d29568c4e4933cbfe40a292b6cb84a7f68121e34f6a83f7d0f7c652b6b2d8
> boost_1_65_0_beta1.7z
> 092676557513e992347d30dd0cd058fb8af2a401e5da4f4413f5b577852d726b
> boost_1_65_0_beta1.tar.bz2
> 31fa3c807e2205e18f7d5c74f77f540677f7b0937af1e37f595c137e1e87bf84
> boost_1_65_0_beta1.tar.gz
> 83c8d8b76fa9591572226a1a49fd191d76db3011b52b907cbbc8d37d46213bd2
> boost_1_65_0_beta1.zip
>
> Please download the beta, give it a try, and report any problems you
> encounter.
>

Hi,

As I said in a previous post, I cannot get boost.python to build on
Windows: the target is just ignored (see stack trace below).

I think there is a bug in .\tools\build\src\tools\python.jam concerning
the version computation: the variable "major-minor" is not set properly
if "version" is optional.

In this block:

============= ("rule configure")
if $(version)
{
         if ! $(version) in [ feature.values python ]
         {
             feature.extend python : $(version) ;
             py$(major-minor[1])-version ?= $(version) ;
=============

The variable "major-minor" is empty.

The "if" in the following block prevents from computing major-minor as
"version" is optional and is not set:

=============
     local major-minor ;
     if $(version)
     {
         major-minor = [ split-version $(version) ] ;
         version = $(major-minor:J=.) ;
     }
=============

I believe this can be fixed by recomputing "major-minor" in this block,
after "version" has been inferred.

=============
                 if $(cmd)
                 {
                     debug-message ...requested configuration matched! ;

                     exec-prefix = $(sys.exec_prefix) ;

                     compute-default-paths $(target-os) : $(sys.version) :
                         $(sys.prefix) : $(sys.exec_prefix) ;

                     version = $(sys.version) ;
                     interpreter-cmd ?= $(cmd) ;
                     cmds-to-try = ; # All done.
                 }
=============

I hope this can go into the Beta2.

Best,
Raffi

============= Stack trace of the build (nothing generated at the end)
d:\Projects-raffi\sw_thirdparties\visual2015x64\boost_1_65_0_src>b2.exe
--prefix=d:\tmp\boost_1_65_0 --layout=versioned --build-type=complete
--with-python address-model=64 threading=multi runtime-link=shared
toolset=msvc-14.1 --debug-configuration
notice: found boost-build.jam at
D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/boost-build.jam
notice: loading Boost.Build from
D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src
notice: Searching 'C:\Windows' 'C:\Users\renficiaud'
'C:\Users\renficiaud'
'D:\Projects-raffi\sw_thirdparties\visual2015x64\boost_1_65_0_src\tools/build/src'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/kernel'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/util'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/build'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/tools'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/contrib'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/.'
for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Windows'
'C:\Users\renficiaud' 'C:\Users\renficiaud'
'D:\Projects-raffi\sw_thirdparties\visual2015x64\boost_1_65_0_src\tools/build/src'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/kernel'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/util'
'D:/Projects-raffi/sw_th
irdparties/visual2015x64/boost_1_65_0_src/tools/build/src/build'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/tools'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/contrib'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/.'.
notice: Searching 'C:\Users\renficiaud' 'C:\Users\renficiaud'
'D:\Projects-raffi\sw_thirdparties\visual2015x64\boost_1_65_0_src\tools/build/src'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/kernel'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/util'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/build'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/tools'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/contrib'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/.'
for user-config configuration file 'user-config.jam'.
notice: Configuration file 'user-config.jam' not found in
'C:\Users\renficiaud' 'C:\Users\renficiaud'
'D:\Projects-raffi\sw_thirdparties\visual2015x64\boost_1_65_0_src\tools/build/src'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/kernel'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/util'
'D:/Projects-raffi/sw_thirdparties/vi
sual2015x64/boost_1_65_0_src/tools/build/src/build'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/tools'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/contrib'
'D:/Projects-raffi/sw_thirdparties/visual2015x64/boost_1_65_0_src/tools/build/src/.'.
notice: Searching '.' for project-config configuration file
'project-config.jam'.
notice: Loading project-config configuration file 'project-config.jam'
from '.'.
notice: [msvc-cfg] msvc-14.0 detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-12.0 detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-11.0 detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 11.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-10.0 detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-9.0 detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 9.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-9.0express detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 9.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-14.1 detected, command: 'C:\Program Files
(x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\arm\cl.exe'
notice: will use 'C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\arm\cl.exe'
for msvc, condition <toolset>msvc-14.1
'notice: [generate-setup-cmd] 14.10.25017 is 14.1'
'notice: [generate-setup-cmd] 14.10.25017 is 14.1'
'notice: [generate-setup-cmd] 14.10.25017 is 14.1'
'notice: [generate-setup-cmd] 14.10.25017 is 14.1'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>/<address-model>', setup: 'call
"C:\Users\RENFIC~1\AppData\Local\Temp\b2_msvc_14.10.25017_vcvars32_.cmd"
>nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>/<address-model>32', setup: 'call
"C:\Users\RENFIC~1\AppData\Local\Temp\b2_msvc_14.10.25017_vcvars32_.cmd"
>nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>x86/<address-model>', setup: 'call
"C:\Users\RENFIC~1\AppData\Local\Temp\b2_msvc_14.10.25017_vcvars32_.cmd"
>nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>x86/<address-model>32', setup: 'call
"C:\Users\RENFIC~1\AppData\Local\Temp\b2_msvc_14.10.25017_vcvars32_.cmd"
>nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>/<address-model>64', setup: 'call
"C:\Users\RENFIC~1\AppData\Local\Temp\b2_msvc_14.10.25017_vcvarsx86_amd64_.cmd"
>nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>x86/<address-model>64', setup: 'call
"C:\Users\RENFIC~1\AppData\Local\Temp\b2_msvc_14.10.25017_vcvarsx86_amd64_.cmd"
>nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>ia64/<address-model>', setup: 'call
"C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat" >n
ul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>ia64/<address-model>64', setup: 'call
"C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat"
>nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>arm/<address-model>', setup: 'call
"C:\Users\RENFIC~1\AppData\Local\Temp\b2_msvc_14.10.25017_vcvarsx86_arm_.cmd"
>nul
'
notice: [msvc-cfg] condition:
'<toolset>msvc-14.1/<architecture>arm/<address-model>32', setup: 'call
"C:\Users\RENFIC~1\AppData\Local\Temp\b2_msvc_14.10.25017_vcvarsx86_arm_.cmd"
>nul
'
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
notice: [python-cfg] Configuring python...
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'DIR /-C /A:S
"C:\Python27\python.exe" 2>&1'
notice: [python-cfg] running command 'python -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: "python"
notice: [python-cfg] include path: "C:\python27\Include"
notice: [python-cfg] library path: "C:\python27\libs"
notice: [python-cfg] DLL search path: "C:\python27"
notice: [python-cfg] Checking for NumPy...
notice: [python-cfg] running command 'python -c "import sys; sys.stderr
= sys.stdout; import numpy; print(numpy.get_include())"'
notice: [python-cfg] NumPy enabled
Performing configuration checks

     - 32-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 : no (cached)
     - junctions supported : yes (cached)
     - hardlinks supported : yes (cached)

Component configuration:

     - atomic : not building
     - chrono : not building
     - container : not building
     - context : not building
     - coroutine : not building
     - date_time : not building
     - exception : not building
     - fiber : not building
     - filesystem : not building
     - graph : not building
     - graph_parallel : not building
     - iostreams : not building
     - locale : not building
     - log : not building
     - math : not building
     - metaparse : not building
     - mpi : not building
     - program_options : not building
     - python : building
     - random : not building
     - regex : not building
     - serialization : not building
     - signals : not building
     - stacktrace : not building
     - system : not building
     - test : not building
     - thread : not building
     - timer : not building
     - type_erasure : not building
     - wave : not building

...found 1 target...

The Boost C++ Libraries were successfully built!

The following directory should be added to compiler include paths:

     D:\Projects-raffi\sw_thirdparties\visual2015x64\boost_1_65_0_src

The following directory should be added to linker library paths:

 
D:\Projects-raffi\sw_thirdparties\visual2015x64\boost_1_65_0_src\stage\lib

d:\Projects-raffi\sw_thirdparties\visual2015x64\boost_1_65_0_src>
===============================


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net