-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python's include files not found #187
Comments
Matthieu, a simple way to fix your build issue is to explicitly define a "python" tool in your ~/user-config.jam file. Add a line such as
to explicitly set the paths. |
The issue seems to come from line 547. The include path is not computed in the same way than it is done in
|
Indeed ! Do you mind filing an issue with the Boost.Build module (https://github.com/boostorg/build/issues) ? I myself have only limited understanding of the official Boost build system (and for that reason have forked it into http://stefan.seefeld.name/faber/). |
Since I haven't heard anything since my last comment, I assume this is being taken care of by the |
I just checked that the problem still persists when you try to compile |
We are about to release version 1.68. To verify you should use the current master (and soon a release candidate, whenever that gets built). So unless you tell me that the current master is still broken, I don't see any need to reopen this issue. |
Why not add a test on travis to check this? |
Sorry, my previous reply was meant for a different issue. |
Ok, good point. Thank you for the quick response. :) |
Just for the record, the bug is still there. The faulty line pointed out by @matlo607 is still the same in the current develop branch.
|
Open PR in Boost.Build to fix the issue: |
The issue is still there with windows |
It's 2022, and the problem still priests, (using FreeBSD 13.1)... 🤦♂️ |
I am trying to build boost-python-1.66.0 on RedHat 6.4 and it seems that bjam sets a wrong include path on the command line :
I installed the following packages :
rh-python34
andrh-python34-python-devel
.The issue must be reproducible on CentOS 6.4
Actually
pyconfig.h
is located in /opt/rh/rh-python34/root/usr/include/python3.4m and not in /opt/rh/rh-python34/root/usr/include/python3.4If you run this script below you can see that the include path is correctly set.
I had a look into
libs/python/config/python.py
. I guess this is how bjam gets the include path.When I run this in the python interpreter, I get /opt/rh/rh-python34/root/usr/include/python3.4m and not /opt/rh/rh-python34/root/usr/include/python3.4
Do you have any idea how this m disappeared ?
The text was updated successfully, but these errors were encountered: