Boost C++ Libraries: Ticket #6885: Some QNX 6.5SDK builds broken with Boost 1.49 bjam? https://svn.boost.org/trac10/ticket/6885 <p> QNX qcc 4.4.2 shows as supported and tested on the boost.org website, but I have been having problems building all the projects on Windows (from .zip file) with QNX 6.5 SDK targeting x86. The first change that helped compile 11 projects was as follows: </p> <pre class="wiki">''In file tools\build\v2\tools\qcc.jam, in the “actions piecemeal archive” block, replace the line: ar rc "$(&lt;)" "$(&gt;)" with the following: ntox86-ar rc "$(&lt;)" "$(&gt;)" '' </pre><p> I assume there is a better "fix" for ar ... but I'm uncertain what needs to change. </p> <p> With the following bjam I get success, and the remaining projects failure. Thread is used as an example, as it is trying to build win32 files. </p> <pre class="wiki">bjam -q --prefix=%DRIVE%\boost --build-type=minimal --build-dir=%DRIVE%\boostBuild_%BOOSTVER% --layout=system toolset=qcc target-os=qnxnto --variant=release link=static threading=multi runtime-link=shared --without-graph --without-graph_parallel --without-locale --without-mpi --without-python --without-regex --without-serialization --without-test --without-thread --without-wave install @REM Single entry to fix broken builds (trying thread) bjam -q --prefix=%DRIVE%\boost --build-type=minimal --build-dir=%DRIVE%\boostBuild_%BOOSTVER% --layout=system toolset=qcc target-os=qnxnto --variant=release link=static threading=multi runtime-link=shared --with-thread install </pre><p> I get results like the following (again, thread as an example). What am I doing wrong? </p> <pre class="wiki">D:\boost_1_49_0&gt;bjam -q --prefix=D:\boost --build-type=minimal --build-dir=D:\bo ostBuild_1_49_0 --layout=system toolset=qcc target-os=qnxnto --variant=release l ink=static threading=multi runtime-link=shared --with-thread install Component configuration: - chrono : not building - date_time : not building - exception : not building - filesystem : not building - graph : not building - graph_parallel : not building - iostreams : not building - locale : not building - math : not building - mpi : not building - program_options : not building - python : not building - random : not building - regex : not building - serialization : not building - signals : not building - system : not building - test : not building - thread : building - timer : not building - wave : not building ...patience... ...found 19291 targets... ...updating 13 targets... common.mkdir D:\boostBuild_1_49_0\boost\bin.v2\libs\thread common.mkdir D:\boostBuild_1_49_0\boost\bin.v2\libs\thread\build common.mkdir D:\boostBuild_1_49_0\boost\bin.v2\libs\thread\build\qcc common.mkdir D:\boostBuild_1_49_0\boost\bin.v2\libs\thread\build\qcc\release common.mkdir D:\boostBuild_1_49_0\boost\bin.v2\libs\thread\build\qcc\release\lin k-static common.mkdir D:\boostBuild_1_49_0\boost\bin.v2\libs\thread\build\qcc\release\lin k-static\target-os-qnxnto common.mkdir D:\boostBuild_1_49_0\boost\bin.v2\libs\thread\build\qcc\release\lin k-static\target-os-qnxnto\threading-multi common.mkdir D:\boostBuild_1_49_0\boost\bin.v2\libs\thread\build\qcc\release\lin k-static\target-os-qnxnto\threading-multi\win32 qcc.compile.c++ D:\boostBuild_1_49_0\boost\bin.v2\libs\thread\build\qcc\release\ link-static\target-os-qnxnto\threading-multi\win32\thread.o libs\thread\src\win32\thread.cpp:22:21: error: windows.h: No such file or direct ory libs\thread\src\win32\thread.cpp:30: error: 'DWORD' does not name a type libs\thread\src\win32\thread.cpp: In function 'void boost::&lt;unnamed&gt;::create_cur rent_thread_tls_key()': libs\thread\src\win32\thread.cpp:34: error: 'tss_cleanup_implemented' was not de clared in this scope libs\thread\src\win32\thread.cpp:35: error: 'current_thread_tls_key' was not dec lared in this scope libs\thread\src\win32\thread.cpp:35: error: 'TlsAlloc' was not declared in this scope libs\thread\src\win32\thread.cpp: In function 'void boost::&lt;unnamed&gt;::cleanup_tl s_key()': libs\thread\src\win32\thread.cpp:46: error: 'current_thread_tls_key' was not dec lared in this scope libs\thread\src\win32\thread.cpp:48: error: 'TlsFree' was not declared in this s cope libs\thread\src\win32\thread.cpp: In function 'boost::detail::thread_data_base* boost::&lt;unnamed&gt;::get_current_thread_data()': libs\thread\src\win32\thread.cpp:55: error: 'current_thread_tls_key' was not dec lared in this scope libs\thread\src\win32\thread.cpp:59: error: 'current_thread_tls_key' was not dec lared in this scope libs\thread\src\win32\thread.cpp:59: error: 'TlsGetValue' was not declared in th is scope libs\thread\src\win32\thread.cpp: In function 'void boost::&lt;unnamed&gt;::set_curren t_thread_data(boost::detail::thread_data_base*)': libs\thread\src\win32\thread.cpp:65: error: 'current_thread_tls_key' was not dec lared in this scope libs\thread\src\win32\thread.cpp:66: error: 'TlsSetValue' was not declared in th is scope libs\thread\src\win32\thread.cpp: At global scope: libs\thread\src\win32\thread.cpp:76: error: expected ')' before '*' token libs\thread\src\win32\thread.cpp:77: error: 'func' does not name a type libs\thread\src\win32\thread.cpp:79: error: expected ')' before 'start_address' libs\thread\src\win32\thread.cpp:82: error: 'DWORD' does not name a type libs\thread\src\win32\thread.cpp:91: error: expected ')' before '*' token libs\thread\src\win32\thread.cpp:91: error: expected ')' before '*' token libs\thread\src\win32\thread.cpp:91: error: expected initializer before '*' toke n libs\thread\src\win32\thread.cpp:631: error: expected '}' at end of input libs\thread\src\win32\thread.cpp:631: error: expected '}' at end of input cc: d:/qnxsdk/qnxsdk6.5-001/host/win32/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.4. 2/cc1plus caught signal 1 "QCC" -Wc,-ftemplate-depth-128 -O3 -Wc,-finline-functions -Wc,-Wno-inline -D BOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_LIB=1 -DNDEBUG -I"." -c -o "D:\boostBuil d_1_49_0\boost\bin.v2\libs\thread\build\qcc\release\link-static\target-os-qnxnto \threading-multi\win32\thread.o" "libs\thread\src\win32\thread.cpp" ...failed qcc.compile.c++ D:\boostBuild_1_49_0\boost\bin.v2\libs\thread\build\qc c\release\link-static\target-os-qnxnto\threading-multi\win32\thread.o... ...failed updating 1 target... ...updated 8 targets... D:\boost_1_49_0&gt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6885 Trac 1.4.3 steven.lemay@… Mon, 21 May 2012 22:24:47 GMT <link>https://svn.boost.org/trac10/ticket/6885#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6885#comment:1</guid> <description> <p> I was able to address this build issue with the following bjam. If anyone has discovered a better configuration please let me know. </p> <p> SET DRIVE=D: SET BOOSTVER=1_49_0 </p> <p> bjam -a -q -j4 --prefix=%DRIVE%\boost --build-type=minimal --build-dir=%DRIVE%\boostBuild_%BOOSTVER% --layout=system toolset=qcc target-os=qnxnto threadapi=pthread -- </p> <p> variant=release link=static threading=multi runtime-link=shared --without-python --without-mpi install &gt;build.log 2&gt;&amp;1 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 21 May 2012 22:25:58 GMT</pubDate> <title>type, severity changed https://svn.boost.org/trac10/ticket/6885#comment:2 https://svn.boost.org/trac10/ticket/6885#comment:2 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Support Requests</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Not Applicable</span> </li> </ul> Ticket viboes Thu, 03 Jan 2013 17:06:16 GMT description changed https://svn.boost.org/trac10/ticket/6885#comment:3 https://svn.boost.org/trac10/ticket/6885#comment:3 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/6885?action=diff&amp;version=3">diff</a>) </li> </ul> Ticket viboes Thu, 03 Jan 2013 17:11:41 GMT status, component changed; owner set https://svn.boost.org/trac10/ticket/6885#comment:4 https://svn.boost.org/trac10/ticket/6885#comment:4 <ul> <li><strong>owner</strong> set to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">thread</span> </li> </ul> <p> Boost.Thread uses win32 api on windows by default. The way you are using now seems to me the correct one. </p> <pre class="wiki">bjam target-os=qnxnto threadapi=pthread </pre><p> Could we close the ticket? </p> Ticket viboes Sat, 12 Jan 2013 01:13:17 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6885#comment:5 https://svn.boost.org/trac10/ticket/6885#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> Ticket