Boost C++ Libraries: Ticket #2930: Error building boost, cannot find -lpython https://svn.boost.org/trac10/ticket/2930 <p> An error occurs while linking </p> <blockquote> <p> bin.v2/libs/python/build/gcc-4.1.2/release/debug-symbols-on/inlining-on/threading-multi/libboost_python-gcc41-mt-1_38.so.1.38.0 </p> </blockquote> <p> bjam pass -lpython instead of lib with version; -lpython2.4 for me. All others targets are built. </p> <p> I'm on a centOS 5.2 with : </p> <ul><li>python 2.4 </li><li>boost-jam 3.1.12 </li></ul> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2930 Trac 1.4.3 francois.chenais@… Thu, 09 Apr 2009 14:04:56 GMT attachment set https://svn.boost.org/trac10/ticket/2930 https://svn.boost.org/trac10/ticket/2930 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-1.38.0-building-error.txt.gz</span> </li> </ul> <p> boost-1.38.0 building error </p> Ticket Steven Watanabe Thu, 09 Apr 2009 15:19:53 GMT <link>https://svn.boost.org/trac10/ticket/2930#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2930#comment:1</guid> <description> <p> Run </p> <pre class="wiki">bjam --help python.init </pre><p> for more info. </p> </description> <category>Ticket</category> </item> <item> <author>francois.chenais@…</author> <pubDate>Fri, 10 Apr 2009 07:23:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2930#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2930#comment:2</guid> <description> <p> I've tried setting </p> <blockquote> <p> using python : 2.4 ; </p> </blockquote> <p> in </p> <blockquote> <p> tools/build/v2/user-config.jam </p> </blockquote> <p> before reporting the bug. But without success. </p> <p> The command line is </p> <blockquote> <p> + umask 022 + cd /home/cea/chenais/rpmbuild/BUILD + cd boost_1_38_0 + LANG=C + export LANG + unset DISPLAY ++ /usr/bin/python -c 'import sys; print sys.version<a class="source" href="https://svn.boost.org/trac10/log/?revs=0-3">[0:3]</a>' + PYTHON_VERSION=2.4 + PYTHON_ROOT=/usr + EXPAT_INCLUDE=/usr/include + EXPAT_LIBPATH=/usr/lib64 + ICU_PATH=/usr + bjam -d2 --toolset=gcc variant=release debug-symbols=on inlining=on link=static,shared threading=multi </p> </blockquote> <p> The attached file shows that bjam use 2.4 version of python. </p> <hr /> <p> Build request: object(property-set)@2263 &lt;asynch-exceptions&gt;off &lt;debug-symbols&gt;on &lt;define&gt;NDEBUG &lt;exception-handling&gt;on &lt;extern-c-nothrow&gt;off &lt;inlining&gt;on &lt;link&gt;shared &lt;optimization&gt;speed &lt;os&gt;LINUX &lt;pch&gt;on &lt;preserve-test-targets&gt;off &lt;profiling&gt;off &lt;python-debugging&gt;off <strong>&lt;python&gt;2.4</strong> &lt;rtti&gt;on &lt;runtime-debugging&gt;off &lt;runtime-link&gt;shared &lt;stdlib&gt;native &lt;target-os&gt;linux &lt;threadapi&gt;pthread &lt;threading&gt;multi &lt;toolset-gcc:version&gt;4.1.2 &lt;toolset&gt;gcc &lt;variant&gt;release &lt;warnings-as-errors&gt;off &lt;warnings&gt;on </p> <blockquote> <p> Target requirements: &lt;conditional&gt;@Jamfile&lt;/tmp/rpmbuild/BUILD/boost_1_38_0&gt;%Jamfile&lt;/tmp/rpmbuild/BUILD/boost_1_38_0&gt;.handle-static-runtime &lt;define&gt;BOOST_ALL_NO_LIB=1 &lt;include&gt;. &lt;link&gt;shared:&lt;define&gt;BOOST_ALL_DYN_LINK=1 &lt;python&gt;2.4,&lt;target-os&gt;linux:&lt;python.interpreter&gt;python &lt;tag&gt;@Jamfile&lt;/tmp/rpmbuild/BUILD/boost_1_38_0&gt;%Jamfile&lt;/tmp/rpmbuild/BUILD/boost_1_38_0&gt;.tag &lt;toolset-msvc:version&gt;7.1:&lt;rtti&gt;off &lt;toolset-msvc:version&gt;7.1_stlport4:&lt;rtti&gt;off &lt;toolset&gt;msvc:&lt;define&gt;_CRT_SECURE_NO_DEPRECATE &lt;toolset&gt;msvc:&lt;define&gt;_SCL_SECURE_NO_DEPRECATE &lt;warnings&gt;off </p> </blockquote> <hr /> <blockquote> <p> Am I wrong ? </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 10 Apr 2009 07:24:21 GMT</pubDate> <title>summary changed https://svn.boost.org/trac10/ticket/2930#comment:3 https://svn.boost.org/trac10/ticket/2930#comment:3 <ul> <li><strong>summary</strong> <span class="trac-field-old">Error buildinf boost, cannot find -lpython</span> → <span class="trac-field-new">Error building boost, cannot find -lpython</span> </li> </ul> Ticket Steven Watanabe Fri, 10 Apr 2009 15:15:10 GMT <link>https://svn.boost.org/trac10/ticket/2930#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2930#comment:4</guid> <description> <p> Replying to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2930" title="#2930: Bugs: Error building boost, cannot find -lpython (closed: invalid)">francois.chenais@gmail.com</a>: </p> <blockquote class="citation"> <p> I'm on a centOS 5.2 with : </p> <ul><li>python 2.4 </li><li>boost-jam 3.1.12 </li></ul></blockquote> <p> You may need a more recent version of boost-jam. Other than that, I have no idea what's going on. The build log refers to a libs/python/build/pythonlib target which I can't find any trace of in the source. My best guess is that the old version of bjam is causing the wrong build files to be selected. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 10 Apr 2009 16:03:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2930#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2930#comment:5</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/2930#comment:4" title="Comment 4">steven_watanabe</a>: </p> <blockquote class="citation"> <p> Replying to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2930" title="#2930: Bugs: Error building boost, cannot find -lpython (closed: invalid)">francois.chenais@gmail.com</a>: </p> <blockquote class="citation"> <p> I'm on a centOS 5.2 with : </p> <ul><li>python 2.4 </li><li>boost-jam 3.1.12 </li></ul></blockquote> <p> You may need a more recent version of boost-jam. Other than that, I have no idea what's going on. The build log refers to a libs/python/build/pythonlib target which I can't find any trace of in the source. My best guess is that the old version of bjam is causing the wrong build files to be selected. </p> </blockquote> <p> I've tried with last bjam (3.1.17) but it fails with the same error. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 10 Apr 2009 23:05:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2930#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2930#comment:6</guid> <description> <p> Ok. Can you post the output from </p> <pre class="wiki"> bjam --with-python --debug-configuration toolset=gcc link=static debug-symbols=on inlining=on threading=multi -n </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Sat, 30 May 2009 15:47:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2930#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2930#comment:7</guid> <description> <p> Francois, can you please provide output Steven has requested? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Sat, 06 Jun 2009 12:43:14 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2930#comment:8 https://svn.boost.org/trac10/ticket/2930#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> There's not enough information to reproduce or fix. </p> Ticket