irstlm-team / irstlm Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Lesser General Public License v2.1
License: GNU Lesser General Public License v2.1
Hello,
would it be possible to offer this as an apt package?
Or how could i do this?
Best regards
src/CMakeLists.txt says:
# Set output directory
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_INSTALL_PREFIX}/bin)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_INSTALL_PREFIX}/lib)
This causes make
to write the executables (compile-lm, cswa, dict, dtsel, interpolate-lm, ngt, plsa, prune-lm, quantize-lm, score-lm, tlm, verify-caching) and library (libirstlm.a) into the install prefix.
Please don't do that. You shouldn't be putting anything into the install prefix until I run make install
.
This may also be the cause of #14.
Running cppcheck on the sources, I have been notified (and manually verified) that fstar is used uninitialized in src/mdiadapt.cpp.
This happens at lines 1580 and 2019.
line 243: $debug needs to be quoted.
When running a command like this:
$ ~/kaldi-trunk/tools/irstlm/bin/build-sublm.pl --verbose --witten-bell --size 2 --ngrams "/bin/gunzip -c ngram.dict.000.gz" -sublm lm.dict.000
$ ~/kaldi-trunk/tools/irstlm/bin/merge-sublm.pl --size 2 --sublm lm.dict -lm lm.ilm.gz
$ ~/kaldi-trunk/tools/irstlm/bin/compile-lm lm.ilm.gz -t=yes /dev/stdout | grep -v unk | gzip -c > arpa.gz
I got a
warning: missing back-off (at level 1) for ngram <S> dekapitalizacja 0 (and possibly for others)
The <S> dekapitalizacja
bigram is the first bigram which starts with <S>
in my ngram.dict.000.gz file which I've created manually.
I susspect that the issue is caused by a missing /i switch in this line:
https://github.com/irstlm-team/irstlm/blob/master/scripts/merge-sublm.pl#L84
although, frankly I have no idea what is the purpose of this line.
Using IRSTLM on Linux openSUSE Leap 42.1 -
when using compile-lm with option text, for example, the option must be specified as
compile-lm --text=yes input output
Note the "=" in the text option. If this is omitted on openSUSE then result is:
DEBUG_LEVEL:0/1 Warning: Too many arguments
In the pdf docs the "=" is omitted in the example.
This may be OS specific, I don't know, but it is certainly confusing. May I suggest a extra note at this point?
I just had a look at the command line help of every installed scripts and binaries and, by trying
LC_ALL=C /usr/lib/irstlm/bin/qplsa.sh -h
I obtained
rm: cannot remove '/panfs/panfem/test-hlt/federico/plsa/CC/tlist': No such file or directory
/usr/lib/irstlm/bin/qplsa.sh: line 39: qsub: command not found
In the source I cannot find any usage/purpose instruction. I think this script should either not be distributed/installed or, probably better, improved and generalized.
Hi, when compiling the irstlm with 'make', I first got an error saying there is no file or directory 'stdlib.h'. Following online instructions, I change the Makefile.am
AM_CXXFLAGS = -static -isystem/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES $(BOOST_CPPFLAGS) -DMYCODESIZE=3
to
AM_CXXFLAGS = -static -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES $(BOOST_CPPFLAGS) -DMYCODESIZE=3
Now this problem was solved, but I get another error:
make all-recursive
make[1]: 进入目录“/media/sda1/HuaiyuanYing/MOSES/irstlm”
Making all in src
make[2]: 进入目录“/media/sda1/HuaiyuanYing/MOSES/irstlm/src”
cd .. && /bin/bash /media/sda1/HuaiyuanYing/MOSES/irstlm/missing automake-1.15 --foreign src/Makefile
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
cd .. && /bin/bash ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c -o dictionary.lo dictionary.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c dictionary.cpp -fPIC -DPIC -o .libs/dictionary.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c dictionary.cpp -o dictionary.o >/dev/null 2>&1
mv -f .deps/dictionary.Tpo .deps/dictionary.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT htable.lo -MD -MP -MF .deps/htable.Tpo -c -o htable.lo htable.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT htable.lo -MD -MP -MF .deps/htable.Tpo -c htable.cpp -fPIC -DPIC -o .libs/htable.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT htable.lo -MD -MP -MF .deps/htable.Tpo -c htable.cpp -o htable.o >/dev/null 2>&1
mv -f .deps/htable.Tpo .deps/htable.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmContainer.lo -MD -MP -MF .deps/lmContainer.Tpo -c -o lmContainer.lo lmContainer.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmContainer.lo -MD -MP -MF .deps/lmContainer.Tpo -c lmContainer.cpp -fPIC -DPIC -o .libs/lmContainer.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmContainer.lo -MD -MP -MF .deps/lmContainer.Tpo -c lmContainer.cpp -o lmContainer.o >/dev/null 2>&1
mv -f .deps/lmContainer.Tpo .deps/lmContainer.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmclass.lo -MD -MP -MF .deps/lmclass.Tpo -c -o lmclass.lo lmclass.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmclass.lo -MD -MP -MF .deps/lmclass.Tpo -c lmclass.cpp -fPIC -DPIC -o .libs/lmclass.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmclass.lo -MD -MP -MF .deps/lmclass.Tpo -c lmclass.cpp -o lmclass.o >/dev/null 2>&1
mv -f .deps/lmclass.Tpo .deps/lmclass.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmmacro.lo -MD -MP -MF .deps/lmmacro.Tpo -c -o lmmacro.lo lmmacro.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmmacro.lo -MD -MP -MF .deps/lmmacro.Tpo -c lmmacro.cpp -fPIC -DPIC -o .libs/lmmacro.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmmacro.lo -MD -MP -MF .deps/lmmacro.Tpo -c lmmacro.cpp -o lmmacro.o >/dev/null 2>&1
mv -f .deps/lmmacro.Tpo .deps/lmmacro.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmtable.lo -MD -MP -MF .deps/lmtable.Tpo -c -o lmtable.lo lmtable.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmtable.lo -MD -MP -MF .deps/lmtable.Tpo -c lmtable.cpp -fPIC -DPIC -o .libs/lmtable.o
lmtable.cpp: In member function ‘void irstlm::lmtable::loadtxt_mmap(std::istream&, const char*, const char*)’:
lmtable.cpp:622:15: warning: ignoring return value of ‘int ftruncate(int, __off64_t)’, declared with attribute warn_unused_result [-Wunused-result]
ftruncate(fileno(fd),filesize);
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
lmtable.cpp:724:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);
~~~~~~^~~~~
lmtable.cpp:728:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);
~~~~~~^~~~~
lmtable.cpp: In member function ‘void irstlm::lmtable::expand_level_mmap(int, table_entry_pos_t, const char*)’:
lmtable.cpp:887:12: warning: ignoring return value of ‘int ftruncate(int, __off64_t)’, declared with attribute warn_unused_result [-Wunused-result]
ftruncate(fileno(fd),filesize);
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
lmtable.cpp: In member function ‘void irstlm::lmtable::concatenate_single_level(int, const char*, const char*)’:
lmtable.cpp:1785:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);
~~~~~~^~~~~
lmtable.cpp: In member function ‘void irstlm::lmtable::compact_single_level(int, const char*)’:
lmtable.cpp:1856:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);
~~~~~~^~~~~
lmtable.cpp: In member function ‘void irstlm::lmtable::resize_level_mmap(int, const char*)’:
lmtable.cpp:1889:12: warning: ignoring return value of ‘int ftruncate(int, __off64_t)’, declared with attribute warn_unused_result [-Wunused-result]
ftruncate(fileno(fd),filesize);
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
lmtable.cpp: In member function ‘void irstlm::lmtable::loadbin(std::istream&, const char*, const char*, int)’:
lmtable.cpp:1996:8: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
read(diskid,miniheader,4);
~~~~^~~~~~~~~~~~~~~~~~~~~
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmtable.lo -MD -MP -MF .deps/lmtable.Tpo -c lmtable.cpp -o lmtable.o >/dev/null 2>&1
mv -f .deps/lmtable.Tpo .deps/lmtable.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmInterpolation.lo -MD -MP -MF .deps/lmInterpolation.Tpo -c -o lmInterpolation.lo lmInterpolation.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmInterpolation.lo -MD -MP -MF .deps/lmInterpolation.Tpo -c lmInterpolation.cpp -fPIC -DPIC -o .libs/lmInterpolation.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT lmInterpolation.lo -MD -MP -MF .deps/lmInterpolation.Tpo -c lmInterpolation.cpp -o lmInterpolation.o >/dev/null 2>&1
mv -f .deps/lmInterpolation.Tpo .deps/lmInterpolation.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mempool.lo -MD -MP -MF .deps/mempool.Tpo -c -o mempool.lo mempool.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mempool.lo -MD -MP -MF .deps/mempool.Tpo -c mempool.cpp -fPIC -DPIC -o .libs/mempool.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mempool.lo -MD -MP -MF .deps/mempool.Tpo -c mempool.cpp -o mempool.o >/dev/null 2>&1
mv -f .deps/mempool.Tpo .deps/mempool.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mfstream.lo -MD -MP -MF .deps/mfstream.Tpo -c -o mfstream.lo mfstream.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mfstream.lo -MD -MP -MF .deps/mfstream.Tpo -c mfstream.cpp -fPIC -DPIC -o .libs/mfstream.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mfstream.lo -MD -MP -MF .deps/mfstream.Tpo -c mfstream.cpp -o mfstream.o >/dev/null 2>&1
mv -f .deps/mfstream.Tpo .deps/mfstream.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT n_gram.lo -MD -MP -MF .deps/n_gram.Tpo -c -o n_gram.lo n_gram.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT n_gram.lo -MD -MP -MF .deps/n_gram.Tpo -c n_gram.cpp -fPIC -DPIC -o .libs/n_gram.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT n_gram.lo -MD -MP -MF .deps/n_gram.Tpo -c n_gram.cpp -o n_gram.o >/dev/null 2>&1
mv -f .deps/n_gram.Tpo .deps/n_gram.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT ngramcache.lo -MD -MP -MF .deps/ngramcache.Tpo -c -o ngramcache.lo ngramcache.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT ngramcache.lo -MD -MP -MF .deps/ngramcache.Tpo -c ngramcache.cpp -fPIC -DPIC -o .libs/ngramcache.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT ngramcache.lo -MD -MP -MF .deps/ngramcache.Tpo -c ngramcache.cpp -o ngramcache.o >/dev/null 2>&1
mv -f .deps/ngramcache.Tpo .deps/ngramcache.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT ngramtable.lo -MD -MP -MF .deps/ngramtable.Tpo -c -o ngramtable.lo ngramtable.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT ngramtable.lo -MD -MP -MF .deps/ngramtable.Tpo -c ngramtable.cpp -fPIC -DPIC -o .libs/ngramtable.o
ngramtable.cpp: In constructor ‘ngramtable::ngramtable(char*, int, char*, dictionary*, char*, int, int, char*, int, TABLETYPE, int)’:
ngramtable.cpp:202:1: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size between 0 and 99 [-Wformat-overflow=]
ngramtable::ngramtable(char* filename,int maxl,char* /* unused parameter: is */,
^~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/c++/7/cstdio:42,
from /usr/include/c++/7/ext/string_conversions.h:43,
from /usr/include/c++/7/bits/basic_string.h:6361,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from ngramtable.cpp:23:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘__builtin___sprintf_chk’ output between 12 and 430 bytes into a destination of size 100
__bos (__s), __fmt, __va_arg_pack ());
^
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT ngramtable.lo -MD -MP -MF .deps/ngramtable.Tpo -c ngramtable.cpp -o ngramtable.o >/dev/null 2>&1
mv -f .deps/ngramtable.Tpo .deps/ngramtable.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c -o timer.lo timer.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.cpp -fPIC -DPIC -o .libs/timer.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.cpp -o timer.o >/dev/null 2>&1
mv -f .deps/timer.Tpo .deps/timer.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT util.lo -MD -MP -MF .deps/util.Tpo -c -o util.lo util.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.cpp -fPIC -DPIC -o .libs/util.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.cpp -o util.o >/dev/null 2>&1
mv -f .deps/util.Tpo .deps/util.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT crc.lo -MD -MP -MF .deps/crc.Tpo -c -o crc.lo crc.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT crc.lo -MD -MP -MF .deps/crc.Tpo -c crc.cpp -fPIC -DPIC -o .libs/crc.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT crc.lo -MD -MP -MF .deps/crc.Tpo -c crc.cpp -o crc.o >/dev/null 2>&1
mv -f .deps/crc.Tpo .deps/crc.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT interplm.lo -MD -MP -MF .deps/interplm.Tpo -c -o interplm.lo interplm.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT interplm.lo -MD -MP -MF .deps/interplm.Tpo -c interplm.cpp -fPIC -DPIC -o .libs/interplm.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT interplm.lo -MD -MP -MF .deps/interplm.Tpo -c interplm.cpp -o interplm.o >/dev/null 2>&1
mv -f .deps/interplm.Tpo .deps/interplm.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT linearlm.lo -MD -MP -MF .deps/linearlm.Tpo -c -o linearlm.lo linearlm.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT linearlm.lo -MD -MP -MF .deps/linearlm.Tpo -c linearlm.cpp -fPIC -DPIC -o .libs/linearlm.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT linearlm.lo -MD -MP -MF .deps/linearlm.Tpo -c linearlm.cpp -o linearlm.o >/dev/null 2>&1
mv -f .deps/linearlm.Tpo .deps/linearlm.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mdiadapt.lo -MD -MP -MF .deps/mdiadapt.Tpo -c -o mdiadapt.lo mdiadapt.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mdiadapt.lo -MD -MP -MF .deps/mdiadapt.Tpo -c mdiadapt.cpp -fPIC -DPIC -o .libs/mdiadapt.o
mdiadapt.cpp: In member function ‘int irstlm::mdiadaptlm::saveASR(char*, int, char*)’:
mdiadapt.cpp:758:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp:915:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp:1031:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp: In member function ‘int irstlm::mdiadaptlm::saveMT(char*, int, char*, int, double)’:
mdiadapt.cpp:1070:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp: In member function ‘int irstlm::mdiadaptlm::saveBIN_per_word(char*, int, char*, int)’:
mdiadapt.cpp:1175:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp:1461:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp: In member function ‘int irstlm::mdiadaptlm::saveBIN_per_level(char*, int, char*, int)’:
mdiadapt.cpp:1471:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp:1519:10: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp: In member function ‘int irstlm::mdiadaptlm::saveARPA_per_word(char*, int, char*)’:
mdiadapt.cpp:1706:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp:1926:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp: In member function ‘int irstlm::mdiadaptlm::saveARPA_per_level(char*, int, char*)’:
mdiadapt.cpp:1936:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
mdiadapt.cpp:2144:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("date");
~~~~~~^~~~~~~~
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mdiadapt.lo -MD -MP -MF .deps/mdiadapt.Tpo -c mdiadapt.cpp -o mdiadapt.o >/dev/null 2>&1
mv -f .deps/mdiadapt.Tpo .deps/mdiadapt.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mixture.lo -MD -MP -MF .deps/mixture.Tpo -c -o mixture.lo mixture.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mixture.lo -MD -MP -MF .deps/mixture.Tpo -c mixture.cpp -fPIC -DPIC -o .libs/mixture.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT mixture.lo -MD -MP -MF .deps/mixture.Tpo -c mixture.cpp -o mixture.o >/dev/null 2>&1
mv -f .deps/mixture.Tpo .deps/mixture.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT normcache.lo -MD -MP -MF .deps/normcache.Tpo -c -o normcache.lo normcache.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT normcache.lo -MD -MP -MF .deps/normcache.Tpo -c normcache.cpp -fPIC -DPIC -o .libs/normcache.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT normcache.lo -MD -MP -MF .deps/normcache.Tpo -c normcache.cpp -o normcache.o >/dev/null 2>&1
mv -f .deps/normcache.Tpo .deps/normcache.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT shiftlm.lo -MD -MP -MF .deps/shiftlm.Tpo -c -o shiftlm.lo shiftlm.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT shiftlm.lo -MD -MP -MF .deps/shiftlm.Tpo -c shiftlm.cpp -fPIC -DPIC -o .libs/shiftlm.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT shiftlm.lo -MD -MP -MF .deps/shiftlm.Tpo -c shiftlm.cpp -o shiftlm.o >/dev/null 2>&1
mv -f .deps/shiftlm.Tpo .deps/shiftlm.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT cplsa.lo -MD -MP -MF .deps/cplsa.Tpo -c -o cplsa.lo cplsa.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT cplsa.lo -MD -MP -MF .deps/cplsa.Tpo -c cplsa.cpp -fPIC -DPIC -o .libs/cplsa.o
cplsa.cpp: In member function ‘int irstlm::plsa::initH()’:
cplsa.cpp:144:22: warning: ignoring return value of ‘int ftruncate(int, __off64_t)’, declared with attribute warn_unused_result [-Wunused-result]
ftruncate(fileno(fd),len * sizeof(float));
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cplsa.cpp: In member function ‘int irstlm::plsa::train(char*, char*, int, float, int)’:
cplsa.cpp:491:40: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
if (trset->numdoc()> 10) system("date");
~~~~~~^~~~~~~~
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT cplsa.lo -MD -MP -MF .deps/cplsa.Tpo -c cplsa.cpp -o cplsa.o >/dev/null 2>&1
mv -f .deps/cplsa.Tpo .deps/cplsa.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT doc.lo -MD -MP -MF .deps/doc.Tpo -c -o doc.lo doc.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT doc.lo -MD -MP -MF .deps/doc.Tpo -c doc.cpp -fPIC -DPIC -o .libs/doc.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT doc.lo -MD -MP -MF .deps/doc.Tpo -c doc.cpp -o doc.o >/dev/null 2>&1
mv -f .deps/doc.Tpo .deps/doc.Plo
/bin/bash ../libtool --tag=CXX --mode=link g++ -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -o libirstlm.la -rpath /media/sda1/HuaiyuanYing/MOSES/irstlm/lib cmd.lo dictionary.lo htable.lo lmContainer.lo lmclass.lo lmmacro.lo lmtable.lo lmInterpolation.lo mempool.lo mfstream.lo n_gram.lo ngramcache.lo ngramtable.lo timer.lo util.lo crc.lo interplm.lo linearlm.lo mdiadapt.lo mixture.lo normcache.lo shiftlm.lo cplsa.lo doc.lo -lz
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o .libs/cmd.o .libs/dictionary.o .libs/htable.o .libs/lmContainer.o .libs/lmclass.o .libs/lmmacro.o .libs/lmtable.o .libs/lmInterpolation.o .libs/mempool.o .libs/mfstream.o .libs/n_gram.o .libs/ngramcache.o .libs/ngramtable.o .libs/timer.o .libs/util.o .libs/crc.o .libs/interplm.o .libs/linearlm.o .libs/mdiadapt.o .libs/mixture.o .libs/normcache.o .libs/shiftlm.o .libs/cplsa.o .libs/doc.o -lz -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o -g -O2 -Wl,-soname -Wl,libirstlm.so.0 -o .libs/libirstlm.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libirstlm.so.0" && ln -s "libirstlm.so.0.0.0" "libirstlm.so.0")
libtool: link: (cd ".libs" && rm -f "libirstlm.so" && ln -s "libirstlm.so.0.0.0" "libirstlm.so")
libtool: link: ar cru .libs/libirstlm.a cmd.o dictionary.o htable.o lmContainer.o lmclass.o lmmacro.o lmtable.o lmInterpolation.o mempool.o mfstream.o n_gram.o ngramcache.o ngramtable.o timer.o util.o crc.o interplm.o linearlm.o mdiadapt.o mixture.o normcache.o shiftlm.o cplsa.o doc.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libirstlm.a
libtool: link: ( cd ".libs" && rm -f "libirstlm.la" && ln -s "../libirstlm.la" "libirstlm.la" )
g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dict.o -MD -MP -MF .deps/dict.Tpo -c -o dict.o dict.cpp
mv -f .deps/dict.Tpo .deps/dict.Po
/bin/bash ../libtool --tag=CXX --mode=link g++ -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -o dict dict.o -lirstlm -lz
libtool: link: g++ -I/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -o .libs/dict dict.o /media/sda1/HuaiyuanYing/MOSES/irstlm/src/.libs/libirstlm.so -lz -Wl,-rpath -Wl,/media/sda1/HuaiyuanYing/MOSES/irstlm/lib
/media/sda1/HuaiyuanYing/MOSES/irstlm/src/.libs/libirstlm.so: undefined reference to `thpool_destroy'
/media/sda1/HuaiyuanYing/MOSES/irstlm/src/.libs/libirstlm.so: undefined reference to `thpool_init'
/media/sda1/HuaiyuanYing/MOSES/irstlm/src/.libs/libirstlm.so: undefined reference to `thpool_wait'
/media/sda1/HuaiyuanYing/MOSES/irstlm/src/.libs/libirstlm.so: undefined reference to `thpool_add_work'
collect2: error: ld returned 1 exit status
Makefile:608: recipe for target 'dict' failed
make[2]: *** [dict] Error 1
make[2]: 离开目录“/media/sda1/HuaiyuanYing/MOSES/irstlm/src”
Makefile:407: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: 离开目录“/media/sda1/HuaiyuanYing/MOSES/irstlm”
Makefile:339: recipe for target 'all' failed
make: *** [all] Error 2
I do not know where is wrong. Thank in advance.
Building 6.00.05 on macOS within MacPorts:
[100%] creating link from lib to lib64
cd /opt/local && ln -s -f -n lib lib64
ln: lib64: Operation not permitted
make[2]: *** [src/LNS] Error 1
("Operation not permitted" occurs because MacPorts protects /opt/local from unauthorized changes.)
There is never a lib64 directory on macOS; you shouldn't be trying to make one (nor a symlink of that name).
Even on non-Mac operating systems it seems like it is outside your program's purview to create a lib64 symlink within the installation prefix (which may also be used by other programs that may prefer, for example, for lib64 to be a separate directory rather than a symlink).
This is reopening #8, which I don't seem to be able to do directly.
@digital-idiot closed that with
Sorry, my bad. It compiles fine with g++-5 and gcc-5.
but gcc-5 is becoming increasingly unavailable, and a real fix is available in the Debian irstlm package:
https://salsa.debian.org/science-team/irstlm/blob/master/debian/patches/1001_fix_build_issues.patch
I believe this patch is by @giuliopaci
invalid argument '-std=c++0x' not allowed with 'C/ObjC'
When creating an LM for Julius to process into a binary version with mkbingram, it seems to be important to include in the text corpus the silence markers. IRSTLM will quite happily process a model in both iARPA and ARPA without them, but later mkbingram will fail if silences are absent from the corpus (julius-speech/julius#15) and the resulting LM from IRSTLM. The question is whether the standard is for silences to be included in the corpus (in which case a check is missing in the language model generator) or optional (in which case the issue can be dealt with by mkbingram)?
/usr/bin/ar: /opt/irstlm/lib/libirstlm.a: No such file or directory
src/CMakeFiles/irstlm.dir/build.make:744: recipe for target '/opt/irstlm/lib/libirstlm.a' failed
make[2]: *** [/opt/irstlm/lib/libirstlm.a] Error 1
CMakeFiles/Makefile2:333: recipe for target 'src/CMakeFiles/irstlm.dir/all' failed
make[1]: *** [src/CMakeFiles/irstlm.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
oakyildiz@oakyildiz-pc:~/
After setting the CMAKE_INSTALL_PREFIX
the makefile looks at the wrong location for libirstlm.a
I make an LM using this tutorial, but I could not parse the resulting arpa
file with other tools because of inconsistent/nonstandard whitespace.
First, in the \data\
section, there were tabs before the frequency count, indicated by <TAB>
below:
\data\
ngram 1=<TAB>7
ngram 2=<TAB>7
Second, the automatically generated <unk>
token had a space instead of a tab, although every other token was separated from its frequency by a tab.
Third, the \2-grams:
and \3-grams:
lines were not preceded by an empty line.
This project used to be hosted on SourceForge at:
https://sourceforge.net/projects/irstlm/
There it says:
IRSTLM is no more supported on SourceForge.
Please visit the new IRSTLM official website:
http://hlt-mt.fbk.eu/technologies/irstlm
However, that "new official website" does not exist anymore. Using the Internet Archive I was able to find the last version of that page which pointed me to this GitHub repository.
Please update the SourceForge page to point directly to this GitHub repository.
Can not compile irstlm. Log:
In file included from /usr/include/c++/6.3.1/ext/string_conversions.h:41:0,
from /usr/include/c++/6.3.1/bits/basic_string.h:5417,
from /usr/include/c++/6.3.1/string:52,
from /usr/include/c++/6.3.1/bits/locale_classes.h:40,
from /usr/include/c++/6.3.1/bits/ios_base.h:41,
from /usr/include/c++/6.3.1/iomanip:40,
from dictionary.cpp:25:
/usr/include/c++/6.3.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
make[2]: *** [Makefile:741: dictionary.lo] Error 1
make[2]: Leaving directory 'xxx/kaldi/tools/extras/irstlm/src'
make[1]: *** [Makefile:406: all-recursive] Error 1
make[1]: Leaving directory 'xxx/SpeechLab/kaldi/tools/extras/irstlm'
make: *** [Makefile:338: all] Error 2
Making install in src
make[1]: Entering directory 'xxx/SpeechLab/kaldi/tools/extras/irstlm/src'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -static -isystem/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c -o dictionary.lo dictionary.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -isystem/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c dictionary.cpp -o dictionary.o
In file included from /usr/include/c++/6.3.1/ext/string_conversions.h:41:0,
from /usr/include/c++/6.3.1/bits/basic_string.h:5417,
from /usr/include/c++/6.3.1/string:52,
from /usr/include/c++/6.3.1/bits/locale_classes.h:40,
from /usr/include/c++/6.3.1/bits/ios_base.h:41,
from /usr/include/c++/6.3.1/iomanip:40,
from dictionary.cpp:25:
/usr/include/c++/6.3.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
make[1]: *** [Makefile:741: dictionary.lo] Error 1
make[1]: Leaving directory 'xxx/SpeechLab/kaldi/tools/extras/irstlm/src'
make: *** [Makefile:406: install-recursive] Error 1
On the releases page the latest release is v6.00.01. However, Git tags for v6.00.02, v6.00.03, v6.00.04, and v6.00.05 were created after that. Are they stable releases? If so, please create GitHub releases for each one.
I do a make
and get the following error:
lmtable.cpp: In member function ‘virtual ngram_state_t irstlm::lmtable::cmaxsuffidx(ngram, unsigned int*)’:
lmtable.cpp:2406:28: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
char* msptr = cmaxsuffptr(ong,&isize);
^
lmtable.cpp:2407:33: error: ‘suffptr’ was not declared in this scope
ngram_state_t msidx = convert(suffptr,isize);
^
lmtable.cpp:2415:14: error: ‘found’ was not declared in this scope
pst.state=found;
^
lmtable.cpp:2406:9: warning: unused variable ‘msptr’ [-Wunused-variable]
char* msptr = cmaxsuffptr(ong,&isize);
^
lmtable.cpp: In member function ‘void irstlm::lmtable::loadtxt_mmap(std::istream&, const char*, const char*)’:
lmtable.cpp:622:36: warning: ignoring return value of ‘int ftruncate(int, __off64_t)’, declared with attribute warn_unused_result [-Wunused-result]
ftruncate(fileno(fd),filesize);
^
lmtable.cpp:724:14: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);
^
lmtable.cpp:728:14: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);
^
lmtable.cpp: In member function ‘void irstlm::lmtable::expand_level_mmap(int, table_entry_pos_t, const char*)’:
lmtable.cpp:887:33: warning: ignoring return value of ‘int ftruncate(int, __off64_t)’, declared with attribute warn_unused_result [-Wunused-result]
ftruncate(fileno(fd),filesize);
^
lmtable.cpp: In member function ‘void irstlm::lmtable::concatenate_single_level(int, const char*, const char*)’:
lmtable.cpp:1785:14: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);
^
lmtable.cpp: In member function ‘void irstlm::lmtable::compact_single_level(int, const char*)’:
lmtable.cpp:1856:14: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system(cmd);
^
lmtable.cpp: In member function ‘void irstlm::lmtable::resize_level_mmap(int, const char*)’:
lmtable.cpp:1889:33: warning: ignoring return value of ‘int ftruncate(int, __off64_t)’, declared with attribute warn_unused_result [-Wunused-result]
ftruncate(fileno(fd),filesize);
^
lmtable.cpp: In member function ‘void irstlm::lmtable::loadbin(std::istream&, const char*, const char*, int)’:
lmtable.cpp:1996:29: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
read(diskid,miniheader,4);
^
Makefile:742: recipe for target 'lmtable.lo' failed
make[2]: *** [lmtable.lo] Error 1
make[2]: Leaving directory '/home/duygu/irstlm/src'
Makefile:407: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/duygu/irstlm'
Makefile:339: recipe for target 'all' failed
make: *** [all] Error 2
Any suggestion is appreciated, thanks in advance.
-Pro:irstlm touchpal$ sudo make install
Making install in src
.././install-sh -c -d '/usr/local/lib'
/bin/sh ../libtool --mode=install /usr/bin/install -c libirstlm.la '/usr/local/lib'
Usage: /Users/tou/irstlm/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool: error: 'libirstlm.la' is not a valid libtool archive
make[2]: *** [install-libLTLIBRARIES] Error 1
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
irstlm installs files with generic names into prominent directories in the install prefix, which can conflict with other software.
For example, if the install prefix is /opt/local, irstlm installs /opt/local/bin/dict. This filename is fairly generic and does not convey an association with the irstlm project, and it conflicts with a program of the same name installed by the dict software.
It also installs the header /opt/local/include/util.h. It can easily be imagined that other software projects might contain a header called util.h, and depending on the order of the -I
flags being used, this could cause a conflict with other software; for example, it did prevent building xar in MacPorts.
You may want to rename the files that you install into prominent directories of the install prefix (i.e. directly in bin, include, lib, etc.) so that they bear an obvious association to your project (e.g. use an "irstlm" prefix), or put them into a subdirectory named after your project (e.g. /opt/local/include/irstlm/util.h).
(irs.gov) `
Versions 6.00.00, 6.00.01, 6.00.02, 6.00.03, 6.00.04, and 6.00.05 were released in 2015. However, even today in 2023 CMakeLists.txt still says the version is 5.80.08:
SET(IRSTLM_VERSION_MAJOR "5")
SET(IRSTLM_VERSION_MINOR "80")
SET(IRSTLM_VERSION_PATCH "08")
As does configure.ac:
AC_INIT([irstlm], [5.80.06])
I haven't checked whether an old version number is still present in other files.
/irstlm$ ./regenerate-makefiles.shobsolete.m4'
Calling /usr/bin/autoreconf
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: error: required file './ar-lib' not found
configure.ac:10: 'automake --add-missing' can install 'ar-lib'
configure.ac:3: error: required file './compile' not found
configure.ac:3: 'automake --add-missing' can install 'compile'
configure.ac:5: error: required file './config.guess' not found
configure.ac:5: 'automake --add-missing' can install 'config.guess'
configure.ac:5: error: required file './config.sub' not found
configure.ac:5: 'automake --add-missing' can install 'config.sub'
configure.ac:2: error: required file './install-sh' not found
configure.ac:2: 'automake --add-missing' can install 'install-sh'
configure.ac:5: error: required file './ltmain.sh' not found
configure.ac:2: error: required file './missing' not found
configure.ac:2: 'automake --add-missing' can install 'missing'
src/Makefile.am: error: required file './depcomp' not found
src/Makefile.am: 'automake --add-missing' can install 'depcomp'
autoreconf: automake failed with exit status: 1
autoreconf FAILED
trying '/usr/bin/libtoolize --force; /usr/bin/automake --add-missing ; /usr/bin/autoreconf'
libtoolize: putting auxiliary files in '.'.
libtoolize: linking file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: installing './ar-lib'
configure.ac:3: installing './compile'
configure.ac:5: installing './config.guess'
configure.ac:5: installing './config.sub'
configure.ac:2: installing './install-sh'
configure.ac:2: installing './missing'
src/Makefile.am: installing './depcomp'
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.