[Boost-bugs] [Boost C++ Libraries] #2367: Problem with spinlock_sync.hpp with intel compilers

Subject: [Boost-bugs] [Boost C++ Libraries] #2367: Problem with spinlock_sync.hpp with intel compilers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-26 23:36:50


#2367: Problem with spinlock_sync.hpp with intel compilers
----------------------------+-----------------------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: Boost 1.35.1
Component: Building Boost | Version: Boost 1.36.0
 Severity: Showstopper | Keywords: intel, linux, build, 1.36.0, thread
----------------------------+-----------------------------------------------
 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

 {{{
 ...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( &v_, 1 );
                   ^

 ./boost/detail/spinlock_sync.hpp(54): error: identifier
 "__sync_lock_release" is undefined
           __sync_lock_release( &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"
 }}}

 I'm not sure why this is, it seems someone had a similar issue on a 64 bit
 machine ([http://svn.boost.org/trac/boost/ticket/1938]) but not sure the
 solution will transfer to 32 bit?

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2367>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC