You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I type "sudo make -j4". the first error message appears when it finishes 84% compilation.
[ 84%] Building CXX object decoder/CMakeFiles/libcdec.dir/viterbi.cc.o In file included from /home/jjhu/Research/cdec/decoder/hg.h:24:0, from /home/jjhu/Research/cdec/decoder/tagger.cc:6: /home/jjhu/Research/cdec/decoder/../utils/small_vector.h: In member function ‘void TaggerImpl::BuildTrellis(const std::vector<int>&, Hypergraph*)’: /home/jjhu/Research/cdec/decoder/../utils/small_vector.h:109:47: warning: ‘tail.SmallVector<unsigned int, 2>::data_.SmallVector<unsigned int, 2>::StorageType::vals[1u]’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (unsigned i = 0; i < SV_MAX; ++i) data_.vals[i] = o.data_.vals[i]; ^ /home/jjhu/Research/cdec/decoder/tagger.cc:78:32: note: ‘tail.SmallVector<unsigned int, 2>::data_.SmallVector<unsigned int, 2>::StorageType::vals[1u]’ was declared here Hypergraph::TailNodeVector tail(1, forest->nodes_.size() - 1); ^ In file included from /home/jjhu/Research/cdec/decoder/hg.h:24:0, from /home/jjhu/Research/cdec/decoder/scfg_translator.cc:9: /home/jjhu/Research/cdec/decoder/../utils/small_vector.h: In member function ‘bool SCFGTranslatorImpl::RefineForest(Hypergraph*)’: /home/jjhu/Research/cdec/decoder/../utils/small_vector.h:157:80: warning: ‘tail.SmallVector<unsigned int, 2>::capacity_’ may be used uninitialized in this function [-Wmaybe-uninitialized] uint16_t new_cap = std::max(static_cast<uint16_t>(capacity_ << 1), min_size); ^ /home/jjhu/Research/cdec/decoder/scfg_translator.cc:297:38: note: ‘tail.SmallVector<unsigned int, 2>::capacity_’ was declared here Hypergraph::TailNodeVector tail; ^ Linking CXX static library liblibcdec.a [ 84%] Built target libcdec make: *** [all] Error 2
Then I try to type "sudo make -j4" again, it continues to compile the program from 84%, but stuck at 93%. Below is the error message.
libextractor.a(alignment.cc.o): In functionigzstream::~igzstream()':
/home/jjhu/Research/cdec/extractor/../utils/gzstream.h:98: undefined reference to gzstreambase::~gzstreambase()' libextractor.a(alignment.cc.o): In function~igzstream':
/home/jjhu/Research/cdec/extractor/../utils/gzstream.h:98: undefined reference to gzstreambase::~gzstreambase()' libextractor.a(alignment.cc.o): In functionReadFile::Init(std::string const&)':
/home/jjhu/Research/cdec/extractor/../utils/filelib.h:62: undefined reference to FileExists(std::string const&)' libextractor.a(alignment.cc.o): In functionigzstream':
/home/jjhu/Research/cdec/extractor/../utils/gzstream.h:102: undefined reference to gzstreambase::gzstreambase(char const*, int)' /home/jjhu/Research/cdec/extractor/../utils/gzstream.h:102: undefined reference togzstreambase::~gzstreambase()'
libextractor.a(alignment.cc.o):(.rodata._ZTI9igzstream[_ZTI9igzstream]+0x18): undefined reference to typeinfo for gzstreambase' libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x10): undefined reference totypeinfo for gzstreambase'
libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x18): undefined reference to gzstreambase::~gzstreambase()' libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x20): undefined reference togzstreambase::~gzstreambase()'
libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x38): undefined reference to typeinfo for gzstreambase' libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x40): undefined reference tovirtual thunk to gzstreambase::~gzstreambase()'
libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x48): undefined reference to virtual thunk to gzstreambase::~gzstreambase()' collect2: error: ld returned 1 exit status make[2]: *** [extractor/alignment_test] Error 1 make[1]: *** [extractor/CMakeFiles/alignment_test.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 93%] Built target kbest_cut_mira [ 93%] Built target kbest_mira In file included from /home/jjhu/Research/cdec/training/dtrain/../../decoder/sentence_metadata.h:8:0, from /home/jjhu/Research/cdec/training/dtrain/dtrain.h:18, from /home/jjhu/Research/cdec/training/dtrain/score.h:4, from /home/jjhu/Research/cdec/training/dtrain/score.cc:1: /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h: In member function ‘const cdec::DepthFirstIterator& cdec::DepthFirstIterator::operator++()’: /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h:135:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s.rhspos >= len) { ^ /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h:141:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s.rhspos < len) break; ^ /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h: In member function ‘const cdec::BreadthFirstIterator& cdec::BreadthFirstIterator::operator++()’: /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h:226:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s.rhspos >= len) { ^ Linking CXX executable dtrain [ 93%] Built target dtrain make: *** [all] Error 2
When I type "sudo make -j4". the first error message appears when it finishes 84% compilation.
[ 84%] Building CXX object decoder/CMakeFiles/libcdec.dir/viterbi.cc.o In file included from /home/jjhu/Research/cdec/decoder/hg.h:24:0, from /home/jjhu/Research/cdec/decoder/tagger.cc:6: /home/jjhu/Research/cdec/decoder/../utils/small_vector.h: In member function ‘void TaggerImpl::BuildTrellis(const std::vector<int>&, Hypergraph*)’: /home/jjhu/Research/cdec/decoder/../utils/small_vector.h:109:47: warning: ‘tail.SmallVector<unsigned int, 2>::data_.SmallVector<unsigned int, 2>::StorageType::vals[1u]’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (unsigned i = 0; i < SV_MAX; ++i) data_.vals[i] = o.data_.vals[i]; ^ /home/jjhu/Research/cdec/decoder/tagger.cc:78:32: note: ‘tail.SmallVector<unsigned int, 2>::data_.SmallVector<unsigned int, 2>::StorageType::vals[1u]’ was declared here Hypergraph::TailNodeVector tail(1, forest->nodes_.size() - 1); ^ In file included from /home/jjhu/Research/cdec/decoder/hg.h:24:0, from /home/jjhu/Research/cdec/decoder/scfg_translator.cc:9: /home/jjhu/Research/cdec/decoder/../utils/small_vector.h: In member function ‘bool SCFGTranslatorImpl::RefineForest(Hypergraph*)’: /home/jjhu/Research/cdec/decoder/../utils/small_vector.h:157:80: warning: ‘tail.SmallVector<unsigned int, 2>::capacity_’ may be used uninitialized in this function [-Wmaybe-uninitialized] uint16_t new_cap = std::max(static_cast<uint16_t>(capacity_ << 1), min_size); ^ /home/jjhu/Research/cdec/decoder/scfg_translator.cc:297:38: note: ‘tail.SmallVector<unsigned int, 2>::capacity_’ was declared here Hypergraph::TailNodeVector tail; ^ Linking CXX static library liblibcdec.a [ 84%] Built target libcdec make: *** [all] Error 2
Then I try to type "sudo make -j4" again, it continues to compile the program from 84%, but stuck at 93%. Below is the error message.
libextractor.a(alignment.cc.o): In function
igzstream::~igzstream()':/home/jjhu/Research/cdec/extractor/../utils/gzstream.h:98: undefined reference to
gzstreambase::~gzstreambase()' libextractor.a(alignment.cc.o): In function
~igzstream':/home/jjhu/Research/cdec/extractor/../utils/gzstream.h:98: undefined reference to
gzstreambase::~gzstreambase()' libextractor.a(alignment.cc.o): In function
ReadFile::Init(std::string const&)':/home/jjhu/Research/cdec/extractor/../utils/filelib.h:62: undefined reference to
FileExists(std::string const&)' libextractor.a(alignment.cc.o): In function
igzstream':/home/jjhu/Research/cdec/extractor/../utils/gzstream.h:102: undefined reference to
gzstreambase::gzstreambase(char const*, int)' /home/jjhu/Research/cdec/extractor/../utils/gzstream.h:102: undefined reference to
gzstreambase::~gzstreambase()'libextractor.a(alignment.cc.o):(.rodata._ZTI9igzstream[_ZTI9igzstream]+0x18): undefined reference to
typeinfo for gzstreambase' libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x10): undefined reference to
typeinfo for gzstreambase'libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x18): undefined reference to
gzstreambase::~gzstreambase()' libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x20): undefined reference to
gzstreambase::~gzstreambase()'libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x38): undefined reference to
typeinfo for gzstreambase' libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x40): undefined reference to
virtual thunk to gzstreambase::~gzstreambase()'libextractor.a(alignment.cc.o):(.rodata._ZTC9igzstream0_12gzstreambase[_ZTV9igzstream]+0x48): undefined reference to
virtual thunk to gzstreambase::~gzstreambase()' collect2: error: ld returned 1 exit status make[2]: *** [extractor/alignment_test] Error 1 make[1]: *** [extractor/CMakeFiles/alignment_test.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 93%] Built target kbest_cut_mira [ 93%] Built target kbest_mira In file included from /home/jjhu/Research/cdec/training/dtrain/../../decoder/sentence_metadata.h:8:0, from /home/jjhu/Research/cdec/training/dtrain/dtrain.h:18, from /home/jjhu/Research/cdec/training/dtrain/score.h:4, from /home/jjhu/Research/cdec/training/dtrain/score.cc:1: /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h: In member function ‘const cdec::DepthFirstIterator& cdec::DepthFirstIterator::operator++()’: /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h:135:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s.rhspos >= len) { ^ /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h:141:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s.rhspos < len) break; ^ /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h: In member function ‘const cdec::BreadthFirstIterator& cdec::BreadthFirstIterator::operator++()’: /home/jjhu/Research/cdec/training/dtrain/../../decoder/tree_fragment.h:226:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s.rhspos >= len) { ^ Linking CXX executable dtrain [ 93%] Built target dtrain make: *** [all] Error 2
Can you help me to fix the problem? @kpu
The text was updated successfully, but these errors were encountered: