Boost logo

Boost :

Subject: Re: [boost] [release] Boost 1.66.0 Beta 1 Release Candidate 1
From: Stefan Seefeld (stefan_at_[hidden])
Date: 2017-12-08 14:28:11

On 08.12.2017 08:32, Tom Kent via Boost wrote:
> On Fri, Dec 8, 2017 at 6:10 AM, Stefan Seefeld via Boost <
> boost_at_[hidden]> wrote:
>> Hello,
>> I'd like to report again an issue with the Windows binary packages that
>> is still present with the 1.66.0 release (candidate). The issue is
>> reported to the Boost.Python bug tracker at
>>, though I don't think I
>> can address it there.
>> In the Windows binary package the libboost_python3 library is built
>> against (and links with) python2. I can't reproduce this myself when
>> building Boost the normal way, and I don't know who owns the logic for
>> building Windows binary packages. It doesn't seem to have its own repo /
>> issue tracker.
>> The fix might thus affect some piece of code that isn't itself part of
>> the release. But it would be great if someone could look into it soon
>> anyhow. :-)
> I've got the logic for the windows builds here:
> I'm baffled by why this is happening. I'm including both python 2 and 3
> paths in user-config.jam:
> Is there anything else I should be doing for the python build?

I managed to reproduce the problem on Linux (not quite the same, as on
Linux Boost.Python isn't linked to the Python library, but the problem
is there nonetheless).
I reported my findings to
In a nutshell, the problem is that the Boost.Build logic doesn't create
a build tree layout that contains the Python version as a path
component. As a consequence, it mistakenly reuses object files compiled
with the previous Python version when linking Boost.Python libraries for
subsequent Python versions.

The real fix (arguably to Boost.Build) is quite involved, and may be too
late for the upcoming release. It might be better to consider changing
the build script to invoke `b2` multiple times (once per Python
version), and then package the libraries together, so the end result
will look the same.


      ...ich hab' noch einen Koffer in Berlin...

Boost list run by bdawes at, gregod at, cpdaniel at, john at