Floating Rate Bond dumps core on AIX 5.3

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

Floating Rate Bond dumps core on AIX 5.3

shail
Hello

Can anybody help me regarding QuantLib .
I am using Quantlib 0.9.0 and trying to built a wrapper code for Floating Rate Bond.
It's working fine on WINDOWS but when i build it on AIX 5.3,it dumps core

The code is as follows

struct CommonVars {

    // common data

    Calendar calendar;

    Date today;

    Real faceAmount;

      DayCounter dayCounter;

 

    // cleanup

    SavedSettings backup;

 

    // setup

    CommonVars() {

        calendar = TARGET();

        today = calendar.adjust(Date::todaysDate());

          faceAmount = 100.0;

            dayCounter = Actual360();

    }

};

 

 

int main(int, char* [])

{

      try {

           

            boost::timer timer;

           

            // "Testing floating-rate bond prices against cached values..."

   

           

            CommonVars vars;

            Date today(22,November,2004);

            Settings::instance().evaluationDate() = today;

            Natural settlementDays = 1;

 

            Handle<YieldTermStructure> riskFreeRate(boost::shared_ptr<YieldTermStructure>(

new FlatForward(today,0.025,Actual360())));

            Handle<YieldTermStructure> discountCurve(boost::shared_ptr<YieldTermStructure>(                                                                    new FlatForward(today,0.03,Actual360())));

 

            boost::shared_ptr<IborIndex> index(new USDLibor(6*Months, riskFreeRate));

         

            Natural fixingDays = 1;

            Real tolerance = 1.0e-6;

           

            Volatility capletVolatility = 0.00022;

            Real capVal = 0.03;

            Real floorVal = 0.02;

           

            // plain

            Schedule sch(Date(30,November,2004),

                               Date(30,November,2008),

                               Period(Semiannual),

                               UnitedStates(UnitedStates::GovernmentBond),

                               ModifiedFollowing, ModifiedFollowing,

                               DateGeneration::Backward, false);

 

            FloatingRateBond bond1(settlementDays, vars.faceAmount, sch,

                                             index, ActualActual(ActualActual::ISMA),

                                             ModifiedFollowing, fixingDays,

                                             std::vector<Real>(), std::vector<Spread>(),

                                             std::vector<Rate>(), std::vector<Rate>(),

                                             false,100.0, Date(30,November,2004));

 

            boost::shared_ptr<PricingEngine> bondEngine(new DiscountingBondEngine(riskFreeRate));

            bond1.setPricingEngine(bondEngine);

 

            Real pri1 = bond1.NPV();

            cout<<"\n Floating Rate NPV = "<< pri1 <<"\n";

}

catch (std::exception& e)

{

        std::cout << e.what() << std::endl;

        return 1;

}

catch (....)

{

        std::cout << "unknown error" << std::endl;

        return 1;

}

}


Can anyone tell me what can be the reason for it???




Unlimited freedom, unlimited storage. Get it now
-------------------------------------------------------------------------
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: Floating Rate Bond dumps core on AIX 5.3

Luigi Ballabio
On Wed, 2008-09-10 at 21:08 +0530, shailesh kumar wrote:
> I am using Quantlib 0.9.0 and trying to built a wrapper code for
> Floating Rate Bond.
> It's working fine on WINDOWS but when i build it on AIX 5.3,it dumps
> core
>
> The code is as follows [...]
>
> Can anyone tell me what can be the reason for it???


Hmm. I see no obvious problem in your code.  Does it work with QuantLib
0.9.6?

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: Floating Rate Bond dumps core on AIX 5.3

quanter
Hi Luigi

you're lucky you have a working quantlib in AIX5.3 environment to run it in. I cant get my combination to compile. Can you tell me which compiler you used with QuantLib-0.9.0 ? and where you got it from , i.e. IBM toolbox, IBM or linux xlC ? and have you tried QuantLib-0.9.6 ?
also the version of boost you used with this ?
Where do you get the Montecarlo headers from that should be under ql ?
I have AIX 5.3 ML7 are there any special filesets that need to be installed ?

Thanks

Ian


Luigi Ballabio wrote
On Wed, 2008-09-10 at 21:08 +0530, shailesh kumar wrote:
> I am using Quantlib 0.9.0 and trying to built a wrapper code for
> Floating Rate Bond.
> It's working fine on WINDOWS but when i build it on AIX 5.3,it dumps
> core
>
> The code is as follows [...]
>
> Can anyone tell me what can be the reason for it???


Hmm. I see no obvious problem in your code.  Does it work with QuantLib
0.9.6?

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
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Floating Rate Bond dumps core on AIX 5.3

Luigi Ballabio
On Tue, 2008-10-21 at 01:22 -0700, quanter wrote:
> you're lucky you have a working quantlib in AIX5.3 environment to run it in.

Actually, I don't.  Sorry if I gave that impression somehow, but I don't
use AIX.

Maybe someone else can step in and answer the following?

> I cant get my combination to compile. Can you tell me which compiler you
> used with QuantLib-0.9.0 ? and where you got it from , i.e. IBM toolbox, IBM
> or linux xlC ? and have you tried QuantLib-0.9.6 ?
> also the version of boost you used with this ?

Or if not, what compilation errors do you have?

Luigi


--

Hanlon's Razor:
Never attribute to malice that which is adequately explained
by stupidity.



-------------------------------------------------------------------------
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: Floating Rate Bond dumps core on AIX 5.3

Ian.Bellinfantie
Hi  Luigi

The make of boost fails for a lot of modules as seen below. I'm using
IBM's linux toolkit version of gcc version 4.2.0. the extract below is
the start and this keeps going for a while with the failures, and the
consistent message

internal compiler error: Segmentation fault

So I've only pasted an extract.


root@dataqdev /usr/apps/quant >cd boost_1_36_0
root@dataqdev /usr/apps/quant/boost_1_36_0 >
root@dataqdev /usr/apps/quant/boost_1_36_0 >
root@dataqdev /usr/apps/quant/boost_1_36_0 >
root@dataqdev /usr/apps/quant/boost_1_36_0 >make
./tools/jam/src/bin.aix/bjam  --user-config=user-config.jam
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to
the
note: directories containing the Expat headers and libraries,
respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
...patience...
...patience...
...patience...
...found 5269 targets...
...updating 723 targets...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/acosh.o
libs/math/build/../src/tr1/acosh.cpp:16: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1
-DNDEBUG  -I"  ." -c -o
"bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/acosh.o"
"libs/math/build/../src/tr1/acosh.cpp"

...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/acosh.o...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/asinh.o
libs/math/build/../src/tr1/asinh.cpp:16: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1
-DNDEBUG  -I"  ." -c -o
"bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/asinh.o"
"libs/math/build/../src/tr1/asinh.cpp"

...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/asinh.o...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/atanh.o
libs/math/build/../src/tr1/atanh.cpp:16: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1
-DNDEBUG  -I"  ." -c -o
"bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/atanh.o"
"libs/math/build/../src/tr1/atanh.cpp"

...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/atanh.o...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/cbrt.o
libs/math/build/../src/tr1/cbrt.cpp:16: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1
-DNDEBUG  -I"  ." -c -o
"bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/cbrt.o"
"libs/math/build/../src/tr1/cbrt.cpp"

...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/cbrt.o...
root@dataqdev /usr/apps/quant/boost_1_36_0 >


Then you might have a few lines of successes


...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/expm1f.o...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/fmaxf.o
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/fminf.o
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/fpclassifyf.o
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/hypotf.o
libs/math/build/../src/tr1/hypotf.cpp:20: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The make continues to the end building only some of boost.

If I ignore these errors, assuming it built only what was compatible for
AIX, and go on to build Quantlib, I get a good make upto conundrumpricer
then it core dumps and stops. I even tried going back a level to
QuantLib-0.9.0, which failed at the same point. Have also tried
exporting CC=xlC or CXX=xlC but boost just uses the g++ compiler.


root@dataqdev /usr/apps/quant/QuantLib-0.9.6 >make
Making all in config
Target "all" is up to date.
Making all in ql
        make  all-recursive
Making all in cashflows
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36   -g -O2 -Wall -MT averagebmacoupon.lo
-MD -MP -MF ".deps/averagebmacoupon.Tpo" -c -o averagebmacoupon.lo
averagebmacoupon.cpp;  then mv -f ".deps/averagebmacoupon.Tpo"
".deps/averagebmacoupon.Plo"; else rm -f ".deps/averagebmacoupon.Tpo";
exit 1; fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT averagebmacoupon.lo -MD
-MP -MF .deps/averagebmacoupon.Tpo -c averagebmacoupon.cpp  -DPIC -o
.libs/averagebmacoupon.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36   -g -O2 -Wall -MT capflooredcoupon.lo
-MD -MP -MF ".deps/capflooredcoupon.Tpo" -c -o capflooredcoupon.lo
capflooredcoupon.cpp;  then mv -f ".deps/capflooredcoupon.Tpo"
".deps/capflooredcoupon.Plo"; else rm -f ".deps/capflooredcoupon.Tpo";
exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT capflooredcoupon.lo -MD
-MP -MF .deps/capflooredcoupon.Tpo -c capflooredcoupon.cpp  -DPIC -o
.libs/capflooredcoupon.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36   -g -O2 -Wall -MT cashflows.lo -MD -MP
-MF ".deps/cashflows.Tpo" -c -o cashflows.lo cashflows.cpp;  then mv -f
".deps/cashflows.Tpo" ".deps/cashflows.Plo"; else rm -f
".deps/cashflows.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT cashflows.lo -MD -MP
-MF .deps/cashflows.Tpo -c cashflows.cpp  -DPIC -o .libs/cashflows.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36   -g -O2 -Wall -MT cashflowvectors.lo
-MD -MP -MF ".deps/cashflowvectors.Tpo" -c -o cashflowvectors.lo
cashflowvectors.cpp;  then mv -f ".deps/cashflowvectors.Tpo"
".deps/cashflowvectors.Plo"; else rm -f ".deps/cashflowvectors.Tpo";
exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT cashflowvectors.lo -MD
-MP -MF .deps/cashflowvectors.Tpo -c cashflowvectors.cpp  -DPIC -o
.libs/cashflowvectors.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36   -g -O2 -Wall -MT cmscoupon.lo -MD -MP
-MF ".deps/cmscoupon.Tpo" -c -o cmscoupon.lo cmscoupon.cpp;  then mv -f
".deps/cmscoupon.Tpo" ".deps/cmscoupon.Plo"; else rm -f
".deps/cmscoupon.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT cmscoupon.lo -MD -MP
-MF .deps/cmscoupon.Tpo -c cmscoupon.cpp  -DPIC -o .libs/cmscoupon.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36   -g -O2 -Wall -MT conundrumpricer.lo
-MD -MP -MF ".deps/conundrumpricer.Tpo" -c -o conundrumpricer.lo
conundrumpricer.cpp;  then mv -f ".deps/conundrumpricer.Tpo"
".deps/conundrumpricer.Plo"; else rm -f ".deps/conundrumpricer.Tpo";
exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT conundrumpricer.lo -MD
-MP -MF .deps/conundrumpricer.Tpo -c conundrumpricer.cpp  -DPIC -o
.libs/conundrumpricer.o
conundrumpricer.cpp:912: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.


The problem is identifying what combination of O/S , compiler and
Quantlib works with AIX. Does anyone use it on AIX ?

Thanks

Ian




-----Original Message-----
From: Luigi Ballabio [mailto:[hidden email]]
Sent: 21 October 2008 10:20
To: quanter
Cc: [hidden email]
Subject: Re: [Quantlib-users] Floating Rate Bond dumps core on AIX 5.3

On Tue, 2008-10-21 at 01:22 -0700, quanter wrote:
> you're lucky you have a working quantlib in AIX5.3 environment to run
it in.

Actually, I don't.  Sorry if I gave that impression somehow, but I don't
use AIX.

Maybe someone else can step in and answer the following?

> I cant get my combination to compile. Can you tell me which compiler
> you used with QuantLib-0.9.0 ? and where you got it from , i.e. IBM
> toolbox, IBM or linux xlC ? and have you tried QuantLib-0.9.6 ?
> also the version of boost you used with this ?

Or if not, what compilation errors do you have?

Luigi


--

Hanlon's Razor:
Never attribute to malice that which is adequately explained by
stupidity.



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

Euler Hermes is the world's premier credit insurer, offering solutions for the management of trade receivables, from credit insurance and financing of trade receivables to bonding and guarantees. Euler Hermes is a subsidiary of AGF and a member of Allianz. www.eulerhermes.com
                -------------------------------------
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, notify the sender immediately and destroy this e-mail. Any unauthorised use, copying, disclosure or distribution of the contents of this e-mail is strictly forbidden and may be unlawful.
Read our full e-mail disclaimer statement and monitoring policy
(http://www.eulerhermes.com/group/en/disclaim) before taking any action based on the contents of this e-mail.




-------------------------------------------------------------------------
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: Floating Rate Bond dumps core on AIX 5.3

quanter
In reply to this post by shail
Hi  Luigi

The make of boost fails for a lot of modules as seen below. I'm using
IBM's linux toolkit version of gcc version 4.2.0. the extract below is
the start and this keeps going for a while with the failures, and the
consistent message

internal compiler error: Segmentation fault

So I've only pasted an extract.


root@dataqdev /usr/apps/quant >cd boost_1_36_0
root@dataqdev /usr/apps/quant/boost_1_36_0 >
root@dataqdev /usr/apps/quant/boost_1_36_0 >
root@dataqdev /usr/apps/quant/boost_1_36_0 >
root@dataqdev /usr/apps/quant/boost_1_36_0 >make
./tools/jam/src/bin.aix/bjam  --user-config=user-config.jam
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to
the
note: directories containing the Expat headers and libraries,
respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
...patience...
...patience...
...patience...
...found 5269 targets...
...updating 723 targets...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/acosh.o
libs/math/build/../src/tr1/acosh.cpp:16: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1
-DNDEBUG  -I"  ." -c -o
"bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/acosh.o"
"libs/math/build/../src/tr1/acosh.cpp"

...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/acosh.o...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/asinh.o
libs/math/build/../src/tr1/asinh.cpp:16: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1
-DNDEBUG  -I"  ." -c -o
"bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/asinh.o"
"libs/math/build/../src/tr1/asinh.cpp"

...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/asinh.o...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/atanh.o
libs/math/build/../src/tr1/atanh.cpp:16: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1
-DNDEBUG  -I"  ." -c -o
"bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/atanh.o"
"libs/math/build/../src/tr1/atanh.cpp"

...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/atanh.o...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/cbrt.o
libs/math/build/../src/tr1/cbrt.cpp:16: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-fPIC -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1
-DNDEBUG  -I"  ." -c -o
"bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/cbrt.o"
"libs/math/build/../src/tr1/cbrt.cpp"

...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/cbrt.o...
root@dataqdev /usr/apps/quant/boost_1_36_0 >


Then you might have a few lines of successes


...failed gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/expm1f.o...
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/fmaxf.o
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/fminf.o
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/fpclassifyf.o
gcc.compile.c++
bin.v2/libs/math/build/gcc-4.2.0/release/threading-multi/hypotf.o
libs/math/build/../src/tr1/hypotf.cpp:20: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The make continues to the end building only some of boost.

If I ignore these errors, assuming it built only what was compatible for
AIX, and go on to build Quantlib, I get a good make upto conundrumpricer
then it core dumps and stops. I even tried going back a level to
QuantLib-0.9.0, which failed at the same point. Have also tried
exporting CC=xlC or CXX=xlC but boost just uses the g++ compiler.


root@dataqdev /usr/apps/quant/QuantLib-0.9.6 >make
Making all in config
Target "all" is up to date.
Making all in ql
        make  all-recursive
Making all in cashflows
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36  -g -O2 -Wall -MT averagebmacoupon.lo
-MD -MP -MF ".deps/averagebmacoupon.Tpo" -c -o averagebmacoupon.lo
averagebmacoupon.cpp;  then mv -f ".deps/averagebmacoupon.Tpo"
".deps/averagebmacoupon.Plo"; else rm -f ".deps/averagebmacoupon.Tpo";
exit 1; fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT averagebmacoupon.lo -MD
-MP -MF .deps/averagebmacoupon.Tpo -c averagebmacoupon.cpp  -DPIC -o
.libs/averagebmacoupon.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36  -g -O2 -Wall -MT capflooredcoupon.lo
-MD -MP -MF ".deps/capflooredcoupon.Tpo" -c -o capflooredcoupon.lo
capflooredcoupon.cpp;  then mv -f ".deps/capflooredcoupon.Tpo"
".deps/capflooredcoupon.Plo"; else rm -f ".deps/capflooredcoupon.Tpo";
exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT capflooredcoupon.lo -MD
-MP -MF .deps/capflooredcoupon.Tpo -c capflooredcoupon.cpp  -DPIC -o
.libs/capflooredcoupon.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36  -g -O2 -Wall -MT cashflows.lo -MD -MP
-MF ".deps/cashflows.Tpo" -c -o cashflows.lo cashflows.cpp;  then mv -f
".deps/cashflows.Tpo" ".deps/cashflows.Plo"; else rm -f
".deps/cashflows.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT cashflows.lo -MD -MP
-MF .deps/cashflows.Tpo -c cashflows.cpp  -DPIC -o .libs/cashflows.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36  -g -O2 -Wall -MT cashflowvectors.lo
-MD -MP -MF ".deps/cashflowvectors.Tpo" -c -o cashflowvectors.lo
cashflowvectors.cpp;  then mv -f ".deps/cashflowvectors.Tpo"
".deps/cashflowvectors.Plo"; else rm -f ".deps/cashflowvectors.Tpo";
exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT cashflowvectors.lo -MD
-MP -MF .deps/cashflowvectors.Tpo -c cashflowvectors.cpp  -DPIC -o
.libs/cashflowvectors.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36  -g -O2 -Wall -MT cmscoupon.lo -MD -MP
-MF ".deps/cmscoupon.Tpo" -c -o cmscoupon.lo cmscoupon.cpp;  then mv -f
".deps/cmscoupon.Tpo" ".deps/cmscoupon.Plo"; else rm -f
".deps/cmscoupon.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT cmscoupon.lo -MD -MP
-MF .deps/cmscoupon.Tpo -c cmscoupon.cpp  -DPIC -o .libs/cmscoupon.o
        if /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H  -I. -I. -I../../ql  -I../.. -I../..
-I/usr/local/include/boost-1_36  -g -O2 -Wall -MT conundrumpricer.lo
-MD -MP -MF ".deps/conundrumpricer.Tpo" -c -o conundrumpricer.lo
conundrumpricer.cpp;  then mv -f ".deps/conundrumpricer.Tpo"
".deps/conundrumpricer.Plo"; else rm -f ".deps/conundrumpricer.Tpo";
exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../..
-I/usr/local/include/boost-1_36 -g -O2 -Wall -MT conundrumpricer.lo -MD
-MP -MF .deps/conundrumpricer.Tpo -c conundrumpricer.cpp  -DPIC -o
.libs/conundrumpricer.o
conundrumpricer.cpp:912: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.


The problem is identifying what combination of O/S , compiler and
Quantlib works with AIX. Does anyone use it on AIX ?

Thanks

Ian




-----Original Message-----
From: Luigi Ballabio [mailto:[hidden email]]
Sent: 21 October 2008 10:20
To: quanter
Cc: [hidden email]
Subject: Re: [Quantlib-users] Floating Rate Bond dumps core on AIX 5.3

On Tue, 2008-10-21 at 01:22 -0700, quanter wrote:
> you're lucky you have a working quantlib in AIX5.3 environment to run
it in.

Actually, I don't.  Sorry if I gave that impression somehow, but I don't
use AIX.

Maybe someone else can step in and answer the following?

> I cant get my combination to compile. Can you tell me which compiler
> you used with QuantLib-0.9.0 ? and where you got it from , i.e. IBM
> toolbox, IBM or linux xlC ? and have you tried QuantLib-0.9.6 ?
> also the version of boost you used with this ?

Or if not, what compilation errors do you have?

Luigi


--

Hanlon's Razor:
Never attribute to malice that which is adequately explained by
stupidity.



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

Euler Hermes is the world's premier credit insurer, offering solutions for the management of trade receivables, from credit insurance and financing of trade receivables to bonding and guarantees. Euler Hermes is a subsidiary of AGF and a member of Allianz. www.eulerhermes.com
                -------------------------------------
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, notify the sender immediately and destroy this e-mail. Any unauthorised use, copying, disclosure or distribution of the contents of this e-mail is strictly forbidden and may be unlawful.
Read our full e-mail disclaimer statement and monitoring policy
(http://www.eulerhermes.com/group/en/disclaim) before taking any action based on the contents of this e-mail.

Send instant messages to your online friends http://uk.messenger.yahoo.com 

-------------------------------------------------------------------------
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: Floating Rate Bond dumps core on AIX 5.3

quanter
In reply to this post by shail






Hi  Luigi

I think the problem in the 64bit kernel that the compiler is running in.

In 32-bit mode, the pointers p and q are pointing to the same memory location.
However, the pointer q is likely pointing to an invalid address in 64-bit mode, and
could result in a segmentation fault when q is dereferenced.


     

-------------------------------------------------------------------------
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: Floating Rate Bond dumps core on AIX 5.3

Luigi Ballabio
In reply to this post by quanter
On Tue, 2008-10-21 at 10:40 +0000, Ian Bellinfantie wrote:
> The make of boost fails for a lot of modules as seen below. I'm using
> IBM's linux toolkit version of gcc version 4.2.0. the extract below is
> the start and this keeps going for a while with the failures, and the
> consistent message
>
> internal compiler error: Segmentation fault

Hmm---Looks like some kind of compiler bug.  Terrible to diagnose, too.
You might try excluding the conundrumpricer.hpp and cpp files from the
build (you'll have to edit ql/cashflows/Makefile.am for that.)  You'll
lose that functionality, but hopefully the rest of the library might
compile.

Luigi


--

Newton's Law of Gravitation:
What goes up must come down. But don't expect it to come down
where you can find it. Murphy's Law applies to Newton's.



-------------------------------------------------------------------------
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: Floating Rate Bond dumps core on AIX 5.3

Ian.Bellinfantie
 
Going to progress with windows Luigi, will skip AIX for now. Too many
problems with the compiler, which I think is because I have a 64bit
kernel and the memory addressing is out of place for the compiler.

Thanks

Ian



-----Original Message-----
From: Luigi Ballabio [mailto:[hidden email]]
Sent: 21 October 2008 16:32
To: Ian Bellinfantie
Cc: [hidden email]
Subject: Re: [Quantlib-users] Floating Rate Bond dumps core on AIX 5.3

On Tue, 2008-10-21 at 10:40 +0000, Ian Bellinfantie wrote:
> The make of boost fails for a lot of modules as seen below. I'm using
> IBM's linux toolkit version of gcc version 4.2.0. the extract below is

> the start and this keeps going for a while with the failures, and the
> consistent message
>
> internal compiler error: Segmentation fault

Hmm---Looks like some kind of compiler bug.  Terrible to diagnose, too.
You might try excluding the conundrumpricer.hpp and cpp files from the
build (you'll have to edit ql/cashflows/Makefile.am for that.)  You'll
lose that functionality, but hopefully the rest of the library might
compile.

Luigi


--

Newton's Law of Gravitation:
What goes up must come down. But don't expect it to come down where you
can find it. Murphy's Law applies to Newton's.



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

Euler Hermes is the world's premier credit insurer, offering solutions for the management of trade receivables, from credit insurance and financing of trade receivables to bonding and guarantees. Euler Hermes is a subsidiary of AGF and a member of Allianz. www.eulerhermes.com
                -------------------------------------
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, notify the sender immediately and destroy this e-mail. Any unauthorised use, copying, disclosure or distribution of the contents of this e-mail is strictly forbidden and may be unlawful.
Read our full e-mail disclaimer statement and monitoring policy
(http://www.eulerhermes.com/group/en/disclaim) before taking any action based on the contents of this e-mail.




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