OpenNMT / CTranslate

Lightweight C++ translator for OpenNMT Torch models (deprecated)
https://opennmt.net/
MIT License
79 stars 50 forks source link

Non-zero code:2 on build #51

Open FMCumhaill opened 5 years ago

FMCumhaill commented 5 years ago

I'm hitting the following error while building inside a docker container while running Ubuntu 18.04 LTS.

This was running fine a couple of days ago, has there been any update to anything recently?

Scanning dependencies of target onmt [ 45%] Building CXX object CMakeFiles/onmt.dir/src/th/Env.cc.o [ 47%] Building CXX object CMakeFiles/onmt.dir/src/th/Obj.cc.o [ 50%] Building CXX object CMakeFiles/onmt.dir/src/th/Utils.cc.o [ 52%] Building CXX object CMakeFiles/onmt.dir/src/Dictionary.cc.o [ 55%] Building CXX object CMakeFiles/onmt.dir/src/SubDict.cc.o [ 57%] Building CXX object CMakeFiles/onmt.dir/src/PhraseTable.cc.o [ 60%] Building CXX object CMakeFiles/onmt.dir/src/Profiler.cc.o [ 62%] Building CXX object CMakeFiles/onmt.dir/src/ITranslator.cc.o [ 65%] Building CXX object CMakeFiles/onmt.dir/src/TranslatorFactory.cc.o CMakeFiles/onmt.dir/build.make:254: recipe for target 'CMakeFiles/onmt.dir/src/TranslatorFactory.cc.o' failed CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/onmt.dir/all' failed Makefile:127: recipe for target 'all' failed c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. make[2]: *** [CMakeFiles/onmt.dir/src/TranslatorFactory.cc.o] Error 4 make[1]: *** [CMakeFiles/onmt.dir/all] Error 2 make: *** [all] Error 2 The command '/bin/sh -c make' returned a non-zero code: 2

guillaumekln commented 5 years ago

has there been any update to anything recently?

No.

Most likely you are running out of memory, can you check?