Boost logo

Boost-Build :

Subject: [Boost-build] Building Python No-Install Quickstart
From: Rhys Poolman (rhys.poolman_at_[hidden])
Date: 2016-09-02 12:42:41


Hi,

I'm trying to build the boost.python No-Install Quickstart example:

http://www.boost.org/doc/libs/1_61_0/libs/python/doc/html/building/no_install_quickstart.html

I invoke boost-build with the following:

b2 --build-dir=c:\users\rpoolman\boost.build\build_dir toolset=msvc-12.0 --build-type=complete --with-python variant=release architecture=x86 address-model=64 -q -a --debug-configuration

I get the output:

notice: found boost-build.jam at C:/Program Files/boost/boost_1_61_0/libs/python/example/quickstart/boost-build.jam
notice: loading Boost.Build from C:/Program Files/boost/boost_1_61_0/tools/build/src
notice: Searching 'C:\Windows' 'C:\Users\rpoolman' 'C:\Users\rpoolman' 'C:\Program Files\boost\boost_1_61_0\libs\python\example\quickstart\../../../../tools/build/src' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/kernel' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/util' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/build' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/tools' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/contrib' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Windows' 'C:\Users\rpoolman' 'C:\Users\rpoolman' 'C:\Program Files\boost\boost_1_61_0\libs\python\example\quickstart\../../../../tools/build/src' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/kernel' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/util' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/build' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/tools' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/contrib' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/.'.
notice: Searching 'C:\Users\rpoolman' 'C:\Users\rpoolman' 'C:\Program Files\boost\boost_1_61_0\libs\python\example\quickstart\../../../../tools/build/src' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/kernel' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/util' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/build' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/tools' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/contrib' 'C:/Program Files/boost/boost_1_61_0/tools/build/src/.' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from 'C:/Users/rpoolman'.
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: will use 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe' for msvc, condition <toolset>msvc-12.0
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>/<address-model>', setup: 'call "C:\Users\rpoolman\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" >nul
'
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>/<address-model>32', setup: 'call "C:\Users\rpoolman\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" >nul
'
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>x86/<address-model>', setup: 'call "C:\Users\rpoolman\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" >nul
'
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>x86/<address-model>32', setup: 'call "C:\Users\rpoolman\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" >nul
'
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>/<address-model>64', setup: 'call "C:\Users\rpoolman\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_amd64.cmd" >nul
'
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>x86/<address-model>64', setup: 'call "C:\Users\rpoolman\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_amd64.cmd" >nul
'
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>ia64/<address-model>', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_ia64 >nul
'
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>ia64/<address-model>64', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_ia64 >nul
'
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>arm/<address-model>', setup: 'call "C:\Users\rpoolman\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86_arm.cmd" >nul
'
notice: [msvc-cfg] condition: '<toolset>msvc-12.0/<architecture>arm/<address-model>32', setup: 'call "C:\Users\rpoolman\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86_arm.cmd" >nul
'
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version: "3.5"
notice: [python-cfg] user-specified cmd-or-prefix: "c:/users/rpoolman/WinPython-64bit-3.5.1.2/python-3.5.1.amd64/python"
notice: [python-cfg] user-specified condition: "<address-model>64"
notice: [python-cfg] Checking interpreter command "c:/users/rpoolman/WinPython-64bit-3.5.1.2/python-3.5.1.amd64/python"...
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Users\rpoolman\WinPython-64bit-3.5.1.2\python-3.5.1.amd64\python.exe" 2>&1'
notice: [python-cfg] running command 'c:/users/rpoolman/WinPython-64bit-3.5.1.2/python-3.5.1.amd64/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: "c:/users/rpoolman/WinPython-64bit-3.5.1.2/python-3.5.1.amd64/python"
notice: [python-cfg] include path: "c:\users\rpoolman\WinPython-64bit-3.5.1.2\python-3.5.1.amd64\Include"
notice: [python-cfg] library path: "c:\users\rpoolman\WinPython-64bit-3.5.1.2\python-3.5.1.amd64\libs"
notice: [python-cfg] DLL search path: "c:\users\rpoolman\WinPython-64bit-3.5.1.2\python-3.5.1.amd64"
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: iostreams: not using bzip2 compression
notice: iostreams: not using bzip2 compression
Performing configuration checks

    - 32-bit : yes (cached)
    - arm : no (cached)
    - mips1 : no (cached)
    - power : no (cached)
    - sparc : no (cached)
    - x86 : yes (cached)
    - symlinks supported : yes (cached)
...found 1 target...
...updating 1 target...
config-cache.write c:\users\rpoolman\boost.build\build_dir\boost-python-quickstart\project-cache.jam
...updated 1 target...
...patience...
...patience...
...found 1953 targets...
...updating 34 targets...
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost-python-quickstart\msvc-12.0\release\address-model-64\architecture-x86\threading-multi\extending.obj
extending.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\numeric.obj
numeric.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\list.obj
list.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
..\..\..\..\libs\python\src\list.cpp(58) : warning C4244: 'return' : conversion from 'boost::python::ssize_t' to 'long', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\long.obj
long.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\dict.obj
dict.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\tuple.obj
tuple.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\str.obj
str.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\slice.obj
slice.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\converter\from_python.obj
from_python.cpp
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\converter\registry.obj
registry.cpp
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\converter\type_id.obj
type_id.cpp
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object\enum.obj
enum.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
..\..\..\..\libs\python\src\object\enum.cpp(232) : warning C4244: 'initializing' : conversion from 'boost::python::ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object\class.obj
class.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
..\..\..\..\libs\python\src\object\class.cpp(734) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object\function.obj
function.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
..\..\..\..\libs\python\src\object\function.cpp(757) : warning C4244: 'argument' : conversion from '__int64' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object\inheritance.obj
inheritance.cpp
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object\life_support.obj
life_support.cpp
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object\pickle_support.obj
pickle_support.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
..\..\..\..\libs\python\src\object\pickle_support.cpp(49) : warning C4244: '=' : conversion from 'boost::python::ssize_t' to 'long', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\errors.obj
errors.cpp
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\module.obj
module.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\converter\builtin_converters.obj
builtin_converters.cpp
..\..\..\..\libs\python\src\converter\builtin_converters.cpp(442) : warning C4244: 'initializing' : conversion from 'Py_ssize_t' to 'int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\converter\arg_to_python_base.obj
arg_to_python_base.cpp
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object\iterator.obj
iterator.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object\stl_iterator.obj
stl_iterator.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object_protocol.obj
object_protocol.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object_operators.obj
object_operators.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\wrapper.obj
wrapper.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\import.obj
import.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\exec.obj
exec.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
compile-c-c++ c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\object\function_doc_signature.obj
function_doc_signature.cpp
..\..\..\..\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
..\..\..\..\libs\python\src\object\function_doc_signature.cpp(287) : warning C4244: 'initializing' : conversion from 'boost::python::ssize_t' to 'int', possible loss of data
..\..\..\..\libs\python\src\object\function_doc_signature.cpp(294) : warning C4244: '=' : conversion from 'boost::python::ssize_t' to 'int', possible loss of data
..\..\..\..\libs\python\src\object\function_doc_signature.cpp(303) : warning C4244: '=' : conversion from 'boost::python::ssize_t' to 'int', possible loss of data
msvc.link.dll c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\boost_python-vc120-mt-1_61.dll
   Creating library c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\boost_python-vc120-mt-1_61.lib and object c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\boost_python-vc120-mt-1_61.exp
msvc.manifest.dll c:\users\rpoolman\boost.build\build_dir\boost\bin.v2\libs\python\build\msvc-12.0\release\address-model-64\threading-multi\boost_python-vc120-mt-1_61.dll
msvc.link.dll c:\users\rpoolman\boost.build\build_dir\boost-python-quickstart\msvc-12.0\release\address-model-64\architecture-x86\threading-multi\extending.pyd
   Creating library c:\users\rpoolman\boost.build\build_dir\boost-python-quickstart\msvc-12.0\release\address-model-64\architecture-x86\threading-multi\extending.lib and object c:\users\rpoolman\boost.build\build_dir\boost-python-quickstart\msvc-12.0\release\address-model-64\architecture-x86\threading-multi\extending.exp
MSVCRT.lib(atonexit.obj) : error LNK2019: unresolved external symbol __imp_EncodePointer referenced in function __atonexitinit
MSVCRT.lib(atonexit.obj) : error LNK2019: unresolved external symbol __imp_DecodePointer referenced in function _onexit
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_IsDebuggerPresent referenced in function __raise_securityfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol IsProcessorFeaturePresent referenced in function __report_gsfailure
c:\users\rpoolman\boost.build\build_dir\boost-python-quickstart\msvc-12.0\release\address-model-64\architecture-x86\threading-multi\extending.pyd : fatal error LNK1120: 4 unresolved externals

        call "C:\Users\rpoolman\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_amd64.cmd" >nul
link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /MACHINE:X64 /MANIFEST /subsystem:console /out:"c:\users\rpoolman\boost.build\build_dir\boost-python-quickstart\msvc-12.0\release\address-model-64\architecture-x86\threading-multi\extending.pyd"
  /LIBPATH:"c:\users\rpoolman\WinPython-64bit-3.5.1.2\python-3.5.1.amd64\libs" @"c:\users\rpoolman\boost.build\build_dir\boost-python-quickstart\msvc-12.0\release\address-model-64\architecture-x86\threading-multi\extending.pyd.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

...failed msvc.link.dll c:\users\rpoolman\boost.build\build_dir\boost-python-quickstart\msvc-12.0\release\address-model-64\architecture-x86\threading-multi\extending.pyd...
...failed updating 1 target...

The failure to build is caused by linker errors:

MSVCRT.lib(atonexit.obj) : error LNK2019: unresolved external symbol __imp_EncodePointer referenced in function __atonexitinit
MSVCRT.lib(atonexit.obj) : error LNK2019: unresolved external symbol __imp_DecodePointer referenced in function _onexit
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_IsDebuggerPresent referenced in function __raise_securityfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol IsProcessorFeaturePresent referenced in function __report_gsfailure

I am using Winpython 3.5.1 64-bit on windows 7 and not particularly experience with boost.build or boost.python. I've been struggling with this on and off for a week any help would be welcome.

Best wishes,
Rhys
________________________________
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the originator of the message.
Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Malvern Instruments.


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