Boost C++ Libraries: Ticket #8552: Error compiling libboost_thread for android https://svn.boost.org/trac10/ticket/8552 <p> <strong>System configuration</strong>: Ubuntu 12.04, android-ndk-r8e, Android 4.0.3 level 15 on device, gcc android4.6 (but this also applies to Windows 7 with minGw) </p> <p> <strong>Setup</strong>: Most parts of boost build as expected, after invoking </p> <pre class="wiki">./bootstrap.sh --with-libraries=thread,signals,serialization,test,regex,system,date_time,exception,filesystem,math ./bjam --without-python --without-serialization toolset=gcc-android4.6 link=static runtime-link=static target-os=linux --stagedir=android --prefix=$MYDIR install </pre><p> <strong>Expected behaviour</strong>: After this compilation there should be a libboost_thread.a binary in the specified prefix. </p> <p> <strong>Observed behaviour</strong>: When compiling, the gcc fails with </p> <pre class="wiki">./boost/functional/hash/extensions.hpp:257:34: error: no matching function for call to 'hash_value(wchar_t const&amp;' </pre><p> <strong>Comment</strong>: I will attach the whole log of a compile <code>--with-thread</code> to this report, as well as my user-config.jam. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8552 Trac 1.4.3 Radke Tue, 07 May 2013 07:28:26 GMT attachment set https://svn.boost.org/trac10/ticket/8552 https://svn.boost.org/trac10/ticket/8552 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">errorLogGcc.txt</span> </li> </ul> <p> The whole output of the bjam call </p> Ticket Radke Tue, 07 May 2013 07:29:29 GMT attachment set https://svn.boost.org/trac10/ticket/8552 https://svn.boost.org/trac10/ticket/8552 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">user-config-jam-content.txt</span> </li> </ul> <p> The necessary content of the user-config.jam file </p> Ticket anonymous Wed, 08 May 2013 07:22:02 GMT version changed https://svn.boost.org/trac10/ticket/8552#comment:1 https://svn.boost.org/trac10/ticket/8552#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.52.0</span> → <span class="trac-field-new">Boost 1.53.0</span> </li> </ul> Ticket Radke Wed, 08 May 2013 07:22:58 GMT <link>https://svn.boost.org/trac10/ticket/8552#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8552#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8552#comment:1" title="Comment 1">anonymous</a>: Is now tested for boost 1_53_0 too with the same results </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Fri, 18 Nov 2016 10:14:10 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/8552#comment:3 https://svn.boost.org/trac10/ticket/8552#comment:3 <ul> <li><strong>owner</strong> set to <span class="trac-author">Daniel James</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">hash</span> </li> </ul> Ticket anonymous Fri, 18 Nov 2016 14:50:03 GMT <link>https://svn.boost.org/trac10/ticket/8552#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8552#comment:4</guid> <description> <p> Not sure what I can do much for a four year old android bug report. I'm not seeing this in the regression test results for android with recent versions. </p> <p> My guess is that in config <code>BOOST_NO_STD_WSTRING</code> was not defined, but <code>BOOST_NO_INTRINSIC_WCHAR_T</code> was defined, meaning that the code thinks there is a <code>std::wstring</code>, but no <code>wchar_t</code>. That results in hash defining a hash function for <code>std::wstring</code>, but it fails to compile because it can't hash the characters. I'll put in a change to only define a hash function for <code>std::wstring</code> when <code>wchar_t</code> is available, but I'm not sure if it'll do any good. </p> <p> I suppose another possibility would be to write special case code for strings so that it doesn't need a hash function for characters, but I'd rather not do that, as I don't want to add new functionality at this point. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Fri, 18 Nov 2016 15:19:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8552#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8552#comment:5</guid> <description> <p> Change at: </p> <p> <a class="ext-link" href="https://github.com/boostorg/functional/commit/f230731aa53ba8b30b77e56f28bfcf5317b12dc6"><span class="icon">​</span>https://github.com/boostorg/functional/commit/f230731aa53ba8b30b77e56f28bfcf5317b12dc6</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Mon, 05 Dec 2016 22:59:51 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/8552#comment:6 https://svn.boost.org/trac10/ticket/8552#comment:6 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.63.0</span> </li> </ul> Ticket