Boost C++ Libraries: Ticket #6354: PGI: Compiler threading support is not turned on https://svn.boost.org/trac10/ticket/6354 <p> The following tester is reporting this compile error </p> <pre class="wiki">Test output: Sandia-pgi-11.9 - thread - test_barrier / pgi-11.9 Rev 76218 / Thu, 29 Dec 2011 17:44:28 +0000 Report Time: Tue, 3 Jan 2012 15:45:59 +0000 Compile [2011-12-29 19:29:47 UTC]: fail "pgCC" -INLINE:none -Kieee -fpic -fPIC -gopt -Minform=warn -DBOOST_ALL_NO_LIB=1 -DBOOST_TEST_NO_AUTO_LINK=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -D__need_IOV_MAX -I".." -c -o "/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/pgi-11.9/debug/threading-multi/test_barrier.o" "../libs/thread/test/test_barrier.cpp" "../boost/config/requires_threads.hpp", line 86: catastrophic error: #error directive: "Compiler threading support is not turned on. Please consult your compiler's documentation for the appropriate options to use" # error "Compiler threading support is not turned on. Please consult your compiler's documentation for the appropriate options to use" ^ 1 catastrophic error detected in the compilation of "../libs/thread/test/test_barrier.cpp". Compilation terminated. </pre><p> Maybe the build is setting threading=single and Boost.Thread doesn't force threading=multi or the selection in the config file doesn't takes in account the PGI compiler. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6354 Trac 1.4.3 viboes Tue, 03 Jan 2012 17:08:45 GMT <link>https://svn.boost.org/trac10/ticket/6354#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6354#comment:1</guid> <description> <p> Committed <a class="missing ticket">#76283</a> </p> <blockquote> <p> Thread: protect of threading=single by forcing threading=multi </p> </blockquote> <p> to see if this is a Thread issue. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 02 Feb 2012 22:58:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6354#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6354#comment:2</guid> <description> <p> Just want to chime in and say that I see the same compiler errors compiling my application with pgCC. I hope this gets resolved, I'd like to use pgCC, but for now have to use GNU C++ due to this issue. </p> <p> Thanks. reddell at uw.edu </p> </description> <category>Ticket</category> </item> <item> <author>Lars Viklund <zao@…></author> <pubDate>Mon, 05 Mar 2012 15:32:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6354#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6354#comment:3</guid> <description> <p> <code>boost/config/compiler/pgi.hpp</code> defines <code>BOOST_HAS_PTHREADS</code> but not <code>BOOST_HAS_THREADS</code>, resulting in failure in the <code>requires_threads.hpp</code> header mentioned in the report. </p> <p> As far as I can tell, there's no particular compiler flag needed to enable threading in current PGI versions. Simply hacking in a </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#define BOOST_HAS_THREADS</span> </pre></div></div><p> in the pgi.hpp header seems to have done the trick for threading on my tested configuration (11.8). </p> </description> <category>Ticket</category> </item> <item> <author>Ioannis Papadopoulos <ipapadop@…></author> <pubDate>Wed, 14 Mar 2012 03:02:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6354#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6354#comment:4</guid> <description> <p> It also works with pgi 11.9 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 21 Mar 2012 21:03:37 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/6354#comment:5 https://svn.boost.org/trac10/ticket/6354#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.50.0</span> </li> </ul> <p> Thanks for the analysis. I will see if we can add this soon. </p> Ticket viboes Thu, 22 Mar 2012 21:32:17 GMT <link>https://svn.boost.org/trac10/ticket/6354#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6354#comment:6</guid> <description> <p> Committed in trunk revision 77487. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 28 May 2012 16:22:49 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6354#comment:7 https://svn.boost.org/trac10/ticket/6354#comment:7 <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">fixed</span> </li> </ul> <p> It seems this is working now. </p> <p> Committed in release branch at <a class="changeset" href="https://svn.boost.org/trac10/changeset/78543" title="Merged boost.thread from trunk">[78543]</a> </p> Ticket