Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1938 closed Bugs (fixed)

sp_counted_base_sync.hpp on ia64/intel-compiler needs ia64intrin.h

Reported by: Bryan Green <bryan.d.green@…> Owned by: Peter Dimov
Milestone: Boost 1.36.0 Component: smart_ptr
Version: Boost Development Trunk Severity: Problem
Keywords: sp_counted_base ia64 intel Cc:

Description

When building boost on ia64 platform with intel compiler, I get compiler errors due to undefined '__sync_val_compare_and_swap'.

In the intel compiler documentation, it says to include 'ia64intrin.h' for these synchronization primatives. I have verified that adding the include solves the problem, and I am attaching a patch. I am using Intel Compiler version 10.1, and the header exists at least as far back as 8.1.

P.S: FYI, during compilation, having configured with default options, I get the following "remark": icpc: command line remark #10010: option '-Ob' is deprecated and will be removed in a future release. See '-help deprecated'

Attachments (1)

sp_counted_base_sync_intel.patch (425 bytes ) - added by Bryan Green <bryan.d.green@…> 14 years ago.
patch

Download all attachments as: .zip

Change History (4)

by Bryan Green <bryan.d.green@…>, 14 years ago

patch

comment:1 by Anthony Williams, 14 years ago

Component: threadssmart_ptr
Owner: changed from Anthony Williams to Peter Dimov

comment:2 by Peter Dimov, 14 years ago

Resolution: fixed
Status: newclosed

(In [45690]) Fix #1938 in trunk

comment:3 by Peter Dimov, 14 years ago

(In [45691]) Fix #1938 in release

Note: See TracTickets for help on using tickets.