Trying to build bindings

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

Trying to build bindings

Michael Cordingley
Hi, I'm trying to build the python bindings for QuantLib in Gentoo
Linux, but I'm running into some issue that fails the build.  I'm
assuming that I can ignore the warnings, but something seems to be
killing the compiler after them.  I don't know what information to
include along with this, so please let me know what information I'm
missing that would be useful to figuring this out.

This is part of an effort to build a package to install the bindings
for other users of Gentoo, so I'll probably be back again later with
questions about Java and Ruby. :)

Thanks!

localhost QuantLib-SWIG-1.1 # ./configure
...
localhost QuantLib-SWIG-1.1 # cd Python
localhost Python # python setup.py build
running build
running build_py
running build_ext
building 'QuantLib._QuantLib' extension
i686-pc-linux-gnu-g++ -pthread -fPIC -I/usr/include/python2.7
-I/usr/include -c QuantLib/quantlib_wrap.cpp -o
build/temp.linux-i686-2.7/QuantLib/quantlib_wrap.o -Wno-unused
QuantLib/quantlib_wrap.cpp: In member function 'QuantLib::Real
UnaryFunction::operator()(QuantLib::Real) const':
QuantLib/quantlib_wrap.cpp:6325:67: warning: deprecated conversion
from string constant to 'char*'
QuantLib/quantlib_wrap.cpp: In member function 'QuantLib::Real
UnaryFunction::derivative(QuantLib::Real) const':
QuantLib/quantlib_wrap.cpp:6333:61: warning: deprecated conversion
from string constant to 'char*'
QuantLib/quantlib_wrap.cpp:6333:61: warning: deprecated conversion
from string constant to 'char*'
QuantLib/quantlib_wrap.cpp: In member function 'QuantLib::Real
BinaryFunction::operator()(QuantLib::Real, QuantLib::Real) const':
QuantLib/quantlib_wrap.cpp:6365:70: warning: deprecated conversion
from string constant to 'char*'
i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)

------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity
while improving strategic productivity.  Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build bindings

Luigi Ballabio
Hello,

On Thu, Dec 15, 2011 at 9:00 PM, Michael Cordingley
<[hidden email]> wrote:
> Hi, I'm trying to build the python bindings for QuantLib in Gentoo
> Linux, but I'm running into some issue that fails the build.  I'm
> assuming that I can ignore the warnings,

That's correct.

> but something seems to be
> killing the compiler after them.  I don't know what information to
> include along with this, so please let me know what information I'm
> missing that would be useful to figuring this out.

Hard to say... It might be memory, as the bindings are quite large;
may you have a look at memory usage while the compiler works?  Or it
might be something that triggers a bug in the compiler, but that's
probably less likely.  Unfortunately there's not much to go by when
the compiler only writes "Internal error: Killed".

Luigi

> Thanks!
>
> localhost QuantLib-SWIG-1.1 # ./configure
> ...
> localhost QuantLib-SWIG-1.1 # cd Python
> localhost Python # python setup.py build
> running build
> running build_py
> running build_ext
> building 'QuantLib._QuantLib' extension
> [...]
> i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Trying to build bindings

Michael Cordingley
Hey, thanks for that info Luigi.  I discovered that it works just fine
on my amd64 system, so I'm going to chalk it up to either a bug or
memory issue.  The x86 doesn't have much memory to it.  I'll try to
see if I can monitor that before the next failure to see if it's the
cause.  The only issue that appears to be remaining is that it
installs to site-packages just fine, but going into Python and typing
"import QuantLib" gives an unknown module error.  When I get a chance,
I'm going to check my path variables to make sure that it should be
loading, unless this is a common problem with a known solution.

Thanks!

On Thu, Dec 29, 2011 at 5:46 AM, Luigi Ballabio
<[hidden email]> wrote:

> Hello,
>
> On Thu, Dec 15, 2011 at 9:00 PM, Michael Cordingley
> <[hidden email]> wrote:
>> Hi, I'm trying to build the python bindings for QuantLib in Gentoo
>> Linux, but I'm running into some issue that fails the build.  I'm
>> assuming that I can ignore the warnings,
>
> That's correct.
>
>> but something seems to be
>> killing the compiler after them.  I don't know what information to
>> include along with this, so please let me know what information I'm
>> missing that would be useful to figuring this out.
>
> Hard to say... It might be memory, as the bindings are quite large;
> may you have a look at memory usage while the compiler works?  Or it
> might be something that triggers a bug in the compiler, but that's
> probably less likely.  Unfortunately there's not much to go by when
> the compiler only writes "Internal error: Killed".
>
> Luigi
>
>> Thanks!
>>
>> localhost QuantLib-SWIG-1.1 # ./configure
>> ...
>> localhost QuantLib-SWIG-1.1 # cd Python
>> localhost Python # python setup.py build
>> running build
>> running build_py
>> running build_ext
>> building 'QuantLib._QuantLib' extension
>> [...]
>> i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)



--
Michael Cordingley
740.707.7809

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users