Hello, I'm using quite fresh Ubuntu 11.04 (on a 32bit machine). I downloaded and compiled latest srilm and irstlm (not without some troubles), then downloaded latest Moses from sourceforge. I ran regenerate-makefiles.sh, and configure (with srilm and irstlm). Then after make I get following errors. Do you have any suggestions? Thanks in advance.
make all-recursive make[1]: Entering directory `/home/bar/moses' Making all in kenlm make[2]: Entering directory `/home/bar/moses/kenlm' /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -L/home/bar/lm/srilm/lib/i686 -L/home/bar/lm/srilm/flm/obj/i686 -L/home/bar/lm/irstlm/lib -o build_binary build_binary.o libkenlm.la -loolm -loolm -ldstruct -lmisc -lflm -lirstlm -lz libtool: link: g++ -g -O2 -o build_binary build_binary.o -L/home/bar/lm/srilm/lib/i686 -L/home/bar/lm/srilm/flm/obj/i686 -L/home/bar/lm/irstlm/lib ./.libs/libkenlm.a -loolm -ldstruct -lmisc -lflm -lirstlm -lz build_binary.o: In function `lm::ngram::(anonymous namespace)::ParseFloat(char const*)': /home/bar/moses/kenlm/lm/build_binary.cc:44: undefined reference to `util::ParseNumberException::ParseNumberException(StringPiece)' build_binary.o: In function `main': /home/bar/moses/kenlm/lm/build_binary.cc:77: undefined reference to `lm::ngram::Config::Config()' /home/bar/moses/kenlm/lm/build_binary.cc:115: undefined reference to `lm::ngram::detail::GenericModel<lm::ngram::trie::TrieSearch, lm::ngram::SortedVocabulary>::GenericModel(char const*, lm::ngram::Config const&)' build_binary.o: In function `~SortedVocabulary': /home/bar/moses/kenlm/./lm/vocab.hh:46: undefined reference to `lm::base::Vocabulary::~Vocabulary()' build_binary.o: In function `util::scoped_memory::reset()': /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `ShowSizes': /home/bar/moses/kenlm/lm/build_binary.cc:56: undefined reference to `util::FilePiece::FilePiece(char const*, std::basic_ostream<char, std::char_traits<char> >*, long long)' /home/bar/moses/kenlm/lm/build_binary.cc:57: undefined reference to `lm::ReadARPACounts(util::FilePiece&, std::vector<unsigned long long, std::allocator<unsigned long long> >&)' /home/bar/moses/kenlm/lm/build_binary.cc:58: undefined reference to `lm::ngram::detail::GenericModel<lm::ngram::detail::ProbingHashedSearch, lm::ngram::ProbingVocabulary>::Size(std::vector<unsigned long long, std::allocator<unsigned long long> > const&, lm::ngram::Config const&)' /home/bar/moses/kenlm/lm/build_binary.cc:66: undefined reference to `lm::ngram::detail::GenericModel<lm::ngram::trie::TrieSearch, lm::ngram::SortedVocabulary>::Size(std::vector<unsigned long long, std::allocator<unsigned long long> > const&, lm::ngram::Config const&)' /home/bar/moses/kenlm/lm/build_binary.cc:56: undefined reference to `util::FilePiece::~FilePiece()' build_binary.o: In function `main': /home/bar/moses/kenlm/lm/build_binary.cc:107: undefined reference to `lm::ngram::detail::GenericModel<lm::ngram::detail::ProbingHashedSearch, lm::ngram::ProbingVocabulary>::GenericModel(char const*, lm::ngram::Config const&)' build_binary.o: In function `~ProbingVocabulary': /home/bar/moses/kenlm/./lm/vocab.hh:97: undefined reference to `lm::base::Vocabulary::~Vocabulary()' build_binary.o: In function `util::scoped_memory::reset()': /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `main': /home/bar/moses/kenlm/lm/build_binary.cc:113: undefined reference to `lm::ngram::detail::GenericModel<lm::ngram::detail::ProbingHashedSearch, lm::ngram::ProbingVocabulary>::GenericModel(char const*, lm::ngram::Config const&)' build_binary.o: In function `~ProbingVocabulary': /home/bar/moses/kenlm/./lm/vocab.hh:97: undefined reference to `lm::base::Vocabulary::~Vocabulary()' build_binary.o: In function `util::scoped_memory::reset()': /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `ParseUInt': /home/bar/moses/kenlm/lm/build_binary.cc:50: undefined reference to `util::ParseNumberException::ParseNumberException(StringPiece)' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `ShowSizes': /home/bar/moses/kenlm/lm/build_binary.cc:56: undefined reference to `util::FilePiece::~FilePiece()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~GenericModel': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ParseNumberException': /home/bar/moses/kenlm/./util/file_piece.hh:26: undefined reference to `util::Exception::~Exception()' /home/bar/moses/kenlm/./util/file_piece.hh:26: undefined reference to `util::Exception::~Exception()' build_binary.o: In function `lm::base::ModelFacade<lm::ngram::detail::GenericModel<lm::ngram::detail::ProbingHashedSearch, lm::ngram::ProbingVocabulary>, lm::ngram::State, lm::ngram::ProbingVocabulary>::FullScore(void const*, unsigned int, void*) const': /home/bar/moses/kenlm/./lm/facade.hh:29: undefined reference to `lm::ngram::detail::GenericModel<lm::ngram::detail::ProbingHashedSearch, lm::ngram::ProbingVocabulary>::FullScore(lm::ngram::State const&, unsigned int, lm::ngram::State&) const' build_binary.o: In function `lm::base::ModelFacade<lm::ngram::detail::GenericModel<lm::ngram::detail::ProbingHashedSearch, lm::ngram::ProbingVocabulary>, lm::ngram::State, lm::ngram::ProbingVocabulary>::Score(lm::ngram::State const&, unsigned int, lm::ngram::State&) const': /home/bar/moses/kenlm/./lm/facade.hh:21: undefined reference to `lm::ngram::detail::GenericModel<lm::ngram::detail::ProbingHashedSearch, lm::ngram::ProbingVocabulary>::FullScore(lm::ngram::State const&, unsigned int, lm::ngram::State&) const' build_binary.o: In function `~ProbingVocabulary': /home/bar/moses/kenlm/./lm/vocab.hh:97: undefined reference to `lm::base::Vocabulary::~Vocabulary()' /home/bar/moses/kenlm/./lm/vocab.hh:97: undefined reference to `lm::base::Vocabulary::~Vocabulary()' build_binary.o: In function `HashForVocab': /home/bar/moses/kenlm/./lm/vocab.hh:25: undefined reference to `lm::ngram::detail::HashForVocab(char const*, unsigned int)' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `lm::base::ModelFacade<lm::ngram::detail::GenericModel<lm::ngram::trie::TrieSearch, lm::ngram::SortedVocabulary>, lm::ngram::State, lm::ngram::SortedVocabulary>::FullScore(void const*, unsigned int, void*) const': /home/bar/moses/kenlm/./lm/facade.hh:29: undefined reference to `lm::ngram::detail::GenericModel<lm::ngram::trie::TrieSearch, lm::ngram::SortedVocabulary>::FullScore(lm::ngram::State const&, unsigned int, lm::ngram::State&) const' build_binary.o: In function `lm::base::ModelFacade<lm::ngram::detail::GenericModel<lm::ngram::trie::TrieSearch, lm::ngram::SortedVocabulary>, lm::ngram::State, lm::ngram::SortedVocabulary>::Score(lm::ngram::State const&, unsigned int, lm::ngram::State&) const': /home/bar/moses/kenlm/./lm/facade.hh:21: undefined reference to `lm::ngram::detail::GenericModel<lm::ngram::trie::TrieSearch, lm::ngram::SortedVocabulary>::FullScore(lm::ngram::State const&, unsigned int, lm::ngram::State&) const' build_binary.o: In function `~SortedVocabulary': /home/bar/moses/kenlm/./lm/vocab.hh:46: undefined reference to `lm::base::Vocabulary::~Vocabulary()' /home/bar/moses/kenlm/./lm/vocab.hh:46: undefined reference to `lm::base::Vocabulary::~Vocabulary()' build_binary.o: In function `util::scoped_memory::reset()': /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' build_binary.o: In function `~scoped_memory': /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ProbingVocabulary': /home/bar/moses/kenlm/./lm/vocab.hh:97: undefined reference to `lm::base::Vocabulary::~Vocabulary()' build_binary.o: In function `~scoped_memory': /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `~SortedVocabulary': /home/bar/moses/kenlm/./lm/vocab.hh:46: undefined reference to `lm::base::Vocabulary::~Vocabulary()' build_binary.o: In function `~scoped_memory': /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ProbingVocabulary': /home/bar/moses/kenlm/./lm/vocab.hh:97: undefined reference to `lm::base::Vocabulary::~Vocabulary()' build_binary.o: In function `~scoped_memory': /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~SortedVocabulary': /home/bar/moses/kenlm/./lm/vocab.hh:46: undefined reference to `lm::base::Vocabulary::~Vocabulary()' build_binary.o: In function `~scoped_memory': /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' /home/bar/moses/kenlm/./util/mmap.hh:64: undefined reference to `util::scoped_memory::reset(void*, unsigned int, util::scoped_memory::Alloc)' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `~ModelFacade': /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' /home/bar/moses/kenlm/./lm/facade.hh:45: undefined reference to `lm::base::Model::~Model()' build_binary.o: In function `~Backing': /home/bar/moses/kenlm/./lm/binary_format.hh:42: undefined reference to `util::scoped_fd::~scoped_fd()' build_binary.o: In function `HashForVocab': /home/bar/moses/kenlm/./lm/vocab.hh:25: undefined reference to `lm::ngram::detail::HashForVocab(char const*, unsigned int)' build_binary.o:(.rodata._ZTIN4util20ParseNumberExceptionE[typeinfo for util::ParseNumberException]+0x8): undefined reference to `typeinfo for util::Exception' build_binary.o:(.rodata._ZTVN4util20ParseNumberExceptionE[vtable for util::ParseNumberException]+0x10): undefined reference to `util::Exception::what() const' build_binary.o:(.rodata._ZTIN2lm5ngram17ProbingVocabularyE[typeinfo for lm::ngram::ProbingVocabulary]+0x8): undefined reference to `typeinfo for lm::base::Vocabulary' build_binary.o:(.rodata._ZTIN2lm4base11ModelFacadeINS_5ngram6detail12GenericModelINS3_19ProbingHashedSearchENS2_17ProbingVocabularyEEENS2_5StateES6_EE[typeinfo for lm::base::ModelFacade<lm::ngram::detail::GenericModel<lm::ngram::detail::ProbingHashedSearch, lm::ngram::ProbingVocabulary>, lm::ngram::State, lm::ngram::ProbingVocabulary>]+0x8): undefined reference to `typeinfo for lm::base::Model' build_binary.o:(.rodata._ZTIN2lm5ngram16SortedVocabularyE[typeinfo for lm::ngram::SortedVocabulary]+0x8): undefined reference to `typeinfo for lm::base::Vocabulary' build_binary.o:(.rodata._ZTIN2lm4base11ModelFacadeINS_5ngram6detail12GenericModelINS2_4trie10TrieSearchENS2_16SortedVocabularyEEENS2_5StateES7_EE[typeinfo for lm::base::ModelFacade<lm::ngram::detail::GenericModel<lm::ngram::trie::TrieSearch, lm::ngram::SortedVocabulary>, lm::ngram::State, lm::ngram::SortedVocabulary>]+0x8): undefined reference to `typeinfo for lm::base::Model' collect2: ld returned 1 exit status make[2]: *** [build_binary] Error 1 make[2]: Leaving directory `/home/bar/moses/kenlm' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/bar/moses' make: *** [all] Error 2 Best regards, Bartosz Grabski _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support