Boost C++ Libraries: Ticket #2367: Problem with spinlock_sync.hpp with intel compilers https://svn.boost.org/trac10/ticket/2367 <p> I am attempting to build the thread and regex boost libraries using intel compilers 10.1.018 on a 32 bit (Pentium 4) machine. I'm running under Ubuntu Linux version 8.04. Unfortunately I get lots of errors that look like this </p> <pre class="wiki">...failed intel-linux.compile.c++ bin.v2/libs/regex/build/intel-linux/release/link-static/threading-multi/regex.o... intel-linux.compile.c++ bin.v2/libs/regex/build/intel-linux/release/link-static/threading-multi/regex_traits_defaults.o icpc: command line remark #10010: option '-Ob' is deprecated and will be removed in a future release. See '-help deprecated' ./boost/detail/spinlock_sync.hpp(40): error: identifier "__sync_lock_test_and_set" is undefined int r = __sync_lock_test_and_set( &amp;v_, 1 ); ^ ./boost/detail/spinlock_sync.hpp(54): error: identifier "__sync_lock_release" is undefined __sync_lock_release( &amp;v_ ); ^ compilation aborted for libs/regex/src/../src/regex_traits_defaults.cpp (code 2) "icpc" -c -xc++ -O3 -Ob2 -w1 -pthread -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/regex/build/intel-linux/release/link-static/threading-multi/regex_traits_defaults.o" "libs/regex/src/../src/regex_traits_defaults.cpp" </pre><p> I'm not sure why this is, it seems someone had a similar issue on a 64 bit machine (<a class="ext-link" href="http://svn.boost.org/trac/boost/ticket/1938"><span class="icon">​</span>http://svn.boost.org/trac/boost/ticket/1938</a>) but not sure the solution will transfer to 32 bit? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2367 Trac 1.4.3 Marshall Clow Mon, 29 Sep 2008 22:23:42 GMT owner set https://svn.boost.org/trac10/ticket/2367#comment:1 https://svn.boost.org/trac10/ticket/2367#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Peter Dimov</span> </li> </ul> Ticket Peter Dimov Mon, 29 Sep 2008 22:29:39 GMT status, component, milestone changed https://svn.boost.org/trac10/ticket/2367#comment:2 https://svn.boost.org/trac10/ticket/2367#comment:2 <ul> <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">smart_ptr</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.35.1</span> → <span class="trac-field-new">Boost 1.37.0</span> </li> </ul> Ticket Peter Dimov Mon, 29 Sep 2008 22:32:24 GMT <link>https://svn.boost.org/trac10/ticket/2367#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2367#comment:3</guid> <description> <p> This is a duplicate of ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2000" title="#2000: Bugs: boost/detail/spinlock_sync.hpp incorrectly included for Intel C++ on Linux (closed: fixed)">#2000</a> (and <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2358" title="#2358: Bugs: __sync_lock_test_and_set not defined for Intel ICC (used in ... (closed: fixed)">#2358</a>) and is already fixed by changeset <a class="changeset" href="https://svn.boost.org/trac10/changeset/48836" title="Fix #2000.">[48836]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Sat, 28 Feb 2009 17:15:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2367#comment:4 https://svn.boost.org/trac10/ticket/2367#comment:4 <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> Ticket