Opened 14 years ago

Closed 14 years ago

#2367 closed Bugs (fixed)

Problem with spinlock_sync.hpp with intel compilers

Reported by: anonymous Owned by: Peter Dimov
Milestone: Boost 1.37.0 Component: smart_ptr
Version: Boost 1.36.0 Severity: Showstopper
Keywords: intel, linux, build, 1.36.0, thread Cc:

Description

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?

Change History (4)

comment:1 by Marshall Clow, 14 years ago

Owner: set to Peter Dimov

comment:2 by Peter Dimov, 14 years ago

Component: Building Boostsmart_ptr
Milestone: Boost 1.35.1Boost 1.37.0
Status: newassigned

comment:3 by Peter Dimov, 14 years ago

This is a duplicate of ticket #2000 (and #2358) and is already fixed by changeset [48836].

comment:4 by Peter Dimov, 14 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.