[ quantlib-Bugs-1292749 ] error building quantlib-python

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-1292749 ] error building quantlib-python

SourceForge.net
Bugs item #1292749, was opened at 2005-09-16 22:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1292749&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Tommy (mesilliac)
Assigned to: Nobody/Anonymous (nobody)
Summary: error building quantlib-python

Initial Comment:
I'm trying to install quantlib-python on a Gentoo Linux
system. Quantlib itself seems to have built and
installed fine, but when I try to build quantlib-python
(with "python setup.py build" for example) it fails
after outputting the following:

"""

running build
running build_py
creating build
creating build/lib.linux-i686-2.4
creating build/lib.linux-i686-2.4/QuantLib
copying QuantLib/__init__.py ->
build/lib.linux-i686-2.4/QuantLib
copying QuantLib/QuantLib.py ->
build/lib.linux-i686-2.4/QuantLib
running build_ext
building 'QuantLib._QuantLib' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/QuantLib
g++ -fno-strict-aliasing -DNDEBUG -O2 -march=i686
-fomit-frame-pointer -fPIC -I/usr/include
-I/usr/include/python2.4 -c QuantLib/quantlib_wrap.cpp
-o build/temp.linux-i686-2.4/QuantLib/quantlib_wrap.o
-Wno-unused -O2 -march=i686 -fomit-frame-pointer
In file included from
/usr/include/ql/PricingEngines/Barrier/all.hpp:24,
                 from
/usr/include/ql/PricingEngines/all.hpp:31,
                 from /usr/include/ql/quantlib.hpp:41,
                 from QuantLib/quantlib_wrap.cpp:1878:
/usr/include/ql/PricingEngines/Barrier/analyticbarrierengine.hpp:56:
error: declaration
   does not declare anything
/usr/include/ql/PricingEngines/Barrier/analyticbarrierengine.hpp:56:
error: syntax
   error before `__asm__'
error: command 'g++' failed with exit status 1

"""

line 56 of analyticbarrierengine.hpp is:

        Real barrier() const;

and I can't see anything obviously wrong with it
(although I'm no good with C or C++).

I'm using python 2.4 and gcc 3.3.6.

it does this with both quantlib-0.3.9 and
quantlib-0.3.10 (haven't tried any other versions).



----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1292749&group_id=12740