redpony / cdec

Decoder, aligner, and model optimizer for statistical machine translation and other structured prediction models based on (mostly) context-free formalisms
http://cdec-decoder.org/
Apache License 2.0
183 stars 77 forks source link

make[2]: *** [decoder/CMakeFiles/libcdec.dir/ff_conll.cc.o] Error 4 #87

Open Jorigorn opened 8 years ago

Jorigorn commented 8 years ago

/home/admin/cdec/decoder/ff_wordalign.cc:448:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < triggers.size(); ++i) { ^ In file included from /usr/include/c++/4.8/cassert:43:0, from /home/admin/cdec/decoder/../utils/filelib.h:4, from /home/admin/cdec/decoder/ff_wordalign.cc:29: /home/admin/cdec/decoder/ffwordalign.cc: In member function ‘virtual void BlunsomSynchronousParseHack::TraversalFeaturesImpl(const SentenceMetadata&, const Edge&, const std::vector<const void*>&, FastSparseVector, FastSparseVector, void) const’: /home/admin/cdec/decoder/ff_wordalign.cc:478:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(cursent < refs_.size()); ^ /home/admin/cdec/decoder/ff_wordalign.cc:481:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < curref->size(); ++i) { ^ /home/admin/cdec/decoder/ff_wordalign.cc:483:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = i; j < curref->size(); ++j) { ^ /home/admin/cdec/decoder/ff_wordalign.cc:490:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < ant_states.size(); ++i) { ^ /home/admin/cdec/decoder/ff_wordalign.cc:498:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < ant_states.size(); ++i) { ^ /home/admin/cdec/decoder/ffwordalign.cc: In member function ‘virtual void IdentityCycleDetector::TraversalFeaturesImpl(const SentenceMetadata&, const Edge&, const std::vector<const void>&, FastSparseVector, FastSparseVector, void_) const’: /home/admin/cdec/decoder/ff_wordalign.cc:555:75: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] out_is_identity = bigenough[word] = TD::Convert(word).size() >= lengthmin; ^ /home/admin/cdec/decoder/ffwordalign.cc: In member function ‘virtual void InputIndicator::TraversalFeaturesImpl(const SentenceMetadata&, const Edge&, const std::vector<const void>&, FastSparseVector, FastSparseVector, void_) const’: /home/admin/cdec/decoder/ff_wordalign.cc:604:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < fw.size(); ++i) { ^ /home/admin/cdec/decoder/ff_wordalign.cc: In constructor ‘WordPairFeatures::WordPairFeatures(const string&)’: /home/admin/cdec/decoder/ff_wordalign.cc:626:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(start < buf.size() && buf[start] == ' ') ++start; ^ /home/admin/cdec/decoder/ff_wordalign.cc:628:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(end < buf.size() && buf[end] != ' ') ++end; ^ /home/admin/cdec/decoder/ff_wordalign.cc:652:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(start < buf.size() && buf[start] == ' ') ++start; ^ /home/admin/cdec/decoder/ff_wordalign.cc:654:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(end < buf.size() && buf[end] != ' ') ++end; ^ /home/admin/cdec/decoder/ff_wordalign.cc:663:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(end < buf.size() && buf[end] != ' ') ++end; ^ /home/admin/cdec/decoder/ff_wordalign.cc:671:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(end < buf.size() && buf[end] != ' ') ++end; ^ /home/admin/cdec/decoder/ff_wordalign.cc:679:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(end < buf.size() && buf[end] != ' ') ++end; ^ /home/admin/cdec/decoder/ff_wordalign.cc:688:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(start < buf.size()) { ^ /home/admin/cdec/decoder/ff_wordalign.cc:690:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(end < buf.size() && buf[end] != '=' && buf[end] != ' ') ++end; ^ /home/admin/cdec/decoder/ff_wordalign.cc:691:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (end == buf.size() || buf[end] != '=') { cerr << "4 Format error: " << buf << endl; abort(); } ^ /home/admin/cdec/decoder/ff_wordalign.cc:694:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(start < buf.size() && buf[start] == ' ') ++start; ^ /home/admin/cdec/decoder/ff_wordalign.cc:696:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(end < buf.size() && buf[end] != ' ') ++end; ^ /home/admin/cdec/decoder/ffwordalign.cc:698:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (end < buf.size()) buf[end] = 0; ^ c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-4.8/README.Bugs for instructions. make[2]: ** [decoder/CMakeFiles/libcdec.dir/ff_conll.cc.o] Error 4 make[2]: * Waiting for unfinished jobs.... ^Cmake[2]: * [decoder/CMakeFiles/libcdec.dir/cdec_ff.cc.o] Interrupt make[2]: * [decoder/CMakeFiles/libcdec.dir/ff_context.cc.o] Interrupt make[2]: * [decoder/CMakeFiles/libcdec.dir/ff_wordalign.cc.o] Interrupt make[1]: * [decoder/CMakeFiles/libcdec.dir/all] Interrupt make: * [all] Interrupt

system info: root@admin-virtual-machine:/home/admin/cdec# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1)