Login  Register

Re: Problem with Solaris 10 / Sun Studio 12 / QL 0.9.6

Posted by Simon Ibbotson on Sep 24, 2008; 2:33pm
URL: http://quantlib.414.s1.nabble.com/Problem-with-Solaris-10-Sun-Studio-12-QL-0-9-6-tp6625p6627.html

Looking at the boost header file, it seems as if either

BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION or
BOOST_MSVC_STD_ITERATOR or
BOOST_NO_STD_ITERATOR_TRAITS

is defined.

Either this is specified somewhere in Pierre's QuantLib structure or Boost is thinking that it can't find the appropriate STL iterator.

I suspect this is due to the sunpro_cc.hpp file in Boost.

Boost disables template partial specialization : following comments are from the header file.

// Although sunpro 5.2 supports the syntax for
       // partial specialization, it often seems to
       // bind to the wrong specialization.  Better
       // to disable it until suppport becomes more stable
       // (J Maddock 6th May 2001).


So, the value assigned to __SUNPRO_CC must be <= 0x520.

Try upgrading the version of SunPro CC to a later version.

All the best,

Simon




On Wed, Sep 24, 2008 at 1:24 PM, Luigi Ballabio <[hidden email]> wrote:
Simon,
       you seem to be the local Solaris expert. Do you have any advice on
this?

Thanks,
       Luigi

On Tue, 2008-09-23 at 02:34 -0700, moloko wrote:
> patch 124863-07 2008/08/22 is installed. I use CC to compile.
> With Boost ( compiled for a sun platform ) 1.36.0 and 1.34.1
>
> Is first had the error described in a mail below, after "make". I've
> corrected the hpp file as suggested in luigi's response :
> <http://sourceforge.net/mailarchive/message.php?msg_id=5a0513100808290157x24781e72w4fd5851ee651086f%40mail.gmail.com>.
>
> Then I've got this error :
>
> "/fimatrix/dev/boost_1_36_0/boost/array.hpp", line 75: Error: Too few
> arguments
> for template std::reverse_iterator<boost::T*>.
> "/fimatrix/dev/boost_1_36_0/boost/array.hpp", line 289:     Where: While
> special
> izing "boost::array<boost::T, boost::N>".
> "/fimatrix/dev/boost_1_36_0/boost/array.hpp", line 289:     Where:
> Specialized i
> n non-template code.
> "/fimatrix/dev/boost_1_36_0/boost/array.hpp", line 76: Error: Too few
> arguments
> for template std::reverse_iterator<const boost::T*>.
> "/fimatrix/dev/boost_1_36_0/boost/array.hpp", line 289:     Where: While
> special
> izing "boost::array<boost::T, boost::N>".
> "/fimatrix/dev/boost_1_36_0/boost/array.hpp", line 289:     Where:
> Specialized i
> n non-template code.
> 2 Error(s) and 4 Warning(s) detected.
> *** Error code 1
> make: Fatal error: Command failed for target `sabrvolsurface.lo'
> Current working directory
> /fimatrix/dev/QuantLib-0.9.6/ql/experimental/volatilit
> y
>
> Maybe I could have to bjam instruction used by someone who has completed the
> QL compilation ?

--

Flon's Law:
There is not now, and never will be, a language in
which it is the least bit difficult to write bad programs.




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users