Problem compiling QuantLib 0.9.6 on Solaris 10 on Sun Studio 12 compiler

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem compiling QuantLib 0.9.6 on Solaris 10 on Sun Studio 12 compiler

adisabat

Dear everybody,

I'm working on Solaris 10 using SunStudio 12 compiler, I have just set up the following variables:

CXX=/opt/SUNWspro/bin/CC
CC=/opt/SUNWspro/bin/cc

I typed "make" and I got the following errors:
/**********************************************/

make[4]: Entering directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql/experimental/credit'
source='cdsoption.cpp' object='cdsoption.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ../../../config/depcomp \
        /bin/bash ../../../libtool --tag=CXX --mode=compile /opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I../../../ql  -I../../.. -I../../.. -I/usr/local/include/boost-1_36  -g -O2 -Wall -c -o cdsoption.lo cdsoption.cpp
 /opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I../../../ql -I../../.. -I../../.. -I/usr/local/include/boost-1_36 -g -O2 -Wall -c cdsoption.cpp  -KPIC -DPIC -o .libs/cdsoption.o
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
"../../../ql/default.hpp", line 32: Error: Identifier expected instead of "1".
"../../../ql/default.hpp", line 42: Error: AnySeniority is not defined.
"../../../ql/issuer.hpp", line 57: Error: AnySeniority is not defined.
3 Error(s) detected.
make[4]: *** [cdsoption.lo] Error 1
make[4]: Leaving directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql/experimental/credit'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql/experimental'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql'
make: *** [all-recursive] Error 1


Kindly could you help me to solve this issue?

thanks in advance
Antonio





-------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling QuantLib 0.9.6 on Solaris 10 on Sun Studio 12 compiler

Luigi Ballabio
On Tue, 2008-09-16 at 12:52 +0200, a_disabatino wrote:
> I'm working on Solaris 10 using SunStudio 12 compiler [...]
>
> I typed "make" and I got the following errors:
> /**********************************************/
>
> "../../../ql/default.hpp", line 32: Error: Identifier expected instead of "1".
> "../../../ql/default.hpp", line 42: Error: AnySeniority is not defined.
> "../../../ql/issuer.hpp", line 57: Error: AnySeniority is not defined.

It's a problem with Solaris that we didn't find until after release. For
a fix, see
<http://sourceforge.net/mailarchive/message.php?msg_id=5a0513100808290157x24781e72w4fd5851ee651086f%40mail.gmail.com>.

Luigi


--

A child of five would understand this. Send someone to fetch a child of
five.
-- Groucho Marx



-------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: Problem compiling QuantLib 0.9.6 on Solaris 10 on Sun Studio 12 compiler

moloko
In reply to this post by adisabat
Hi I had exactly the same problem on the same environment.
After chenger the hpp file, I still have problems:

"/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

a_disabatino wrote
Dear everybody,

I'm working on Solaris 10 using SunStudio 12 compiler, I have just set up the following variables:

CXX=/opt/SUNWspro/bin/CC
CC=/opt/SUNWspro/bin/cc

I typed "make" and I got the following errors:
/**********************************************/

make[4]: Entering directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql/experimental/credit'
source='cdsoption.cpp' object='cdsoption.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ../../../config/depcomp \
        /bin/bash ../../../libtool --tag=CXX --mode=compile /opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I../../../ql  -I../../.. -I../../.. -I/usr/local/include/boost-1_36  -g -O2 -Wall -c -o cdsoption.lo cdsoption.cpp
 /opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I../../../ql -I../../.. -I../../.. -I/usr/local/include/boost-1_36 -g -O2 -Wall -c cdsoption.cpp  -KPIC -DPIC -o .libs/cdsoption.o
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
"../../../ql/default.hpp", line 32: Error: Identifier expected instead of "1".
"../../../ql/default.hpp", line 42: Error: AnySeniority is not defined.
"../../../ql/issuer.hpp", line 57: Error: AnySeniority is not defined.
3 Error(s) detected.
make[4]: *** [cdsoption.lo] Error 1
make[4]: Leaving directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql/experimental/credit'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql/experimental'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/software/reuters/ksp/ql/QuantLib-0.9.6/ql'
make: *** [all-recursive] Error 1


Kindly could you help me to solve this issue?

thanks in advance
Antonio





-------------------------------------------------------------------------
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
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users