Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

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

Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

Luigi Ballabio
On 1/18/06, [hidden email] <[hidden email]> wrote:
>  I am getting below error while compiling the Quantlib 0.3.11 on solaris 5.8
> Unix box with CC .

Hmm. From the log, what happens is that including <cmath> does not
cause M_PI to be defined, so ./configure tells QuantLib to define it
itself. Afterwards, some other header is included which defines M_PI,
causing it to be defined twice.

Why this happens is beyond me. Maybe you can track the files that get
included and see why the configure test fails?

As a workaround, you can try and manually edit ql/config.hpp after
./configure creates it so that M_PI is not defined. I'm not sure what
will happen, but you can give it a try.

Later,
    Luigi


Reply | Threaded
Open this post in threaded view
|

Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

Xavier.Abulker

Hi Luigi
thank you for your answer.
I've tried to manually removed M_PI in the config.hpp with:
/* pi */
//#define M_PI 3.141592653589793238462643383280

and the error is still the same:

source='parcoupon.cpp' object='parcoupon.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../config/depcomp \
/bin/bash ../../libtool --tag=CXX --mode=compile CC -DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../.. -I/usr/local/include/boost-1_33_1/ -I/export/home/xavier/studio/SUNWspro/include -L/usr/local/lib -L/export/home/xavier/studio/SUNWspro/include   -g -O2 -Wall -c -o parcoupon.lo parcoupon.cpp
 CC -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../.. -I/usr/local/include/boost-1_33_1/ -I/export/home/xavier/studio/SUNWspro/include -L/usr/local/lib -L/export/home/xavier/studio/SUNWspro/include -g -O2 -Wall -c parcoupon.cpp  -KPIC -DPIC -o .libs/parcoupon.o
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise
 >> Assertion:   (../lnk/init.cc, line 1032)
    while processing ../../ql/history.hpp at line 135.
*** Error code 1

I'm wondering if I correclty setup the environement variables.
Whta I use is:
export CPPFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/include -L/usr/local/lib –L/export/home/xavier/studio/SUNWspro/include '

export LDFLAGS=’-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/lib –I/usr/local/lib’

Is it how I should setup these variables?
Thank you
Xavier


Luigi Ballabio <[hidden email]>

18/01/2006 14:56

To
"[hidden email]" <[hidden email]>
cc
[hidden email]
Subject
Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8







On 1/18/06, [hidden email] <[hidden email]> wrote:
>  I am getting below error while compiling the Quantlib 0.3.11 on solaris 5.8
> Unix box with CC .

Hmm. From the log, what happens is that including <cmath> does not
cause M_PI to be defined, so ./configure tells QuantLib to define it
itself. Afterwards, some other header is included which defines M_PI,
causing it to be defined twice.

Why this happens is beyond me. Maybe you can track the files that get
included and see why the configure test fails?

As a workaround, you can try and manually edit ql/config.hpp after
./configure creates it so that M_PI is not defined. I'm not sure what
will happen, but you can give it a try.

Later,
   Luigi
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La FIMAT et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
    ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.  
Neither FIMAT nor any of its subsidiaries or affiliates
shall be liable for the message if altered,
changed or falsified.


*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
La FIMAT et ses filiales declinent toute responsabilite 
au titre de ce message s'il a ete altere, deforme ou falsifie.
     ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither FIMAT nor any of its subsidiaries or affiliates 
shall be liable for the message if altered, 
changed or falsified. 
Reply | Threaded
Open this post in threaded view
|

Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

Luigi Ballabio
On 1/18/06, [hidden email] <[hidden email]> wrote:
> the error is still the same:
>
>  >> Assertion:   (../lnk/init.cc, line 1032)
>     while processing ../../ql/history.hpp at line 135.
> *** Error code 1

Hmm, I see. It seems that I followed a red herring.
As to the above error, it seems more like an assertion error in the
linker. It's given something it doesn't like, and just croaks on you
instead of issuing an error.


> I'm wondering if I correclty setup the environement variables.
> Whta I use is:
> export CPPFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/include -L/usr/local/lib –L/export/home/xavier/studio/SUNWspro/include '
>
> export LDFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/lib –I/usr/local/lib'

Yes, I think so.

Later,
    Luigi
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

Xavier.Abulker

Hello Luigi,
I've re-installed a complete Sun solaris 5.9 machine with SunStudio 11 and the error during the Quantlib 0.3.11 is the same:
 >> Assertion:   (../lnk/init.cc, line 1032)
    while processing ../../ql/history.hpp at line 135.
*** Error code 1

It looks this is a Boost error already reported but I don't find any patch for sun5.9.
I'd like to know if I can disable boost when I compile Quantlib with
 --disable-FEATURE
Do you know how I can do that?

Best Regards

Xavier



Luigi Ballabio <[hidden email]>
Sent by: [hidden email]

18/01/2006 16:01

To
"[hidden email]" <[hidden email]>
cc
[hidden email]
Subject
[Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8





On 1/18/06, [hidden email] <[hidden email]> wrote:
> the error is still the same:
>
>  >> Assertion:   (../lnk/init.cc, line 1032)
>     while processing ../../ql/history.hpp at line 135.
> *** Error code 1

Hmm, I see. It seems that I followed a red herring.
As to the above error, it seems more like an assertion error in the
linker. It's given something it doesn't like, and just croaks on you
instead of issuing an error.


> I'm wondering if I correclty setup the environement variables.
> Whta I use is:
> export CPPFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/include -L/usr/local/lib –L/export/home/xavier/studio/SUNWspro/include '
>
> export LDFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/lib –I/usr/local/lib'

Yes, I think so.

Later,
   Luigi
áŠÄ…ë^™¨¥ŠË)¢{(­ç[É*eºyÀèÊ‹ ­êm†º.‚hø¥zÇ讚ènW¦±+h¤:0žZvØ^ì$ìyªÜ…éàŠw­…«fjG¬±æ«r§ƒ*.®Z ~)^±«jÌš²Ë«~)ධy°ÎXÒÎ4-CJ†Ûiÿû•«.±ö¥‘¨'zßìzW&vYä’'uÓ~7Ù¸Û}8ó§Z·]µë¹©í–&î±ê왨¥Šx%ŠËP¹©í–&î±êì–+-²Ê.­ÇŸ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Šwèþ«šžÙbnë®
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La FIMAT et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
    ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.  
Neither FIMAT nor any of its subsidiaries or affiliates
shall be liable for the message if altered,
changed or falsified.

*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
La FIMAT et ses filiales declinent toute responsabilite 
au titre de ce message s'il a ete altere, deforme ou falsifie.
     ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither FIMAT nor any of its subsidiaries or affiliates 
shall be liable for the message if altered, 
changed or falsified. 
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

Luigi Ballabio
On 1/30/06, [hidden email] <[hidden email]> wrote:
>  >> Assertion:   (../lnk/init.cc, line 1032)
>     while processing ../../ql/history.hpp at line 135.
> *** Error code 1
>
> It looks this is a Boost error already reported but I don't find any patch for sun5.9.
> I'd like to know if I can disable boost when I compile Quantlib with
>  --disable-FEATURE
> Do you know how I can do that?

No, I'm sorry---Boost is required. What did you find about the
reported Boost error? What is it exactly?

Later,
    Luigi


> Best Regards
>
> Xavier
>
>
>
>
>  Luigi Ballabio <[hidden email]>
> Sent by: [hidden email]
>
> 18/01/2006 16:01
>
> To "[hidden email]" <[hidden email]>
>
> cc [hidden email]
>
> Subject [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8
>
>
>
>
>
>
>
>
> On 1/18/06, [hidden email] <[hidden email]> wrote:
>  > the error is still the same:
>  >
>  >  >> Assertion:   (../lnk/init.cc, line 1032)
>  >     while processing ../../ql/history.hpp at line 135.
>  > *** Error code 1
>
>  Hmm, I see. It seems that I followed a red herring.
>  As to the above error, it seems more like an assertion error in the
>  linker. It's given something it doesn't like, and just croaks on you
>  instead of issuing an error.
>
>
>  > I'm wondering if I correclty setup the environement variables.
>  > Whta I use is:
>  > export CPPFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/include -L/usr/local/lib –L/export/home/xavier/studio/SUNWspro/include '
>  >
>  > export LDFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/lib –I/usr/local/lib'
>
>  Yes, I think so.
>
>  Later,
>      Luigi
>  áŠÄ…ë^™¨¥ŠË)¢{(­ç[É*eºyÀèÊ‹ ­êm†º.‚hø¥zÇè(r)šènW¦±+h¤:0žZvØ^ì$ìyªÜ…éàŠw­…«fjG¬±æ«r§ƒ*.(r)Z ~)^±«jÌš²Ë«~)ධy°ÎXÒÎ4-CJ†Ûiÿû•«.±ö¥'¨'zßìzW&vYä''uÓ~7Ù¸Û}8ó§Z·]µë¹(c)í–&î±ê왨¥Šx%ŠËP¹(c)í–&î±êì–+-²Ê.­ÇŸ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Šwèþ«šžÙbnë(r)
>
>  *************************************************************************
>  Ce message et toutes les pieces jointes (ci-apres le "message") sont
>  confidentiels et etablis a l'intention exclusive de ses destinataires.
>  Toute utilisation ou diffusion non autorisee est interdite.
>  Tout message electronique est susceptible d'alteration.
>  La FIMAT et ses filiales declinent toute responsabilite
>  au titre de ce message s'il a ete altere, deforme ou falsifie.
>       ********
>  This message and any attachments (the "message") are confidential and
>  intended solely for the addressees.
>  Any unauthorised use or dissemination is prohibited.
>  E-mails are susceptible to alteration.
>  Neither FIMAT nor any of its subsidiaries or affiliates
>  shall be liable for the message if altered,
>  changed or falsified.
>
>
>
> *************************************************************************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> confidentiels et etablis a l'intention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration.
> La FIMAT et ses filiales declinent toute responsabilite
> au titre de ce message s'il a ete altere, deforme ou falsifie.
>      ********
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration.
> Neither FIMAT nor any of its subsidiaries or affiliates
> shall be liable for the message if altered,
> changed or falsified.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

Xavier.Abulker

Hello Luigi,

OK  I have to see with the mailing list Boost if someone can help.

Searching "Assertion:   (../lnk/init.cc, line 1032)" with google gives me 2 interesting links:

1) there is a patch for Sun Studio 10 solving the error:
6313010 BOOST: Assertion:   (../lnk/init.cc, line 1032)

(see http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&type=collections&max=50&language=en&queryKey5=117830&toDocument=yes)

2) Someone has reported the same error on Boost:
sunpro-C++-action
../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/release/operations_posix_windows.o

>> Assertion: (../lnk/init.cc, line 1032)

    

(see http://lists.boost.org/boost-testing/2005/11/2309.php)


Regards
Xavier Abulker



Luigi Ballabio <[hidden email]>
Sent by: [hidden email]

30/01/2006 11:17

To
"[hidden email]" <[hidden email]>
cc
[hidden email], [hidden email]
Subject
Re: [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8





On 1/30/06, [hidden email] <[hidden email]> wrote:
>  >> Assertion:   (../lnk/init.cc, line 1032)
>     while processing ../../ql/history.hpp at line 135.
> *** Error code 1
>
> It looks this is a Boost error already reported but I don't find any patch for sun5.9.
> I'd like to know if I can disable boost when I compile Quantlib with
>  --disable-FEATURE
> Do you know how I can do that?

No, I'm sorry---Boost is required. What did you find about the
reported Boost error? What is it exactly?

Later,
   Luigi


> Best Regards
>
> Xavier
>
>
>
>
>  Luigi Ballabio <[hidden email]>
> Sent by: [hidden email]
>
> 18/01/2006 16:01
>
> To "[hidden email]" <[hidden email]>
>
> cc [hidden email]
>
> Subject [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8
>
>
>
>
>
>
>
>
> On 1/18/06, [hidden email] <[hidden email]> wrote:
>  > the error is still the same:
>  >
>  >  >> Assertion:   (../lnk/init.cc, line 1032)
>  >     while processing ../../ql/history.hpp at line 135.
>  > *** Error code 1
>
>  Hmm, I see. It seems that I followed a red herring.
>  As to the above error, it seems more like an assertion error in the
>  linker. It's given something it doesn't like, and just croaks on you
>  instead of issuing an error.
>
>
>  > I'm wondering if I correclty setup the environement variables.
>  > Whta I use is:
>  > export CPPFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/include -L/usr/local/lib –L/export/home/xavier/studio/SUNWspro/include '
>  >
>  > export LDFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/lib –I/usr/local/lib'
>
>  Yes, I think so.
>
>  Later,
>      Luigi
>  áŠÄ…ë^™¨¥ŠË)¢{(­ç[É*eºyÀèÊ‹ ­êm†º.‚hø¥zÇè(r)šènW¦±+h¤:0žZvØ^ì$ìyªÜ…éàŠw­…«fjG¬±æ«r§ƒ*.(r)Z ~)^±«jÌš²Ë«~)ධy°ÎXÒÎ4-CJ†Ûiÿû•«.±ö¥'¨'zßìzW&vYä''uÓ~7Ù¸Û}8ó§Z·]µë¹(c)í–&î±ê왨¥Šx%ŠËP¹(c)í–&î±êì–+-²Ê.­ÇŸ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Šwèþ«šžÙbnë(r)
>
>  *************************************************************************
>  Ce message et toutes les pieces jointes (ci-apres le "message") sont
>  confidentiels et etablis a l'intention exclusive de ses destinataires.
>  Toute utilisation ou diffusion non autorisee est interdite.
>  Tout message electronique est susceptible d'alteration.
>  La FIMAT et ses filiales declinent toute responsabilite
>  au titre de ce message s'il a ete altere, deforme ou falsifie.
>       ********
>  This message and any attachments (the "message") are confidential and
>  intended solely for the addressees.
>  Any unauthorised use or dissemination is prohibited.
>  E-mails are susceptible to alteration.
>  Neither FIMAT nor any of its subsidiaries or affiliates
>  shall be liable for the message if altered,
>  changed or falsified.
>
>
>
> *************************************************************************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> confidentiels et etablis a l'intention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration.
> La FIMAT et ses filiales declinent toute responsabilite
> au titre de ce message s'il a ete altere, deforme ou falsifie.
>      ********
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration.
> Neither FIMAT nor any of its subsidiaries or affiliates
> shall be liable for the message if altered,
> changed or falsified.
>
>
N?HY޵隊X???'???u???[???????
ަ?k??!???W?~?鮆?zk??C?                 塧m??Þ?@^ǚ??^??z?Z?f?z?j?!?x2??å??ë??É?,??? a{? ?,?H?Ô4?m?????Z??jY?w??ǥrge?I"w]7?}??ݷӏ:u?u?^?? ???bn??ɚ?X??X?? ???bn???b??,??Üy?+??Þ?m??ÿ?+-??.?ǟ?????+-??b?ا~?깩?&?ê?
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La FIMAT et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
    ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.  
Neither FIMAT nor any of its subsidiaries or affiliates
shall be liable for the message if altered,
changed or falsified.

*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
La FIMAT et ses filiales declinent toute responsabilite 
au titre de ce message s'il a ete altere, deforme ou falsifie.
     ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither FIMAT nor any of its subsidiaries or affiliates 
shall be liable for the message if altered, 
changed or falsified. 
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

Xavier.Abulker
In reply to this post by Luigi Ballabio

Hi Luigi,

My problem is getting better, the Boost User group gave me this good advice:
The following SUN patches are required:
 in http://developers.sun.com/prodtech/cc/downloads/patches/ss11_patches.html

Sun Studio 11 Compilers Compilers Back-End
Sun Studio 11 Compilers C++


Maybe you could add this in the "required" section of the Quantlib installation.

Another small problem,
There is something in the ql/Math/generalstatistics.hpp that CC doesn't like:

"../../ql/Math/generalstatistics.hpp", line 129: Error: Cannot use std::pair<QuantLib::Null<double>, int> to initialize std::pair<double, unsigned>.
"../../ql/Math/generalstatistics.hpp", line 129: Error: Cannot use std::pair<QuantLib::Null<double>, int> to initialize std::pair<double, unsigned>.
"../../ql/Math/generalstatistics.hpp", line 129: Error: Cannot use std::pair<QuantLib::Null<double>, int> to initialize std::pair<double, unsigned>.
"../../ql/Math/generalstatistics.hpp", line 129: Error: Cannot use std::pair<QuantLib::Null<double>, int> to initialize std::pair<double, unsigned>.
4 Error(s) and 1 Warning(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `generalstatistics.lo'

I changed this part of the code:
if (N == 0)
                return std::make_pair(Null<Real>(),0);
            else
                return std::make_pair(num/den,N);

I removed the return std::make_pair(Null<Real>(),0); and it works well.
I know this is not clean but I don't have enough time to do better.
Thank you for your help
Xavier



Xavier ABULKER/BAN/PAR/FIMAT

30/01/2006 11:37

To
Luigi Ballabio <[hidden email]>
cc
[hidden email], [hidden email]
Subject
Re: [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8<a href=Notes:///C1256BC2003A1421/DABA975B9FB113EB852564B5001283EA/416F3E19768196B6C12571060038B244>Link




Hello Luigi,

OK  I have to see with the mailing list Boost if someone can help.

Searching "Assertion:   (../lnk/init.cc, line 1032)" with google gives me 2 interesting links:

1) there is a patch for Sun Studio 10 solving the error:
6313010 BOOST: Assertion:   (../lnk/init.cc, line 1032)

(see http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&type=collections&max=50&language=en&queryKey5=117830&toDocument=yes)

2) Someone has reported the same error on Boost:
sunpro-C++-action
../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/release/operations_posix_windows.o

>> Assertion: (../lnk/init.cc, line 1032)

    

(see http://lists.boost.org/boost-testing/2005/11/2309.php)


Regards
Xavier Abulker



Luigi Ballabio <[hidden email]>
Sent by: [hidden email]

30/01/2006 11:17

To
"[hidden email]" <[hidden email]>
cc
[hidden email], [hidden email]
Subject
Re: [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8





On 1/30/06, [hidden email] <[hidden email]> wrote:
>  >> Assertion:   (../lnk/init.cc, line 1032)
>     while processing ../../ql/history.hpp at line 135.
> *** Error code 1
>
> It looks this is a Boost error already reported but I don't find any patch for sun5.9.
> I'd like to know if I can disable boost when I compile Quantlib with
>  --disable-FEATURE
> Do you know how I can do that?

No, I'm sorry---Boost is required. What did you find about the
reported Boost error? What is it exactly?

Later,
   Luigi


> Best Regards
>
> Xavier
>
>
>
>
>  Luigi Ballabio <[hidden email]>
> Sent by: [hidden email]
>
> 18/01/2006 16:01
>
> To "[hidden email]" <[hidden email]>
>
> cc [hidden email]
>
> Subject [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8
>
>
>
>
>
>
>
>
> On 1/18/06, [hidden email] <[hidden email]> wrote:
>  > the error is still the same:
>  >
>  >  >> Assertion:   (../lnk/init.cc, line 1032)
>  >     while processing ../../ql/history.hpp at line 135.
>  > *** Error code 1
>
>  Hmm, I see. It seems that I followed a red herring.
>  As to the above error, it seems more like an assertion error in the
>  linker. It's given something it doesn't like, and just croaks on you
>  instead of issuing an error.
>
>
>  > I'm wondering if I correclty setup the environement variables.
>  > Whta I use is:
>  > export CPPFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/include -L/usr/local/lib –L/export/home/xavier/studio/SUNWspro/include '
>  >
>  > export LDFLAGS='-I/usr/local/include/boost-1_33_1/ -I/ /export/home/xavier/studio/SUNWspro/lib –I/usr/local/lib'
>
>  Yes, I think so.
>
>  Later,
>      Luigi
>  áŠÄ…ë^™¨¥ŠË)¢{(­ç[É*eºyÀèÊ‹ ­êm†º.‚hø¥zÇè(r)šènW¦±+h¤:0žZvØ^ì$ìyªÜ…éàŠw­…«fjG¬±æ«r§ƒ*.(r)Z ~)^±«jÌš²Ë«~)ධy°ÎXÒÎ4-CJ†Ûiÿû•«.±ö¥'¨'zßìzW&vYä''uÓ~7Ù¸Û}8ó§Z·]µë¹(c)í–&î±ê왨¥Šx%ŠËP¹(c)í–&î±êì–+-²Ê.­ÇŸ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Šwèþ«šžÙbnë(r)
>
>  *************************************************************************
>  Ce message et toutes les pieces jointes (ci-apres le "message") sont
>  confidentiels et etablis a l'intention exclusive de ses destinataires.
>  Toute utilisation ou diffusion non autorisee est interdite.
>  Tout message electronique est susceptible d'alteration.
>  La FIMAT et ses filiales declinent toute responsabilite
>  au titre de ce message s'il a ete altere, deforme ou falsifie.
>       ********
>  This message and any attachments (the "message") are confidential and
>  intended solely for the addressees.
>  Any unauthorised use or dissemination is prohibited.
>  E-mails are susceptible to alteration.
>  Neither FIMAT nor any of its subsidiaries or affiliates
>  shall be liable for the message if altered,
>  changed or falsified.
>
>
>
> *************************************************************************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> confidentiels et etablis a l'intention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration.
> La FIMAT et ses filiales declinent toute responsabilite
> au titre de ce message s'il a ete altere, deforme ou falsifie.
>      ********
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration.
> Neither FIMAT nor any of its subsidiaries or affiliates
> shall be liable for the message if altered,
> changed or falsified.
>
>
N?HY޵隊X???'???u???[???????
ަ?k??!???W?~?鮆?zk??C?                 塧m??Þ?@^ǚ??^??z?Z?f?z?j?!?x2??å??ë??É?,??? a{? ?,?H?Ô4?m?????Z??jY?w??ǥrge?I"w]7?}??ݷӏ:u?u?^?? ???bn??ɚ?X??X?? ???bn???b??,??Üy?+??Þ?m??ÿ?+-??.?ǟ?????+-??b?ا~?깩?&?ê?
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La FIMAT et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
    ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.  
Neither FIMAT nor any of its subsidiaries or affiliates
shall be liable for the message if altered,
changed or falsified.


*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
La FIMAT et ses filiales declinent toute responsabilite 
au titre de ce message s'il a ete altere, deforme ou falsifie.
     ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither FIMAT nor any of its subsidiaries or affiliates 
shall be liable for the message if altered, 
changed or falsified. 
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem Compiling QuantLib 0.3.11 on Solar is 5.8[POSSIBLE SPAM]

Ian.Mitchell
We had the same problem and had to change the first branch to this.

                return std::make_pair(Null<Real>(),0U);

We have had compiler dependant problems before with std::make_pair and
implicit type conversions.




Ian Mitchell
SunGard Adaptiv
3 Milton Park Estate, Abingdon, Oxfordshire, OX14 4RN, UK

mailto:[hidden email]
+44 (0) 1235 444883 (Direct)
+44 (0) 1235 444800 (General)
+44 (0) 1235 444888 (Fax)


http://www.risk.sungard.com




[hidden email]
Sent by: [hidden email]
01/02/2006 08:02

To
[hidden email]
cc
[hidden email],
[hidden email]
Subject
Re: [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solar     is
5.8[POSSIBLE SPAM]







Hi Luigi,

My problem is getting better, the Boost User group gave me this good
advice:
The following SUN patches are required:
 in
http://developers.sun.com/prodtech/cc/downloads/patches/ss11_patches.html 


Sun Studio 11 Compilers
120760
Compilers Back-End
Sun Studio 11 Compilers
121017
C++


Maybe you could add this in the "required" section of the Quantlib
installation.

Another small problem,
There is something in the ql/Math/generalstatistics.hpp that CC doesn't
like:

"../../ql/Math/generalstatistics.hpp", line 129: Error: Cannot use
std::pair<QuantLib::Null<double>, int> to initialize std::pair<double,
unsigned>.
"../../ql/Math/generalstatistics.hpp", line 129: Error: Cannot use
std::pair<QuantLib::Null<double>, int> to initialize std::pair<double,
unsigned>.
"../../ql/Math/generalstatistics.hpp", line 129: Error: Cannot use
std::pair<QuantLib::Null<double>, int> to initialize std::pair<double,
unsigned>.
"../../ql/Math/generalstatistics.hpp", line 129: Error: Cannot use
std::pair<QuantLib::Null<double>, int> to initialize std::pair<double,
unsigned>.
4 Error(s) and 1 Warning(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `generalstatistics.lo'

I changed this part of the code:
if (N == 0)
                return std::make_pair(Null<Real>(),0);
            else
                return std::make_pair(num/den,N);

I removed the return std::make_pair(Null<Real>(),0); and it works well.
I know this is not clean but I don't have enough time to do better.
Thank you for your help
Xavier



Xavier ABULKER/BAN/PAR/FIMAT
30/01/2006 11:37


To
Luigi Ballabio <[hidden email]>
cc
[hidden email],
[hidden email]
Subject
Re: [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8
Link







Hello Luigi,

OK  I have to see with the mailing list Boost if someone can help.

Searching "Assertion:   (../lnk/init.cc, line 1032)" with google gives me
2 interesting links:

1) there is a patch for Sun Studio 10 solving the error:
6313010 BOOST: Assertion:   (../lnk/init.cc, line 1032)

(see
http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&type=collections&max=50&language=en&queryKey5=117830&toDocument=yes
)

2) Someone has reported the same error on Boost:
sunpro-C++-action
../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/release/operations_posix_windows.o

>> Assertion: (../lnk/init.cc, line 1032)
     
(see http://lists.boost.org/boost-testing/2005/11/2309.php)


Regards
Xavier Abulker



Luigi Ballabio <[hidden email]>
Sent by: [hidden email]
30/01/2006 11:17


To
"[hidden email]" <[hidden email]>
cc
[hidden email],
[hidden email]
Subject
Re: [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8








On 1/30/06, [hidden email] <[hidden email]> wrote:
>  >> Assertion:   (../lnk/init.cc, line 1032)
>     while processing ../../ql/history.hpp at line 135.
> *** Error code 1
>
> It looks this is a Boost error already reported but I don't find any
patch for sun5.9.
> I'd like to know if I can disable boost when I compile Quantlib with
>  --disable-FEATURE
> Do you know how I can do that?

No, I'm sorry---Boost is required. What did you find about the
reported Boost error? What is it exactly?

Later,
   Luigi


> Best Regards
>
> Xavier
>
>
>
>
>  Luigi Ballabio <[hidden email]>
> Sent by: [hidden email]
>
> 18/01/2006 16:01
>
> To "[hidden email]" <[hidden email]>
>
> cc [hidden email]
>
> Subject [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on
Solaris 5.8

>
>
>
>
>
>
>
>
> On 1/18/06, [hidden email] <[hidden email]> wrote:
>  > the error is still the same:
>  >
>  >  >> Assertion:   (../lnk/init.cc, line 1032)
>  >     while processing ../../ql/history.hpp at line 135.
>  > *** Error code 1
>
>  Hmm, I see. It seems that I followed a red herring.
>  As to the above error, it seems more like an assertion error in the
>  linker. It's given something it doesn't like, and just croaks on you
>  instead of issuing an error.
>
>
>  > I'm wondering if I correclty setup the environement variables.
>  > Whta I use is:
>  > export CPPFLAGS='-I/usr/local/include/boost-1_33_1/ -I/
/export/home/xavier/studio/SUNWspro/include -L/usr/local/lib
–L/export/home/xavier/studio/SUNWspro/include '
>  >
>  > export LDFLAGS='-I/usr/local/include/boost-1_33_1/ -I/
/export/home/xavier/studio/SUNWspro/lib –I/usr/local/lib'
>
>  Yes, I think so.
>
>  Later,
>      Luigi
>  áŠÄ…ë^™¨¥ŠË)¢{(­ç[É*eºyÀèÊ‹
­êm†º.‚hø¥zÇè(r)šènW¦±+h¤:0žZvØ^ì$ìyªÜ…éàŠw­…«fjG¬±æ«r§ƒ*.(r)Z
~)^±«jÌš²Ë«~)ධy°ÎXÒÎ4-CJ†Ûiÿû•«.±ö¥'¨'zßìzW&vYä''uÓ~7Ù¸Û}8ó§Z·]µë¹(c)í–&î±ê왨¥Šx%ŠËP¹(c)í–&î±êì–+-²Ê.­ÇŸ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Šwèþ«šžÙbnë(r)
>
>
*************************************************************************

>  Ce message et toutes les pieces jointes (ci-apres le "message") sont
>  confidentiels et etablis a l'intention exclusive de ses destinataires.
>  Toute utilisation ou diffusion non autorisee est interdite.
>  Tout message electronique est susceptible d'alteration.
>  La FIMAT et ses filiales declinent toute responsabilite
>  au titre de ce message s'il a ete altere, deforme ou falsifie.
>       ********
>  This message and any attachments (the "message") are confidential and
>  intended solely for the addressees.
>  Any unauthorised use or dissemination is prohibited.
>  E-mails are susceptible to alteration.
>  Neither FIMAT nor any of its subsidiaries or affiliates
>  shall be liable for the message if altered,
>  changed or falsified.
>
>
>
>
*************************************************************************

> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> confidentiels et etablis a l'intention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration.
> La FIMAT et ses filiales declinent toute responsabilite
> au titre de ce message s'il a ete altere, deforme ou falsifie.
>      ********
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration.
> Neither FIMAT nor any of its subsidiaries or affiliates
> shall be liable for the message if altered,
> changed or falsified.
>
>
N?HY޵隊X???'???u???[???????
ަ?k??!???W?~?鮆?zk??C?                 塧m??Þ?@^ǚ
??^??z?Z?f?z?j?!?x2??å??ë??É?,??? a{? ?,?H?Ô4?m?????Z??jY?w??ǥrge?I"w]7?}??ݷӏ:u?u?^?? ???bn??ɚ?X??X?? ???bn???b??,??Üy?+??Þ?m??ÿ?+-??.?ǟ?????+-??b?ا~?
깩?&?ê?
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La FIMAT et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
    ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither FIMAT nor any of its subsidiaries or affiliates
shall be liable for the message if altered,
changed or falsified.


*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La FIMAT et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
     ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither FIMAT nor any of its subsidiaries or affiliates
shall be liable for the message if altered,
changed or falsified.



Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8

Luigi Ballabio
In reply to this post by Xavier.Abulker

Xavier,
    it should work now---I have fixed (hopefully) the make_pair thing in CVS, and I've added the patch reference to the FAQ.

Thanks,
    Luigi