2017-01-02 6 views
0
[[email protected] 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' 
[[email protected] QuantLib-SWIG-1.7]$ 

答えて

1

コンパイラは内部エラーをあきらめました。つまり、それが継続できない状況にありました。原則として、ラッパーはコンパイラーでバグを引き起こしたかもしれませんが、それは起こりそうもありません。メモリが足りなくなった可能性が高くなります。コンパイルフラグにかなり積極的な最適化レベル(-O2)を追加しています。私は-O0または-O1にレベルを下げてコンパイラの負荷を軽減するかどうかを試してみます。

+0

ありがとうございました。サーバー上のメモリをアップグレードして、それが役立つかどうかを確認しようとしています。 – Ivan

+0

それが問題でした。 – Ivan