|
From: Daniel P. <dp...@gm...> - 2013-11-09 14:51:44
|
Forwarding this thread to kaldi-users for archiving.
Dan
---------- Forwarded message ----------
From: Marco Siniscalchi <sin...@gm...>
Date: Fri, Nov 8, 2013 at 6:43 PM
Subject: Re: KALDI on Mac OS 10.9
To: Arnab Ghoshal <ar...@gm...>
Cc: Daniel Povey <dp...@gm...>
Dear Daniel and Arnab,
Thank you very much for your prompt reply.
I have followed Arnab's tip, and I have installed Kaldi on Mac OS X
10.0 using gcc4.4. It seems that the installation was successful but
with several warnings.
Thanks.
Ciao,
Marco
p.s.
You definitely do not need the following info, but just for the sake
of sharing what I have done:
The makefile/darwin_10_9 file contains the following lines:
ifndef FSTROOT
$(error FSTROOT not defined.)
endif
CXXFLAGS = -msse -msse2 -stdlib=libstdc++ -Wall -I.. \
-fPIC \
-DKALDI_DOUBLEPRECISION=0 -DHAVE_POSIX_MEMALIGN \
-Wno-sign-compare -Winit-self \
-DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H \
-DHAVE_CLAPACK \
-I$(FSTROOT)/include \
$(EXTRA_CXXFLAGS) \
-g # -O0 -DKALDI_PARANOID
LDFLAGS = -g
LDLIBS = $(EXTRA_LDLIBS) $(FSTROOT)/lib/libfst.a -ldl -lm -lpthread
-framework Accelerate
CXX = g++
CC = g++-mp-4.4
RANLIB = ranlib
AR = ar
On Fri, Nov 8, 2013 at 5:19 PM, Arnab Ghoshal <ar...@gm...> wrote:
>
> There has been a major change in the compilers in 10.9. It is all LLVM
> compiler (clang) now, even though the executable is called gcc. Some
> of the changes are due to strict C++11 standard compliance and will
> eventually be standard in other compilers (e.g. anything still
> including tr1 headers will not compile). I still haven't managed to
> compile most of the things on 10.9 and trying to figure out what all
> is needed. Maybe a stop-gap solution is to install gcc4.4 using
> macports and use that. If you try that please let us know what
> happens.
> -arnab
>
> On Fri, Nov 8, 2013 at 11:09 AM, Daniel Povey <dp...@gm...> wrote:
> > Arnab may be able to help with this..
> > Dan
> >
> >
> > On Fri, Nov 8, 2013 at 6:20 AM, Marco Siniscalchi
> > <sin...@gm...> wrote:
> >> Dear Daniel, hi.
> >>
> >> I am trying to install KALDI on a Mac OS X 10.9, but I unfortunately run
> >> into the following error message:
> >>
> >> Undefined symbols for architecture x86_64:
> >> "std::string::find_last_of(char, unsigned long) const", referenced from:
> >> kaldi::OffsetFileInputImpl::SplitFilename(std::string const&,
> >> std::string*, unsigned long*) in kaldi-util.a(kaldi-io.o)
> >>
> >> when the following command is executed
> >>
> >> kaldi-truck/src/> gcc -g -rdynamic align-equal.o ../lm/kaldi-lm.a
> >> ../decoder/kaldi-decoder.a ../lat/kaldi-lat.a ../hmm/kaldi-hmm.a
> >> ../transform/kaldi-transform.a ../gmm/kaldi-gmm.a ../tree/kaldi-tree.a
> >> ../matrix/kaldi-matrix.a ../util/kaldi-util.a ../base/kaldi-base.a
> >> ../thread/kaldi-thread.a
> >> /Users/marco/KALDI/kaldi-trunk/tools/openfst/lib/libfst.a -ldl -lm -lpthread
> >> -framework Accelerate -o align-equal
> >>
> >>
> >> Any suggestion to fix it? BTW: i did not have any problem when installing
> >> KALDI on a Mac OS X 10.6.8
> >>
> >> Thank you in advance for your time.
> >>
> >> Ciao,
> >> marco
> >>
> >> FYI:
> >>
> >> 1) Darwin Kernel Version 13.0.2: Sun Sep 29 19:38:57 PDT 2013;
> >> root:xnu-2422.75.4~1/RELEASE_X86_64 x86_64
> >>
> >> 2) I have generated a makefike/darwin_10_9.mk which is very similar to
> >> makefike/darwin_10_8.mk, but it uses the flag -stdlib=libstdc++
> >>
> >> 3) I had to use the flag -stdlib=libstdc++ to compile openfst
|