簡體   English   中英

構建Quantlib-SWIG python時出錯

[英]Error building Quantlib-SWIG python

[idf@mail QuantLib-SWIG-1.7]$ make -C Python
make: Entering directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
make  all-am
make[1]: Entering directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
CXXFLAGS="-g -O2 -fno-strict-aliasing -Wno-unused -Wno-uninitialized -Wno-sign-compare -Wno-write-strings" /home/idf/anaconda2/bin/python setup.py build
running build
running build_py
running build_ext
building 'QuantLib._QuantLib' extension
g++ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/idf/anaconda2/include/python2.7 -I/usr/local/include -c QuantLib/quantlib_wrap.cpp -o build/temp.linux-x86_64-2.7/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 \u2018-Wstrict-prototypes\u2019 is valid for C/ObjC but not for C++ [enabled by default]
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
error: command 'g++' failed with exit status 4
make[1]: *** [.build-stamp] Error 1
make[1]: Leaving directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
make: *** [all] Error 2
make: Leaving directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
[idf@mail QuantLib-SWIG-1.7]$

編譯器放棄了一個內部錯誤,即它發現自己處於無法繼續的狀態。 原則上,包裝程序可能會觸發編譯器中的錯誤,但這不太可能。 它很有可能用盡了內存。 包裝器非常龐大,並且您要在編譯標志中添加相當激進的優化級別( -O2 )。 我嘗試將級別降低到-O0-O1 ,以查看是否可以減輕編譯器的負擔。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM