problems compiling on alpha

Twitchell, Doug dtwitchell at cmi.arizona.edu
Wed Jan 26 09:33:10 PST 2005


I attempting to compile srilm on the following machine:

Machine: HP/Compaq Alpha GS1280
OS: Tru64 Unix
Compiler: gcc 3.4.3
Make:  GNU make 3.80

Everything compiles cleanly except the "ngram" executable (which, of
course, is one that I need to use).  

This is the error it returns during the make:

g++ -mieee-with-inexact -Wreturn-type -Wimplicit -DINSTANTIATE_TEMPLATES
-I~/tcl/generic -I. -I/home4/u12/dtwitche/srilm/include   -u matherr
-L/home4/u12/dtwitche/srilm/lib/alpha  -g3 -O2 -o ../bin/alpha/ngram
../obj/alpha/ngram.o -L/home4/u12/dtwitche/srilm/lib/alpha
../obj/alpha/liboolm.a -lm -lflm -ldstruct -lmisc -L~/tcl/unix -ltcl -lm
2>&1 | c++filt
/usr/bin/ld:
../obj/alpha/liboolm.a(CacheLM.o): LHash<unsigned int,
double>::removedData: multiply defined
../obj/alpha/liboolm.a(CacheLM.o): global constructors keyed to
_ZN5LHashIjdE11removedDataE: multiply defined
../obj/alpha/liboolm.a(CacheLM.o): global destructors keyed to
_ZN5LHashIjdE11removedDataE: multiply defined
../obj/alpha/liboolm.a(CacheLM.o):
_GLOBAL__F__ZN5LHashIjdE11removedDataE: multiply defined
collect2: ld returned 1 exit status

Any ideas on how to resolve this?

Thanks,

Doug




More information about the SRILM-User mailing list