[SRILM User List] installation on mac lion error on negram class
mohsen jadidi
mohsen.jadidi at gmail.com
Sun Mar 3 13:46:20 PST 2013
Hello everybody,
I am trying to install versiobn 1.7 on mac, but it keeps giving me error:
.
.
.
.
./fngram-count.cc ./fngram.cc | sed -e "s&^\([^
]\)&../obj/macosx"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >>
Dependencies.macosx
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
/Users/mohsenjadidi/Downloads/srilm/sbin/generate-program-dependencies
../bin/macosx ../obj/macosx "" pngram fngram-count fngram | sed -e
"s&\.o&.o&g" >> Dependencies.macosx
rm -f Dependencies.macosx
c++ -Wreturn-type -Wimplicit -DINSTANTIATE_TEMPLATES -I/usr/include -I.
-I../../include -DHAVE_ZOPEN -MM ./Lattice.cc ./LatticeAlign.cc
./LatticeExpand.cc ./LatticeIndex.cc ./LatticeNBest.cc ./LatticeNgrams.cc
./LatticeReduce.cc ./HTKLattice.cc ./LatticeLM.cc ./LatticeThreads.cc
./LatticeDecode.cc ./testLattice.cc ./lattice-tool.cc | sed -e "s&^\([^
]\)&../obj/macosx"'$(OBJ_OPTION)'"/\1&g" -e "s&\.o&.o&g" >>
Dependencies.macosx
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but
not for C++ [enabled by default]
/Users/mohsenjadidi/Downloads/srilm/sbin/generate-program-dependencies
../bin/macosx ../obj/macosx "" testLattice lattice-tool | sed -e
"s&\.o&.o&g" >> Dependencies.macosx
rm -f Dependencies.macosx
/Users/mohsenjadidi/Downloads/srilm/sbin/generate-program-dependencies
../bin/macosx ../obj/macosx "" | sed -e "s&\.o&.o&g" >> Dependencies.macosx
make release-libraries
for subdir in misc dstruct lm flm lattice utils; do \
(cd $subdir/src; make SRILM=/Users/mohsenjadidi/Downloads/srilm
MACHINE_TYPE=macosx OPTION= MAKE_PIC= release-libraries) || exit 1; \
done
make[2]: Nothing to be done for `release-libraries'.
make[2]: Nothing to be done for `release-libraries'.
make[2]: Nothing to be done for `release-libraries'.
make[2]: Nothing to be done for `release-libraries'.
make[2]: Nothing to be done for `release-libraries'.
make[2]: Nothing to be done for `release-libraries'.
make release-programs
for subdir in misc dstruct lm flm lattice utils; do \
(cd $subdir/src; make SRILM=/Users/mohsenjadidi/Downloads/srilm
MACHINE_TYPE=macosx OPTION= MAKE_PIC= release-programs) || exit 1; \
done
make[2]: Nothing to be done for `release-programs'.
make[2]: Nothing to be done for `release-programs'.
c++ -Wreturn-type -Wimplicit -DINSTANTIATE_TEMPLATES -I/usr/include -I.
-I../../include -DHAVE_ZOPEN -u _matherr -L../../lib/macosx -g -O2
-fno-common -o ../bin/macosx/ngram ../obj/macosx/ngram.o
../obj/macosx/liboolm.a ../../lib/macosx/libflm.a
../../lib/macosx/libdstruct.a ../../lib/macosx/libmisc.a -L/usr/lib -ltcl
-lm -liconv 2>&1 | c++filt
Undefined symbols for architecture x86_64:
"std::ctype<char>::_M_widen_init() const", referenced from:
makeLoglinearMixLM(Array<char const*>, Vocab&, SubVocab*, unsigned
int, LM*, Array<double>) in ngram.o
LHash<unsigned int, unsigned int*>::dump() const in
liboolm.a(MultiwordVocab.o)
LHash<char const*, unsigned int*>::dump() const in
liboolm.a(RefList.o)
ClassNgram::prefixProb(unsigned int, unsigned int const*, float&,
TextStats&) in liboolm.a(ClassNgram.o)
ClassNgram::expand(unsigned int, unsigned int) in
liboolm.a(ClassNgram.o)
NgramCounts<float>::readBinaryNode(Trie<unsigned int, float>&,
unsigned int, unsigned int, File&, long long&, bool, Array<unsigned int>&)
in liboolm.a(ClassNgram.o)
NgramCounts<float>::readBinary(File&, unsigned int, bool) in
liboolm.a(ClassNgram.o)
...
"_libiconv", referenced from:
File::fgetsUTF8(char*, int) in libmisc.a(File.o)
"_libiconv_close", referenced from:
File::~File() in libmisc.a(File.o)
File::~File() in libmisc.a(File.o)
File::reopen(char const*, char const*) in libmisc.a(File.o)
File::reopen(char const*) in libmisc.a(File.o)
File::reopen(char const*, unsigned long, int) in libmisc.a(File.o)
File::reopen(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, int) in libmisc.a(File.o)
"_libiconv_open", referenced from:
File::fgetsUTF8(char*, int) in libmisc.a(File.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
test -f ../bin/macosx/ngram
make[2]: *** [../bin/macosx/ngram] Error 1
make[1]: *** [release-programs] Error 1
make: *** [World] Error 2
Why it's happening? I managed to install the version 1.6 without any
problem but I couln't find file ngram-count?
I ran the make file both with and without specifying the platform and wi
Also I tried changing the gcc flag in common.Make..macosx from c++ to gcc
but didnt work.
Any help is appreciated
--
Mohsen Jadidi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20130303/d5e1f877/attachment.html>
More information about the SRILM-User
mailing list