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 ? |
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 |
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, ------------------------------------------------------------------------- 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 |
Hi Simon,
I haven't changed anything about this in my QL structures. I've got the following version/patch CC: Sun C++ 5.9 SunOS_sparc Patch 124863-07 2008/08/22 Pierre Selon Simon Ibbotson <[hidden email]>: > 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 *B*oost. > > 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 : > > > < > > > > > >. > > > > > > 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 |
So, can you find out what value the __SUNPRO_CC value has during compilation?
perhaps using some code such as: #if (__SUNPRO_CC <= 0x520) code breaks during compilation #endif On Wed, Sep 24, 2008 at 4:01 PM, <[hidden email]> wrote: Hi Simon, ------------------------------------------------------------------------- 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 |
Free forum by Nabble | Edit this page |