Boost C++ Libraries: Ticket #8078: Boost 1.53 fails to build on Slackware 14.0 with gcc 4.7.1 https://svn.boost.org/trac10/ticket/8078 <p> I receive the following error when trying to build Boost 1.53.0 for Slackware 14.0: </p> <pre class="wiki">gcc.compile.c++ regression/build/bin/gcc-4.7.1/slackbuild/link-static/library_status.o "i486-slackware-linux-g++" -ftemplate-depth-128 -march=i486 -mtune=i686 -fno-strict-aliasing -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I".." -c -o "regression/build/bin/gcc-4.7.1/slackbuild/link-static/library_status.o" "regression/src/library_status.cpp" regression/src/library_status.cpp: In function 'std::list&lt;boost::shared_ptr&lt;boost::tiny_xml::element&gt; &gt;::const_iterator {anonymous}::find_element(const boost::tiny_xml::element&amp;, const string&amp;)': regression/src/library_status.cpp:189:9: error: no matching function for call to 'find_if(std::list&lt;boost::shared_ptr&lt;boost::tiny_xml::element&gt; &gt;::const_iterator, std::list&lt;boost::shared_ptr&lt;boost::tiny_xml::element&gt; &gt;::const_iterator, {anonymous}::find_element(const boost::tiny_xml::element&amp;, const string&amp;)::element_equal)' regression/src/library_status.cpp:189:9: note: candidate is: In file included from /usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../include/c++/4.7.1/algorithm:63:0, from ../boost/smart_ptr/shared_ptr.hpp:42, from ../boost/shared_ptr.hpp:17, from ../boost/filesystem/path.hpp:29, from ../boost/filesystem/operations.hpp:25, from regression/src/library_status.cpp:28: /usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../include/c++/4.7.1/bits/stl_algo.h:4481:5: note: template&lt;class _IIter, class _Predicate&gt; _IIter std::find_if(_IIter, _IIter, _Predicate) regression/src/library_status.cpp:189:9: error: template argument for 'template&lt;class _IIter, class _Predicate&gt; _IIter std::find_if(_IIter, _IIter, _Predicate)' uses local type '{anonymous}::find_element(const boost::tiny_xml::element&amp;, const string&amp;)::element_equal' regression/src/library_status.cpp:189:9: error: trying to instantiate 'template&lt;class _IIter, class _Predicate&gt; _IIter std::find_if(_IIter, _IIter, _Predicate)' regression/src/library_status.cpp: In function 'const string&amp; {anonymous}::attribute_value(const boost::tiny_xml::element&amp;, const string&amp;)': regression/src/library_status.cpp:223:9: error: no matching function for call to 'find_if(std::list&lt;boost::tiny_xml::attribute&gt;::const_iterator, std::list&lt;boost::tiny_xml::attribute&gt;::const_iterator, {anonymous}::attribute_value(const boost::tiny_xml::element&amp;, const string&amp;)::attribute_equal)' regression/src/library_status.cpp:223:9: note: candidate is: In file included from /usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../include/c++/4.7.1/algorithm:63:0, from ../boost/smart_ptr/shared_ptr.hpp:42, from ../boost/shared_ptr.hpp:17, from ../boost/filesystem/path.hpp:29, from ../boost/filesystem/operations.hpp:25, from regression/src/library_status.cpp:28: /usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../include/c++/4.7.1/bits/stl_algo.h:4481:5: note: template&lt;class _IIter, class _Predicate&gt; _IIter std::find_if(_IIter, _IIter, _Predicate) regression/src/library_status.cpp:223:9: error: template argument for 'template&lt;class _IIter, class _Predicate&gt; _IIter std::find_if(_IIter, _IIter, _Predicate)' uses local type '{anonymous}::attribute_value(const boost::tiny_xml::element&amp;, const string&amp;)::attribute_equal' regression/src/library_status.cpp:223:9: error: trying to instantiate 'template&lt;class _IIter, class _Predicate&gt; _IIter std::find_if(_IIter, _IIter, _Predicate)' regression/src/library_status.cpp: In function 'std::list&lt;boost::shared_ptr&lt;boost::tiny_xml::element&gt; &gt;::const_iterator {anonymous}::find_element(const boost::tiny_xml::element&amp;, const string&amp;)': regression/src/library_status.cpp:190:5: warning: control reaches end of non-void function [-Wreturn-type] In file included from ../boost/filesystem/path_traits.hpp:23:0, from ../boost/filesystem/path.hpp:25, from ../boost/filesystem/operations.hpp:25, from regression/src/library_status.cpp:28: ../boost/system/error_code.hpp: At global scope: ../boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable] ../boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable] ../boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable] ...failed gcc.compile.c++ regression/build/bin/gcc-4.7.1/slackbuild/link-static/library_status.o... ...skipped &lt;pregression/build/bin/gcc-4.7.1/slackbuild/link-static&gt;library_status for lack of &lt;pregression/build/bin/gcc-4.7.1/slackbuild/link-static&gt;library_status.o... ...skipped &lt;p../dist/bin&gt;library_status for lack of &lt;pregression/build/bin/gcc-4.7.1/slackbuild/link-static&gt;library_status... </pre><p> Let me know if I could provide other information, which may help for resolving the problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8078 Trac 1.4.3 anonymous Sat, 16 Feb 2013 15:15:08 GMT <link>https://svn.boost.org/trac10/ticket/8078#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8078#comment:1</guid> <description> <p> Just checked and exactly the same error appears on Slackware 13.37 with GCC 4.5.2 </p> </description> <category>Ticket</category> </item> <item> <author>aleks@…</author> <pubDate>Sun, 17 Feb 2013 14:12:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8078#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8078#comment:2</guid> <description> <p> I have the same problem on Archlinux with GCC 4.7.2 </p> </description> <category>Ticket</category> </item> <item> <author>Stéphane Gaudreault <stephane@…></author> <pubDate>Mon, 18 Feb 2013 00:49:56 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/8078#comment:3 https://svn.boost.org/trac10/ticket/8078#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">stephane@…</span> added </li> </ul> Ticket asdil12 Mon, 18 Feb 2013 11:06:49 GMT <link>https://svn.boost.org/trac10/ticket/8078#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8078#comment:4</guid> <description> <p> If I manually run the g++ line - but with clang+, the issue does not appear. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>asdil12</dc:creator> <pubDate>Mon, 18 Feb 2013 11:09:14 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8078#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8078#comment:5</guid> <description> <pre class="wiki">$ clang++ -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I".." -c -o "regression/build/bin/gcc-4.7.2/release/link-static/library_status.o" "regression/src/library_status.cpp" regression/src/library_status.cpp:185:16: warning: template argument uses local type 'element_equal' [-Wlocal-type-template-args] return std::find_if( ^~~ regression/src/library_status.cpp:219:15: warning: template argument uses local type 'attribute_equal' [-Wlocal-type-template-args] itr = std::find_if( ^~~ 2 warnings generated. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 18 Feb 2013 18:01:52 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/8078#comment:6 https://svn.boost.org/trac10/ticket/8078#comment:6 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/8078?action=diff&amp;version=6">diff</a>) </li> </ul> Ticket anonymous Sun, 24 Feb 2013 02:59:54 GMT <link>https://svn.boost.org/trac10/ticket/8078#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8078#comment:7</guid> <description> <p> Same here on gentoo </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Wed, 13 Mar 2013 16:53:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8078#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8078#comment:8</guid> <description> <p> The code in question is illegal in C++03, but valid in C++11. </p> </description> <category>Ticket</category> </item> <item> <author>stephane@…</author> <pubDate>Mon, 25 Mar 2013 11:27:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8078#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8078#comment:9</guid> <description> <p> Building with </p> <p> bjam --toolset=gcc cflags="-std=gnu++11" library_status </p> <p> seems to fix the problem on Arch Linux (gcc version 4.7.2). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Mon, 25 Mar 2013 15:02:13 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/8078#comment:10 https://svn.boost.org/trac10/ticket/8078#comment:10 <ul> <li><strong>owner</strong> set to <span class="trac-author">René Rivera</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">Regression Testing</span> </li> </ul> <p> Note that you don't actually need this to build Boost. It's just a convenience tools that some of us use. </p> Ticket Steven Watanabe Mon, 25 Mar 2013 15:03:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8078#comment:11 https://svn.boost.org/trac10/ticket/8078#comment:11 <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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83556" title="Fix library_status for C++03 compilers. Fixes #8078">[83556]</a>) Fix library_status for C++03 compilers. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8078" title="#8078: Bugs: Boost 1.53 fails to build on Slackware 14.0 with gcc 4.7.1 (closed: fixed)">#8078</a> </p> Ticket gdsotirov@… Tue, 26 Mar 2013 05:20:10 GMT <link>https://svn.boost.org/trac10/ticket/8078#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8078#comment:12</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8078#comment:11" title="Comment 11">steven_watanabe</a>: </p> <blockquote class="citation"> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83556" title="Fix library_status for C++03 compilers. Fixes #8078">[83556]</a>) Fix library_status for C++03 compilers. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8078" title="#8078: Bugs: Boost 1.53 fails to build on Slackware 14.0 with gcc 4.7.1 (closed: fixed)">#8078</a> </p> </blockquote> <p> Thank you very much! I've created a patch against 1.53.0 from this change set and thus I was able to create the package for Slackware 14.0 (gcc version 4.7.1) successfully. </p> </description> <category>Ticket</category> </item> <item> <author>Arfrever.FTA@…</author> <pubDate>Fri, 05 Apr 2013 08:24:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8078#comment:13 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8078#comment:13</guid> <description> <p> Please backport <a class="changeset" href="https://svn.boost.org/trac10/changeset/83556" title="Fix library_status for C++03 compilers. Fixes #8078">r83556</a> to release branch. </p> </description> <category>Ticket</category> </item> </channel> </rss>