SRILM 1.5.4 build problem

Andreas Stolcke stolcke at
Sun Nov 4 20:53:26 PST 2007

In message <Pine.LNX.4.63.0711042023090.16635 at lamb.ICSI.Berkeley.EDU>you wrote:
> I haven't been able to see where the problem has come from.  Between 
> 1.5.3 and 1.5.4, the only change I see to the link rule under the 
> heading "# Program linking" in Makefile.common.targets is that 
> "$(LIBRARY)" in the first line of the rule changed to "$(LIBRARIES)"
> Here is the 1.5.4 make output again, but with make's --debug option in 
> use:
>   /usr/bin/g++ -mtune=pentium3 -Wreturn-type -Wimplicit \
>     -I../../include -c -g -O3 -o ../obj/i686/ngram.o
>      Successfully remade target file `../obj/i686/ngram.o'.
>      Must remake target `../bin/i686/ngram'.
>      Successfully remade target file `../bin/i686/ngram'.
>    Must remake target `../../bin/i686/ngram'.
>    /root/srilm-1.5.4/sbin/decipher-install 0555 ../bin/i686/ngram  \
>      ../../bin/i686
>    ERROR:  File to be installed (../bin/i686/ngram) does not exist.

Frankly, I don't understand how this change can lead to the observed problem,
which I have not been able to duplicate on our machines.
But try changing line 104 of common/Makefile.common.targets to

$(BINDIR)/%$(EXE_SUFFIX): $(OBJDIR)/%$(OBJ_SUFFIX) $(filter-out -%, $(LIBRARIES))

IF that doesn't work, try


(the original) and report results back to me.
Be sure to "make cleanest" before each trial.

Thanks, and sorry for this inconvenience.


More information about the SRILM-User mailing list