Regarding Issue in compiling Quantlib-1.9.2 on Solaris Sun C++ 5.12 SunOS_sparc with Boost 1.62.0

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

Regarding Issue in compiling Quantlib-1.9.2 on Solaris Sun C++ 5.12 SunOS_sparc with Boost 1.62.0

shailesh kumar
Hi All,

As part of project i am trying to compile Quantlib-1.9.2 build on Solaris  with Boost 1.62.0 using CC: Sun C++ 5.12 SunOS_sparc 2011/11/16 and i get the below error


source='gaussianlhplossmodel.cpp' object='gaussianlhplossmodel.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../../../config/depcomp \
/bin/sh ../../../libtool  --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. -I../../../ql  -I../../.. -I../../.. -I/scratch/build/8.0.2/CAP/BOOSTPREV/include  -mt -m64 -G -features=extensions -template=no%extdef -fast -xO2 -xsafe=mem -features=rtti -library=stlport4 -features=tmplife -features=tmplrefstatic -xcode=pic32 Kpic -c -o gaussianlhplossmodel.lo gaussianlhplossmodel.cpp
libtool: compile:  CC -DHAVE_CONFIG_H -I. -I../../../ql -I../../.. -I../../.. -I/scratch/build/8.0.2/CAP/BOOSTPREV/include -mt -m64 -G -features=extensions -template=no%extdef -fast -xO2 -xsafe=mem -features=rtti -library=stlport4 -features=tmplife -features=tmplrefstatic -xcode=pic32 Kpic -c gaussianlhplossmodel.cpp  -KPIC -DPIC -o .libs/gaussianlhplossmodel.o
"../../../ql/math/array.hpp", line 602: Warning (Anachronism): Formal argument __x of type double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is being passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 609: Warning (Anachronism): Formal argument __x of type double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is being passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 616: Warning (Anachronism): Formal argument __x of type double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is being passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 623: Warning (Anachronism): Formal argument __x of type double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is being passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 630: Warning (Anachronism): Formal argument __x of type double(*)(double,double) in call to std::ptr_fun<double, double, double>(double(*)(double,double)) is being passed extern "C" double(*)(double,double).
"../../../ql/experimental/math/multidimquadrature.hpp", line 199: Error: Could not find a match for QuantLib::GaussianQuadMultidimIntegrator::operator()<QuantLib::GaussianQuadMultidimIntegrator::RetType_T>(const boost::function<double(const std::vector<double>&)>&) const.
"../../../ql/experimental/math/multidimquadrature.hpp", line 212: Error: Could not find a match for QuantLib::GaussianQuadMultidimIntegrator::integrate<QuantLib::GaussianQuadMultidimIntegrator::RetType_T>(const boost::function<double(const std::vector<double>&)>&) const.
"../../../ql/experimental/math/multidimquadrature.hpp", line 229: Error: Could not find a match for QuantLib::GaussianQuadMultidimIntegrator::integrate<QuantLib::GaussianQuadMultidimIntegrator::RetType_T>(const boost::function<QuantLib::Disposable<std::vector<double>>(const std::vector<double>&)>&) const.
"../../../ql/experimental/math/multidimquadrature.hpp", line 229: Error: QuantLib::GaussianQuadMultidimIntegrator::integrate<QuantLib::GaussianQuadMultidimIntegrator::RetType_T>(const boost::function<double(const std::vector<double>&)>&) const already had a body defined.
"../../../ql/experimental/math/latentmodel.hpp", line 125: Error: Cannot return QuantLib::Disposable<std::vector<double>> from a function that should return double.
5 Error(s) and 5 Warning(s) detected.
make[3]: *** [gaussianlhplossmodel.lo] Error 1
make[3]: Leaving directory `/scratch/build/8.0.2/CAP/LIBRARY_BUILD/QUANTLIB_LATEST/QuantLib-1.9.2/ql/experimental/credit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/scratch/build/8.0.2/CAP/LIBRARY_BUILD/QUANTLIB_LATEST/QuantLib-1.9.2/ql/experimental'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/scratch/build/8.0.2/CAP/LIBRARY_BUILD/QUANTLIB_LATEST/QuantLib-1.9.2/ql'
make: *** [all] Error 2

I ran configure file as mentioned below.
./configure --with-boost-include=/scratch/build/8.0.2/CAP/BOOSTPREV/include --with-boost-lib=/scratch/build/8.0.2/CAP/BOOSTPREV/lib


Please help me in getting this issue resolved.


Thanks & Regards
Shailesh Kumar

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Regarding Issue in compiling Quantlib-1.9.2 on Solaris Sun C++ 5.12 SunOS_sparc with Boost 1.62.0

Luigi Ballabio
For whoever is interested: Shailesh and I are working on this at <https://github.com/lballabio/QuantLib/issues/223>.



On Tue, Mar 21, 2017 at 10:01 AM shailesh kumar <[hidden email]> wrote:
Hi All,

As part of project i am trying to compile Quantlib-1.9.2 build on Solaris  with Boost 1.62.0 using CC: Sun C++ 5.12 SunOS_sparc 2011/11/16 and i get the below error


source='gaussianlhplossmodel.cpp' object='gaussianlhplossmodel.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../../../config/depcomp \
/bin/sh ../../../libtool  --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. -I../../../ql  -I../../.. -I../../.. -I/scratch/build/8.0.2/CAP/BOOSTPREV/include  -mt -m64 -G -features=extensions -template=no%extdef -fast -xO2 -xsafe=mem -features=rtti -library=stlport4 -features=tmplife -features=tmplrefstatic -xcode=pic32 Kpic -c -o gaussianlhplossmodel.lo gaussianlhplossmodel.cpp
libtool: compile:  CC -DHAVE_CONFIG_H -I. -I../../../ql -I../../.. -I../../.. -I/scratch/build/8.0.2/CAP/BOOSTPREV/include -mt -m64 -G -features=extensions -template=no%extdef -fast -xO2 -xsafe=mem -features=rtti -library=stlport4 -features=tmplife -features=tmplrefstatic -xcode=pic32 Kpic -c gaussianlhplossmodel.cpp  -KPIC -DPIC -o .libs/gaussianlhplossmodel.o
"../../../ql/math/array.hpp", line 602: Warning (Anachronism): Formal argument __x of type double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is being passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 609: Warning (Anachronism): Formal argument __x of type double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is being passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 616: Warning (Anachronism): Formal argument __x of type double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is being passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 623: Warning (Anachronism): Formal argument __x of type double(*)(double) in call to std::ptr_fun<double, double>(double(*)(double)) is being passed extern "C" double(*)(double).
"../../../ql/math/array.hpp", line 630: Warning (Anachronism): Formal argument __x of type double(*)(double,double) in call to std::ptr_fun<double, double, double>(double(*)(double,double)) is being passed extern "C" double(*)(double,double).
"../../../ql/experimental/math/multidimquadrature.hpp", line 199: Error: Could not find a match for QuantLib::GaussianQuadMultidimIntegrator::operator()<QuantLib::GaussianQuadMultidimIntegrator::RetType_T>(const boost::function<double(const std::vector<double>&)>&) const.
"../../../ql/experimental/math/multidimquadrature.hpp", line 212: Error: Could not find a match for QuantLib::GaussianQuadMultidimIntegrator::integrate<QuantLib::GaussianQuadMultidimIntegrator::RetType_T>(const boost::function<double(const std::vector<double>&)>&) const.
"../../../ql/experimental/math/multidimquadrature.hpp", line 229: Error: Could not find a match for QuantLib::GaussianQuadMultidimIntegrator::integrate<QuantLib::GaussianQuadMultidimIntegrator::RetType_T>(const boost::function<QuantLib::Disposable<std::vector<double>>(const std::vector<double>&)>&) const.
"../../../ql/experimental/math/multidimquadrature.hpp", line 229: Error: QuantLib::GaussianQuadMultidimIntegrator::integrate<QuantLib::GaussianQuadMultidimIntegrator::RetType_T>(const boost::function<double(const std::vector<double>&)>&) const already had a body defined.
"../../../ql/experimental/math/latentmodel.hpp", line 125: Error: Cannot return QuantLib::Disposable<std::vector<double>> from a function that should return double.
5 Error(s) and 5 Warning(s) detected.
make[3]: *** [gaussianlhplossmodel.lo] Error 1
make[3]: Leaving directory `/scratch/build/8.0.2/CAP/LIBRARY_BUILD/QUANTLIB_LATEST/QuantLib-1.9.2/ql/experimental/credit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/scratch/build/8.0.2/CAP/LIBRARY_BUILD/QUANTLIB_LATEST/QuantLib-1.9.2/ql/experimental'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/scratch/build/8.0.2/CAP/LIBRARY_BUILD/QUANTLIB_LATEST/QuantLib-1.9.2/ql'
make: *** [all] Error 2

I ran configure file as mentioned below.
./configure --with-boost-include=/scratch/build/8.0.2/CAP/BOOSTPREV/include --with-boost-lib=/scratch/build/8.0.2/CAP/BOOSTPREV/lib


Please help me in getting this issue resolved.


Thanks & Regards
Shailesh Kumar
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users