Opened 10 years ago

Closed 10 years ago

#6996 closed Bugs (fixed)

smart_pointer causes build failure on AIX gcc 4.7

Reported by: crispin.boylan@… Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.50.0 Severity: Problem
Keywords: Cc:

Description

When using gcc 4.7 with AIX, the sp_counted_base.hpp logic falls through to the sp_counted_base_gcc_ppc.hpp header which seems to be specifically for PPC Linux. When using gcc on AIX the system as is used, which does not support the syntax included in this file.

The reason for this seems to be the fact that in gcc 4.7 the powerpc define has been added to the built-in defines. This means the conditions are now matched for using the gcc ppc version of the fix.

I think the define needs to be enhanced either with a check for GNU Assembler being used or the _AIX is not defined.

Attachments (1)

boost_1_51_0-aix_gcc.patch (679 bytes ) - added by crispin.boylan@… 10 years ago.
Patch to compile on aix with gcc 4.7

Download all attachments as: .zip

Change History (3)

by crispin.boylan@…, 10 years ago

Attachment: boost_1_51_0-aix_gcc.patch added

Patch to compile on aix with gcc 4.7

comment:1 by Peter Dimov, 10 years ago

(In [81126]) Do not use sp_counted_base_gcc_ppc on AIX. Refs #6996.

comment:2 by Peter Dimov, 10 years ago

Resolution: fixed
Status: newclosed

(In [81332]) Merged [81126] from trunk. Fixes #6996.

Note: See TracTickets for help on using tickets.