Login  Register

Re: Quantlib 1.8 Python SWIG on Linux/Python 3.5.1

Posted by alihassani on May 20, 2016; 4:14am
URL: http://quantlib.414.s1.nabble.com/Quantlib-1-8-Python-SWIG-on-Linux-Python-3-5-1-tp17463p17464.html

If I just run ./configure and make -C Python I get:

 

creating build/temp.linux-x86_64-3.5/QuantLib
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Ws
trict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -I/
usr/include/python3.5m -I/usr/include -c QuantLib/quantlib_wrap.cpp -o build/temp.linux-x8
6_64-3.5/QuantLib/quantlib_wrap.o -Wno-unused -g -O2 -fno-strict-aliasing -Wno-unused -Wno
-uninitialized -Wno-sign-compare -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not fo
r C++
{standard input}: Assembler messages:
{standard input}:1133226: Warning: end of file not at end of a line; newline inserted
{standard input}:1134159: Error: invalid operands (*UND* and .gcc_except_table sections) f
or `-'
{standard input}:1134162: Error: invalid operands (*UND* and .gcc_except_table sections) f
or `-'
gcc: internal compiler error: Killed (program cc1plus)

On Friday, May 20, 2016 12:57:13 AM EDT Ali Hassani wrote:

Has anyone got this up and running? After running

python setup.py wrap
successfully

 

I get the following error when running:

python setup.py build


running build
running build_py
copying QuantLib/QuantLib.py -> build/lib.linux-x86_64-3.5/QuantLib
running build_ext
building 'QuantLib._QuantLib' extension
g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Ws
trict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -I/
usr/include/python3.5m -I/usr/include -c QuantLib/quantlib_wrap.cpp -o build/temp.linux-x8
6_64-3.5/QuantLib/quantlib_wrap.o -Wno-unused
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
QuantLib/quantlib_wrap.cpp: In function ‘std::vector<boost::shared_ptr<QuantLib::BondHelpe
r> > convert_bond_helpers(const std::vector<boost::shared_ptr<QuantLib::BootstrapHelper<Qu
antLib::YieldTermStructure> > >&)
’:
QuantLib/quantlib_wrap.cpp:14709:20: warning: comparison between signed and unsigned integ
er expressions [
-Wsign-compare]
    for (int i=0;
i<helpers.size(); ++i)
                  
~^~~~~~~~~~~~~~~
{standard input}: Assembler messages:
{standard input}:2372708: Warning: end of file not at end of a line; newline inserted
{standard input}:2374015: Error: unknown pseudo-op: `.lb'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
error: command 'g++' failed with exit status 4





------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users