Opened 10 years ago

Last modified 10 years ago

#7316 new Bugs

Build boost.python fails with python 3.2.3

Reported by: Sergey Dmitriev <dmi3evsv@…> Owned by: Ralf W. Grosse-Kunstleve
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost 1.51.0 Severity: Problem
Keywords: 3.2 build Cc:

Description

$ ./b2 -q -d+2 variant=release link=shared threading=multi runtime-link=shared  | grep err
libs/mpi/src/python/datatypes.cpp:20:33: error: ‘PyInt_Type’ was not declared in this scope
libs/mpi/src/python/py_environment.cpp:53:37: error: cannot convert ‘char**’ to ‘wchar_t**’ for argument ‘2’ to ‘void PySys_SetArgv(int, wchar_t**)’

$ uname -a
Linux asus 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ python3 --version
Python 3.2.3

$ echo "import sys; print( sys.prefix )" | python3
/usr

$  cat project-config.jam | grep python
using python : 3.2 : /usr ;

Attachments (1)

build.log (7.5 KB ) - added by Sergey Dmitriev <dmi3evsv@…> 10 years ago.
build log

Download all attachments as: .zip

Change History (2)

by Sergey Dmitriev <dmi3evsv@…>, 10 years ago

Attachment: build.log added

build log

comment:1 by anonymous, 10 years ago

Add

#if PY_MAJOR_VERSION >= 3 #define PyInt_Type PyLong_Type #endif

at the begining of libs/mpi/src/python/datatypes.cpp

Note: See TracTickets for help on using tickets.