<font class="Apple-style-span" color="#333399">Hi Simon,</font><div><font class="Apple-style-span" color="#333399"><br></font></div><div><font class="Apple-style-span" color="#333399">I made it recently on Ubuntu 11.10. Here is a suggestion can follow:</font></div>
<div><font class="Apple-style-span" color="#333399">1. In this file /common/Makefile.machine.$MACHINE_TYPE, change <br>GCC_FLAGS = -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized</font></div><div><font class="Apple-style-span" color="#333399">to</font></div>
<div><font class="Apple-style-span" color="#333399">GCC_FLAGS = -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized -fPIC</font></div><div><font class="Apple-style-span" color="#333399">then, run with command: make MAKE_PIC=yes MACHINE_TYPE=$MACHINE_TYPE World</font></div>
<div><font class="Apple-style-span" color="#333399">Note that 1) here $MACHINE_TYPE refers to your machine type (you can try either "i686-m64" or "i686-ubuntu"); 2) before the make command, you might need to use "make clean" to clean what's left from previous compile.</font></div>
<div><font class="Apple-style-span" color="#333399">2. consult "Joshua technical support" googlegroup and you will find more info.</font></div><div><font class="Apple-style-span" color="#333399">Good luck!<br>Xichuan</font><br>
<div class="gmail_quote">On Sat, Nov 19, 2011 at 4:13 PM, Simon h s <span dir="ltr"><<a href="mailto:d_emps@yahoo.com">d_emps@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><span>Dear all, </span></div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><span><br></span></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><span>I have a problem when compiling SRILM in Ubuntu 11.10</span></div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><span><br></span></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><span>after installing all required package mentioned in INSTALL, I have the following error when running make World:</span></div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><span><br></span></div><div><span><div>make[2]: Entering directory `/home/ndriks/Thesis/tools/atools/srilm/misc/src'</div>
<div>/usr/bin/gcc -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized -D_FILE_OFFSET_BITS=64   /usr/include/tcl8.5/tcl.h -I. -I../../include   -c -g -O3 -o ../obj/i686/option.o option.c</div><div>gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files</div>
<div>compilation terminated.</div><div>make[2]: *** [../obj/i686/option.o] Error 4</div><div>make[2]: Leaving directory `/home/ndriks/Thesis/tools/atools/srilm/misc/src'</div><div>make[1]: *** [release-libraries] Error 1</div>
<div>make[1]: Leaving directory `/home/ndriks/Thesis/tools/atools/srilm'</div><div>make: *** [World] Error 2</div></span></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
 </div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">full error is attached.</div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">FYI I'm using srilm 1.5.12</div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">Please help? </div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
Thanks before</div><span class="HOEnZb"><font color="#888888"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
--<br>Simon H S<br></div></font></span></div></div><br>_______________________________________________<br>
SRILM-User site list<br>
<a href="mailto:SRILM-User@speech.sri.com">SRILM-User@speech.sri.com</a><br>
<a href="http://www.speech.sri.com/mailman/listinfo/srilm-user" target="_blank">http://www.speech.sri.com/mailman/listinfo/srilm-user</a><br></blockquote></div><br></div>