Modify

Ticket #4757 (closed Bugs: fixed)

Opened 4 years ago

Last modified 3 years ago

Compiler error in boost/array.hpp on Solaris w/Sun Studio 12

Reported by: Dagobert Michelsen <dam@…> Owned by: marshall
Milestone: To Be Determined Component: array
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:

Description

When compiling boost 1.44.0 on Solaris 9 Sparc with Sun Studio 12 I get the following error:

sun.compile.c++ bin.v2/libs/math/build/sun/release/stdlib-sun-stlport/threading-multi/assoc_legendre.o
"./boost/array.hpp", line 351: Error: An integer constant expression is required within the array subscript operator.
"./boost/array.hpp", line 358: Error: An integer constant expression is required within the array subscript operator.
2 Error(s) detected.

    "CC" -library=stlport4 -xldscope=hidden -xO4 -mt -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/sun/release/stdlib-sun-stlport/threading-multi/assoc_legendre.o" "libs/math/build/../src/tr1/assoc_legendre.cpp"

Dynamic indices doesn't seem to be supported by Sun Studio and should be replaced by calloc as described in  http://forums.sun.com/thread.jspa?threadID=5310741

Attachments

Change History

comment:1 Changed 4 years ago by vladimir_prus

  • Owner set to marshall
  • Component changed from Building Boost to array

comment:2 Changed 4 years ago by marshall

The forum comment doesn't seem to have anything to do with this situation. Still looking...

comment:3 Changed 4 years ago by marshall

  • Status changed from new to assigned

Checked in a proposed fix in [66154]; will wait for tests to cycle before merging to release.

comment:4 Changed 3 years ago by marshall

The fix seems to have broken all the borland compilers. Investigating further.

comment:5 Changed 3 years ago by marshall

(In [66651]) SunPro? workaround; references #4757

comment:6 Changed 3 years ago by marshall

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [67477]) Merged array changes to release; fixes #4757

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.