Re: [Moses-support] Can't compile latest Moses with irstlm and srilm
It looks like you are using 64 bit versions eg srilm. Make sure everything is 32 bit Miles On 21 May 2011 13:45, "Bartosz Grabski" wrote: 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::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 >*, long long)' /home/bar/moses/kenlm/lm/build_binary.cc:57: undefined reference to `lm::ReadARPACounts(util::FilePiece&, std::vector >&)' /home/bar/moses/kenlm/lm/build_binary.cc:58: undefined reference to `lm::ngram::detail::GenericModel::Size(std::vector > const&, lm::ngram::Config const&)' /home/bar/moses/kenlm/lm/build_binary.cc:66: undefined reference to `lm::ngram::detail::GenericModel::Size(std::vector > 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::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::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::Mo
[Moses-support] Can't compile latest Moses with irstlm and srilm
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::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 >*, long long)' /home/bar/moses/kenlm/lm/build_binary.cc:57: undefined reference to `lm::ReadARPACounts(util::FilePiece&, std::vector >&)' /home/bar/moses/kenlm/lm/build_binary.cc:58: undefined reference to `lm::ngram::detail::GenericModel::Size(std::vector > const&, lm::ngram::Config const&)' /home/bar/moses/kenlm/lm/build_binary.cc:66: undefined reference to `lm::ngram::detail::GenericModel::Size(std::vector > 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::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::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::ParseNumber