Boost C++ Libraries: Ticket #11120: Problem compile with python 3 support. https://svn.boost.org/trac10/ticket/11120 <pre class="wiki">./bootstrap.sh --with-python=/usr/bin/python3 --with-python-root=/usr ./b2 ... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.9.2/release/threading-multi/object/function_doc_signature.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/converter/registrations.hpp:8, from libs/python/src/object/function_doc_signature.cpp:9: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include &lt;pyconfig.h&gt; ^ compilation terminated. "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"." -I"/usr/include/python3.4" -c -o "bin.v2/libs/python/build/gcc-4.9.2/release/threading-multi/object/function_doc_signature.o" "libs/python/src/object/function_doc_signature.cpp" ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.9.2/release/threading-multi/object/function_doc_signature.o... ...skipped &lt;pbin.v2/libs/python/build/gcc-4.9.2/release/threading-multi&gt;libboost_python.so.1.57.0 for lack of &lt;pbin.v2/libs/python/build/gcc-4.9.2/release/threading-multi&gt;numeric.o... ...skipped &lt;pstage/lib&gt;libboost_python.so.1.57.0 for lack of &lt;pbin.v2/libs/python/build/gcc-4.9.2/release/threading-multi&gt;libboost_python.so.1.57.0... ...skipped &lt;pstage/lib&gt;libboost_python.so for lack of &lt;pstage/lib&gt;libboost_python.so.1.57.0... ...skipped &lt;pbin.v2/libs/python/build/gcc-4.9.2/release/threading-multi&gt;libboost_python3.so.1.57.0 for lack of &lt;pbin.v2/libs/python/build/gcc-4.9.2/release/threading-multi&gt;numeric.o... ...skipped &lt;pstage/lib&gt;libboost_python3.so.1.57.0 for lack of &lt;pbin.v2/libs/python/build/gcc-4.9.2/release/threading-multi&gt;libboost_python3.so.1.57.0... ...skipped &lt;pstage/lib&gt;libboost_python3.so for lack of &lt;pstage/lib&gt;libboost_python3.so.1.57.0... ... ...failed updating 56 targets... ...skipped 12 targets... ...updated 1062 targets... </pre><p> <br /> System: PCLinuxOS 32bit Mate<br /> </p> <p> gcc: 4.92<br /> </p> <p> pkgconfig: 0.28<br /> </p> <p> python2: 2.7.6<br /> </p> <p> python3: 3.4.2<br /> </p> <p> I want add log from compile, but I don't know how. </p> <p> How I can find pyconfig.h ? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11120 Trac 1.4.3 tele Wed, 18 Mar 2015 09:10:02 GMT attachment set https://svn.boost.org/trac10/ticket/11120 https://svn.boost.org/trac10/ticket/11120 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost.log</span> </li> </ul> Ticket tele Wed, 18 Mar 2015 09:17:42 GMT <link>https://svn.boost.org/trac10/ticket/11120#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:1</guid> <description> <p> # find /usr -name pyconfig.h /usr/include/python3.4m/pyconfig.h /usr/include/multiarch-i386-linux/python3.4m/pyconfig.h /usr/include/multiarch-i386-linux/python2.7/pyconfig.h /usr/include/python2.7/pyconfig.h </p> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Wed, 18 Mar 2015 09:17:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:1</guid> <description> <pre class="wiki"># find /usr -name pyconfig.h /usr/include/python3.4m/pyconfig.h /usr/include/multiarch-i386-linux/python3.4m/pyconfig.h /usr/include/multiarch-i386-linux/python2.7/pyconfig.h /usr/include/python2.7/pyconfig.h </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Wed, 18 Mar 2015 09:52:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:2</guid> <description> <p> Interesting is g++ option from log </p> <pre class="wiki">-I"/usr/include/python3.4" </pre><p> and my path </p> <pre class="wiki">/usr/include/python3.4m/ </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Jürgen Hunold</dc:creator> <pubDate>Wed, 18 Mar 2015 10:02:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:3</guid> <description> <p> Most probably Boost.Build fails to parse the include path reported by your python binary. Can you please run "b2 --debug-configuration" and attach the log? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Wed, 18 Mar 2015 10:26:34 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/11120 https://svn.boost.org/trac10/ticket/11120 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost.debug.conf.log</span> </li> </ul> Ticket anonymous Wed, 18 Mar 2015 10:32:48 GMT <link>https://svn.boost.org/trac10/ticket/11120#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:4</guid> <description> <p> When I copy files from /usr/include/python3.4m/ to /usr/include/python3.4/ </p> <pre class="wiki">...updated 68 targets... The Boost C++ Libraries were successfully built! The following directory should be added to compiler include paths: /home/gg/Downloads/DOWNLOAD/test/boost_1_57_0 The following directory should be added to linker library paths: /home/gg/Downloads/DOWNLOAD/test/boost_1_57_0/stage/lib </pre><p> I added also "b2 --debug-configuration" now above :) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Wed, 18 Mar 2015 10:42:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:5</guid> <description> <p> I will try ask on PCLinuxOS forum. I would like add symlinks files from .../python3.4m/ to .../python3.4/ but I don't know if this is good way. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jürgen Hunold</dc:creator> <pubDate>Wed, 18 Mar 2015 11:04:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:6</guid> <description> <p> The error might also be in bootstrap.sh. Can you add "project-config.jam" too? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Wed, 18 Mar 2015 11:37:46 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/11120 https://svn.boost.org/trac10/ticket/11120 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost.proj.conf.jam.log</span> </li> </ul> Ticket tele Wed, 18 Mar 2015 11:41:46 GMT attachment set https://svn.boost.org/trac10/ticket/11120 https://svn.boost.org/trac10/ticket/11120 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">project-config.jam</span> </li> </ul> Ticket tele Wed, 18 Mar 2015 13:55:35 GMT <link>https://svn.boost.org/trac10/ticket/11120#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:7</guid> <description> <p> This is the same bug<br /> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/6826"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/6826</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Wed, 18 Mar 2015 14:02:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:8</guid> <description> <p> I checked path /usr/include/python3.4m/ </p> <ul><li>Mageia , Fedora , <a class="missing wiki">OpenSuse</a> have similar path for pyconfig.h in python3 </li></ul><p> I tried compile on <a class="missing wiki">OpenSuse</a> , I have the same problem with this path. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Wed, 18 Mar 2015 15:39:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:9</guid> <description> <p> The offending code in python.jam is </p> <pre class="wiki"> includes ?= $(prefix)/include/python$(version) ; </pre><p> A better workaround is to edit project-config.jam to pass the correct include path explicitly. </p> <pre class="wiki">using python : 3.4 : /usr : /usr/include/python3.4m ; </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Wed, 18 Mar 2015 16:39:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:10</guid> <description> <p> Thanks :)<br /> So I will try edit /boost_1_57_0/tools/build/src/tools/python.jam to add "m" </p> <pre class="wiki"> includes ?= $(prefix)/include/python$(version)m ; </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Wed, 18 Mar 2015 17:15:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:11</guid> <description> <p> A general fix would be more like: </p> <pre class="wiki">[ path.glob $(prefix)/include : python$(version)* ] </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Thu, 19 Mar 2015 11:35:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:12</guid> <description> <p> I don't know python however: </p> <pre class="wiki"> if not($(prefix)/include/python$(version)m) { debug-message "Used include path: $(prefix)/include/python$(version)m" ; includes ?= $(prefix)/include/python$(version)m ; } else { debug-message "Used include path: $(prefix)/include/python$(version)" ; includes ?= $(prefix)/include/python$(version) ; } local lib = $(exec-prefix)/lib ; libraries ?= $(lib)/python$(version)/config $(lib) ; </pre><p> I tried add before " path.glob $(prefix)/include : python$(version)* " but python libs missed ( libboost_python ) and I con not find error. </p> <p> Anyone will update python support ?<br /> I ask because I see ./bootstrap.sh can add only 1 python version to project-config.jam </p> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Thu, 19 Mar 2015 11:38:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:13 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:13</guid> <description> <p> You tried add something with if ? </p> <pre class="wiki">if [ path.glob $(prefix)/include : python$(version)* ] ... </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>tele</dc:creator> <pubDate>Thu, 19 Mar 2015 12:18:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:14 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:14</guid> <description> <p> blee , above what I paste working wrong , if any can fix I will happy. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 26 Mar 2015 07:27:31 GMT</pubDate> <title>component changed https://svn.boost.org/trac10/ticket/11120#comment:15 https://svn.boost.org/trac10/ticket/11120#comment:15 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">Building Boost</span> </li> </ul> Ticket anonymous Sun, 05 Apr 2015 16:27:12 GMT <link>https://svn.boost.org/trac10/ticket/11120#comment:16 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:16</guid> <description> <p> I tried also something </p> <pre class="wiki"> for local file_name in glob.glob("{prefix}/include/python{version}*/Python.h".format(version=$(version), prefix=$(prefix))) # file_name = /usr/include/python3.4m/Python.h includes ?= $(file_name)[:-9] ; # includes ?= /usr/include/python3.4m ; { debug-message "Python$(version) path: $(file_name) ; } </pre><p> And also this is wrong and I don't know what is wrong inside this. This is python jam , yes ? Exist IDE for python jam ? How can create fast script and test in python jam ? </p> </description> <category>Ticket</category> </item> <item> <author>marcus.hanwell@…</author> <pubDate>Tue, 27 Oct 2015 15:34:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:17 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:17</guid> <description> <p> This still appears to be an issue in Boost 1.59.0, I found this report when searching for my problem. I guess not all installs symlink the directory without the m. It would be great to resolve as it can take quite a while to get here. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 08 Nov 2015 16:06:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:18 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:18</guid> <description> <p> Reporting that this bug is still present. On OSX with python3 installed via brew. </p> <p> Bootstrap with </p> <p> <code> ./bootstrap.sh --with-python=python3</code> </p> <p> Here's how to fix this manually for now: </p> <p> In the file <code>tools/build/v2/tools/python.jam</code>, line 542, change </p> <p> <code> includes ?= $(prefix)/include/python$(version) ;</code> </p> <p> to </p> <p> <code> includes ?= $(prefix)/include/python$(version)m ;</code> </p> <p> (as proposed by steven_watanabe) </p> <p> Hoping that a real fix will come for version 1.60. </p> </description> <category>Ticket</category> </item> <item> <author>j.r.versteegh@…</author> <pubDate>Mon, 18 Jan 2016 13:43:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:19 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:19</guid> <description> <p> Still present in 1.60. </p> <p> <code>python-config</code> should be used to determine the python include path. </p> </description> <category>Ticket</category> </item> <item> <author>j.r.versteegh@…</author> <pubDate>Mon, 18 Jan 2016 20:46:12 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/11120 https://svn.boost.org/trac10/ticket/11120 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">python_jam.patch</span> </li> </ul> <p> Modification of python.jam to use abiflags </p> Ticket j.r.versteegh@… Mon, 18 Jan 2016 20:50:41 GMT <link>https://svn.boost.org/trac10/ticket/11120#comment:20 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:20</guid> <description> <p> python.jam appears to get values from "import sys", so the above patch attempts to get the abiflags from there as well. Tested with python2.7 and python3.4 on linux mint amd64. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 27 Jul 2017 16:38:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:21 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:21</guid> <description> <p> Same error exists on OSX due to the difference in folder names. When installing Python3 with brew (brew install python3) Python is installed in this folder: /usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6 </p> <p> Boost configuration detects the folder correctly but sets the include path as: /usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/include/python3.6 </p> <p> While brew installation places include files in: /usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/include/python3.6m </p> <p> This can be solved by soft linking folder include/python3.6 to include/python3.6m but it's not obvious, and boost library build does not work out of the box. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 02 Aug 2017 12:48:01 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:22 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:22</guid> <description> <p> Are there any plans to fix this bug? </p> </description> <category>Ticket</category> </item> <item> <author>liam.gretton@…</author> <pubDate>Tue, 15 Aug 2017 16:02:01 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:23 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:23</guid> <description> <p> I just hit this bug in 1.64.0 too, here's another vote for a fix please. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 09 Oct 2017 20:30:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:24 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:24</guid> <description> <p> Please fix this already. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>ofloveandhate</dc:creator> <pubDate>Wed, 11 Oct 2017 15:11:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:25 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:25</guid> <description> <p> october 2017, and i'm beyond eager to have a fix. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>ofloveandhate</dc:creator> <pubDate>Wed, 11 Oct 2017 15:11:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:26 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:26</guid> <description> <p> maybe this will be fixed after boost moves to cmake for its build system? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Microsamp</dc:creator> <pubDate>Fri, 13 Oct 2017 18:49:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:27 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:27</guid> <description> <p> I am waiting for a fix too. Python2.7 on Mint amd64 with 1_16_0/1_65_1(both tested today) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 16 Nov 2017 19:43:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:28 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:28</guid> <description> <p> Please fix this </p> </description> <category>Ticket</category> </item> <item> <author>orangesherbet0@…</author> <pubDate>Sat, 27 Jan 2018 22:39:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:29 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:29</guid> <description> <p> pyconfig.h still not found in boost 1.66, building boost on Linux Mint (roughly equal to Ubuntu 16.04). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 05 Feb 2018 01:46:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:30 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:30</guid> <description> <p> Facing the same problem Centos 7 boost 1.65 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 15 Feb 2018 11:57:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:31 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:31</guid> <description> <p> can i do anything here? if i make it use python-config, is there a chance you will merge? this really makes it hard to automate this... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 22 Feb 2018 01:15:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11120#comment:32 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11120#comment:32</guid> <description> <p> apt-get install python-dev </p> </description> <category>Ticket</category> </item> </channel> </rss>