<div dir="ltr">Thanks Andreas. I did everything from the start again and it was successful!<div><br></div><div>Regards</div><div>Pawan<br><br><div class="gmail_quote">On Tue, Jan 25, 2011 at 1:27 AM, Andreas Stolcke <span dir="ltr"><<a href="mailto:stolcke@speech.sri.com">stolcke@speech.sri.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Pawan Goyal wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Andreas,<br>
<br>
Thanks for pointing out the incompatibly problem. I had the 32-bit binaries installed already, so tried the second option. I am not using tcl support, i.e. NO_TCL = X<br>
        TCL_INCLUDE =   TCL_LIBRARY = I am still getting the problems and sorry but not able to figure out the solution. Part of the error message during make World:<br>
</blockquote></div>
But now you are trying a 64bit compile! (look at your g++ options.<br>
<br>
That is fine, but you need to completely remove all old .o files because you cannot mix 32bit and 64bit .o files and libraries.<br>
<br>
Andreas<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
  ..................................................................................................................<br>
/usr/bin/g++ -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64    -I. -I../../include   -L../../lib/i686  -g -O3 -o ../bin/i686/maxalloc ../obj/i686/maxalloc.o ../obj/i686/libdstruct.a -lm -ldl ../../lib/i686/libmisc.a  -lm 2>&1 | c++filt<br>

/usr/bin/ld: i386 architecture of input file `../obj/i686/maxalloc.o' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: i386 architecture of input file `../../lib/i686/libmisc.a(option.o)' is incompatible with i386:x86-64 output<br>
collect2: ld returned 1 exit status<br>
/home/pawan/Documents/PhD/summarization/srilm/sbin/decipher-install 0555 ../bin/i686/maxalloc ../../bin/i686<br>
ERROR:  File to be installed (../bin/i686/maxalloc) does not exist.<br>
ERROR:  File to be installed (../bin/i686/maxalloc) is not a plain file.<br>
Usage:  decipher-install <mode> <file1> ... <fileN> <directory><br>
        mode:                 file permission mode, in octal<br>
        file1 ... fileN:      files to be installed<br>
        directory:            where the files should be installed<br>
<br>
files =  ../bin/i686/maxalloc<br>
directory =  ../../bin/i686<br>
mode =  0555<br>
<br>
make[2]: [../../bin/i686/maxalloc] Error 1 (ignored)<br>
make[2]: Leaving directory `/home/pawan/Documents/PhD/summarization/srilm/dstruct/src'<br>
make[2]: Entering directory `/home/pawan/Documents/PhD/summarization/srilm/lm/src'<br>
/usr/bin/g++ -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized -DINSTANTIATE_TEMPLATES -D_FILE_OFFSET_BITS=64    -I. -I../../include   -u matherr -L../../lib/i686  -g -O3 -o ../bin/i686/ngram ../obj/i686/ngram.o ../obj/i686/liboolm.a -lm -ldl ../../lib/i686/libflm.a ../../lib/i686/libdstruct.a ../../lib/i686/libmisc.a  -lm 2>&1 | c++filt<br>

collect2: ld terminated with signal 11 [Segmentation fault]<br>
/usr/bin/ld: i386 architecture of input file `../obj/i686/ngram.o' is incompatible with i386:x86-64 output<br>
/usr/bin/ld: i386 architecture of input file `../obj/i686/liboolm.a(matherr.o)' is incompatible with i386:x86-64 output<br>
......................................................................................<br>
/home/pawan/Documents/PhD/summarization/srilm/sbin/decipher-install 0555 ../bin/i686/ngram ../../bin/i686<br>
ERROR:  File to be installed (../bin/i686/ngram) does not exist.<br>
ERROR:  File to be installed (../bin/i686/ngram) is not a plain file.<br>
Usage:  decipher-install <mode> <file1> ... <fileN> <directory><br>
        mode:                 file permission mode, in octal<br>
        file1 ... fileN:      files to be installed<br>
        directory:            where the files should be installed<br>
<br>
files =  ../bin/i686/ngram<br>
directory =  ../../bin/i686<br>
mode =  0555<br>
<br>
make[2]: [../../bin/i686/ngram] Error 1 (ignored)<br>
<br>
...............................................................................<br>
<br>
Thanks Pawan<br>
<br></div></div><div><div></div><div class="h5">
On Mon, Jan 24, 2011 at 10:07 PM, Andreas Stolcke <<a href="mailto:stolcke@speech.sri.com" target="_blank">stolcke@speech.sri.com</a> <mailto:<a href="mailto:stolcke@speech.sri.com" target="_blank">stolcke@speech.sri.com</a>>> wrote:<br>

<br>
    Pawan Goyal wrote:<br>
<br>
        Hi all,<br>
<br>
        uname -a<br>
        Linux pawan-laptop 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10<br>
        23:42:43 UTC 2011 x86_64 GNU/Linux<br>
<br>
        gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)<br>
<br>
    The probable reason is that you're trying to compile  32-bit<br>
    binaries (the default for the i686 platform), but you Ubuntu<br>
    system doesn't have the required libraries installed (only the<br>
    64bit ones are installed on most systems).<br>
<br>
    Two solutions:   1) install the optional 32bit binaries using<br>
    commands such as<br>
<br>
    apt-get install ia32-libs<br>
<br>
    (if you want to build with Tcl support you'd also need the 32bit<br>
    version of libtcl -- don't know the name of the package).<br>
<br>
    2)  Compile 64bit binaries.   You can copy<br>
    common/Makefile.machine.i686-ubuntu to<br>
    common/Makefile.machine.i686, or edit the file by hand.<br>
<br>
    Andreas<br>
<br>
<br>
<br>
        error message while<br>
        make World<br>
<br>
        .........................<br>
        /usr/bin/ld: skipping incompatible<br>
        /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when<br>
        searching for -lstdc++<br>
        /usr/bin/ld: skipping incompatible<br>
        /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching<br>
        for -lstdc++<br>
<br>
        /usr/bin/ld: cannot find -lstdc++<br>
        collect2: ld returned 1 exit status<br>
        /home/pawan/Documents/PhD/summarization/srilm/sbin/decipher-install<br>
        0555 ../bin/i686/maxalloc ../../bin/i686<br>
        ERROR:  File to be installed (../bin/i686/maxalloc) does not<br>
        exist.<br>
        ERROR:  File to be installed (../bin/i686/maxalloc) is not a<br>
        plain file.<br>
        Usage:  decipher-install <mode> <file1> ... <fileN> <directory><br>
        mode:                 file permission mode, in octal<br>
        file1 ... fileN:      files to be installed<br>
        directory:            where the files should be installed<br>
<br>
        ..................................................................................<br>
<br>
        Thanks in advance<br>
        Pawan<br>
        ------------------------------------------------------------------------<br>
<br>
        _______________________________________________<br>
        SRILM-User site list<br></div></div>
        <a href="mailto:SRILM-User@speech.sri.com" target="_blank">SRILM-User@speech.sri.com</a> <mailto:<a href="mailto:SRILM-User@speech.sri.com" target="_blank">SRILM-User@speech.sri.com</a>><div class="im"><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>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div></div>