[SRILM User List] error message while running make World

Andreas Stolcke stolcke at speech.sri.com
Mon Jan 24 17:27:20 PST 2011


Pawan Goyal wrote:
> Hi Andreas,
>
> 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
> 	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:
But now you are trying a 64bit compile! (look at your g++ options.

That is fine, but you need to completely remove all old .o files because 
you cannot mix 32bit and 64bit .o files and libraries.

Andreas
>   
> ..................................................................................................................
> /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
> /usr/bin/ld: i386 architecture of input file `../obj/i686/maxalloc.o' is incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `../../lib/i686/libmisc.a(option.o)' is incompatible with i386:x86-64 output
> collect2: ld returned 1 exit status
> /home/pawan/Documents/PhD/summarization/srilm/sbin/decipher-install 0555 ../bin/i686/maxalloc ../../bin/i686
> ERROR:  File to be installed (../bin/i686/maxalloc) does not exist.
> ERROR:  File to be installed (../bin/i686/maxalloc) is not a plain file.
> Usage:  decipher-install <mode> <file1> ... <fileN> <directory>
> 	mode:                 file permission mode, in octal
> 	file1 ... fileN:      files to be installed
> 	directory:            where the files should be installed
>
> files =  ../bin/i686/maxalloc
> directory =  ../../bin/i686
> mode =  0555
>
> make[2]: [../../bin/i686/maxalloc] Error 1 (ignored)
> make[2]: Leaving directory `/home/pawan/Documents/PhD/summarization/srilm/dstruct/src'
> make[2]: Entering directory `/home/pawan/Documents/PhD/summarization/srilm/lm/src'
> /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
> collect2: ld terminated with signal 11 [Segmentation fault]
> /usr/bin/ld: i386 architecture of input file `../obj/i686/ngram.o' is incompatible with i386:x86-64 output
> /usr/bin/ld: i386 architecture of input file `../obj/i686/liboolm.a(matherr.o)' is incompatible with i386:x86-64 output
> ......................................................................................
> /home/pawan/Documents/PhD/summarization/srilm/sbin/decipher-install 0555 ../bin/i686/ngram ../../bin/i686
> ERROR:  File to be installed (../bin/i686/ngram) does not exist.
> ERROR:  File to be installed (../bin/i686/ngram) is not a plain file.
> Usage:  decipher-install <mode> <file1> ... <fileN> <directory>
> 	mode:                 file permission mode, in octal
> 	file1 ... fileN:      files to be installed
> 	directory:            where the files should be installed
>
> files =  ../bin/i686/ngram
> directory =  ../../bin/i686
> mode =  0555
>
> make[2]: [../../bin/i686/ngram] Error 1 (ignored)
>
> ...............................................................................
>
> Thanks 
> Pawan
>
> On Mon, Jan 24, 2011 at 10:07 PM, Andreas Stolcke 
> <stolcke at speech.sri.com <mailto:stolcke at speech.sri.com>> wrote:
>
>     Pawan Goyal wrote:
>
>         Hi all,
>
>         uname -a
>         Linux pawan-laptop 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10
>         23:42:43 UTC 2011 x86_64 GNU/Linux
>
>         gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
>
>     The probable reason is that you're trying to compile  32-bit
>     binaries (the default for the i686 platform), but you Ubuntu
>     system doesn't have the required libraries installed (only the
>     64bit ones are installed on most systems).
>
>     Two solutions:   1) install the optional 32bit binaries using
>     commands such as
>
>     apt-get install ia32-libs
>
>     (if you want to build with Tcl support you'd also need the 32bit
>     version of libtcl -- don't know the name of the package).
>
>     2)  Compile 64bit binaries.   You can copy
>     common/Makefile.machine.i686-ubuntu to
>     common/Makefile.machine.i686, or edit the file by hand.
>
>     Andreas
>
>
>
>         error message while
>         make World
>
>         .........................
>         /usr/bin/ld: skipping incompatible
>         /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so when
>         searching for -lstdc++
>         /usr/bin/ld: skipping incompatible
>         /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a when searching
>         for -lstdc++
>
>         /usr/bin/ld: cannot find -lstdc++
>         collect2: ld returned 1 exit status
>         /home/pawan/Documents/PhD/summarization/srilm/sbin/decipher-install
>         0555 ../bin/i686/maxalloc ../../bin/i686
>         ERROR:  File to be installed (../bin/i686/maxalloc) does not
>         exist.
>         ERROR:  File to be installed (../bin/i686/maxalloc) is not a
>         plain file.
>         Usage:  decipher-install <mode> <file1> ... <fileN> <directory>
>         mode:                 file permission mode, in octal
>         file1 ... fileN:      files to be installed
>         directory:            where the files should be installed
>
>         ..................................................................................
>
>         Thanks in advance
>         Pawan
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         SRILM-User site list
>         SRILM-User at speech.sri.com <mailto:SRILM-User at speech.sri.com>
>         http://www.speech.sri.com/mailman/listinfo/srilm-user
>
>
>



More information about the SRILM-User mailing list