Skip to content

Unable to build Boost with Python 3 #3274

@adamjstewart

Description

@adamjstewart

I'm trying to build Boost 1.63.0 with Python 3.6.0, but it is failing. The build output contains lines like:

./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
 # include <pyconfig.h>
                       ^
compilation terminated.

My user-config.jam looks like:

using gcc : : /blues/gpfs/home/software/spack-0.10.0/lib/spack/env/gcc/g++ ;
using python : 3.6 : /blues/gpfs/home/software/spack-0.10.0/opt/spack/linux-centos6-x86_64/gcc-6.1.0/python-3.6.0-prk6gk3ufbfetjc2bthqokmkjtjnce3j/bin/python : /blues/gpfs/home/software/spack-0.10.0/opt/spack/linux-centos6-x86_64/gcc-6.1.0/python-3.6.0-prk6gk3ufbfetjc2bthqokmkjtjnce3j/include/python3.6m :  ;

/blues/gpfs/home/software/spack-0.10.0/opt/spack/linux-centos6-x86_64/gcc-6.1.0/python-3.6.0-prk6gk3ufbfetjc2bthqokmkjtjnce3j/include/python3.6m does indeed contain pyconfig.h, so I'm surprised by this error message. Anyone ever built Boost with Python 3 before?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions