Hi,

I am trying to compile the last version of Moses (subversion), using
only IRST (I see SRILM is not actually Free software).
I used the last version of IRSTLM (5.60.03). It compiled and installed well.
But when compiling on turn Moses, I get the following error:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -W -Wall
-ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DTRACE_ENABLE=1
-I/home/jehan/.local/include -I/home/jehan/moses/mosesdecoder/kenlm -g
-O2 -MT LanguageModelKen.lo -MD -MP -MF .deps/LanguageModelKen.Tpo -c
LanguageModelKen.cpp -o LanguageModelKen.o
LanguageModelIRST.cpp:30:21: error: lmclass.h: No such file or directory
LanguageModelIRST.cpp: In member function ‘virtual bool
Moses::LanguageModelIRST::Load(const std::string&, Moses::FactorType,
size_t)’:
LanguageModelIRST.cpp:86: error: ‘_IRSTLM_LMCLASS’ was not declared in
this scope
LanguageModelIRST.cpp:89: error: expected type-specifier before ‘lmclass’
LanguageModelIRST.cpp:89: error: cannot convert ‘int*’ to ‘lmtable*’
in assignment
LanguageModelIRST.cpp:89: error: expected ‘;’ before ‘lmclass’
LanguageModelIRST.cpp:90: error: ‘lmclass’ was not declared in this scope
LanguageModelIRST.cpp:90: error: expected primary-expression before ‘)’ token
LanguageModelIRST.cpp:90: error: expected ‘)’ before ‘m_lmtb’
LanguageModelIRST.cpp:92: error: expected primary-expression before ‘)’ token
LanguageModelIRST.cpp:92: error: expected ‘)’ before ‘m_lmtb’
LanguageModelIRST.cpp:117: error: ‘_IRSTLM_LMCLASS’ was not declared
in this scope
LanguageModelIRST.cpp: In member function ‘virtual Moses::LMResult
Moses::LanguageModelIRST::GetValue(const std::vector<const
Moses::Word*, std::allocator<const Moses::Word*> >&, const void**)
const’:
LanguageModelIRST.cpp:235: warning: comparison of unsigned expression
< 0 is always false
LanguageModelIRST.cpp: In function ‘bool Moses::LMCacheCleanup(size_t, size_t)’:
LanguageModelIRST.cpp:268: warning: comparison between signed and
unsigned integer expressions
make[3]: *** [LanguageModelIRST.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/WordLattice.Tpo .deps/WordLattice.Plo
mv -f .deps/XmlOption.Tpo .deps/XmlOption.Plo
mv -f .deps/LanguageModelKen.Tpo .deps/LanguageModelKen.Plo
make[3]: Leaving directory `/home/jehan/moses/mosesdecoder/moses/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jehan/moses/mosesdecoder/moses/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jehan/moses/mosesdecoder'
make: *** [all] Error 2

I have searched the ml but did not seem to find any other occurrence
of this error here.
For information:
$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib
--enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --with-arch-32=i586 --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.4.5 (Debian 4.4.5-8)

It seems the issue is simply that lmclass.h is missing. I can't find
such a file in both moses repo or irstlm. Where is it supposed to be?
Or is there another issue?
Would anyone know what could be the problem here?
Thanks.

Jehan

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to