centos kaldi tools make openfst failed

723 views
Skip to first unread message

wbgl...@gmail.com

unread,
Mar 14, 2017, 10:01:42 PM3/14/17
to kaldi-help
Hi,all:
      when kaldi use the openfst-1.6.*, i hvae the error when i install kaldi,the error is:

depbase=`echo determinize.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I./../include  -fno-exceptions -funsigned-char  -std=c++11 -MT determinize.lo -MD -MP -MF $depbase.Tpo -c -o determinize.lo determinize.cc &&\
        mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I./../include -fno-exceptions -funsigned-char -std=c++11 -MT determinize.lo -MD -MP -MF .deps/determinize.Tpo -c determinize.cc  -fPIC -DPIC -o .libs/determinize.o
In file included from ./../include/fst/prune.h:16:0,
                 from ./../include/fst/determinize.h:23,
                 from ./../include/fst/script/determinize.h:7,
                 from determinize.cc:5:
./../include/fst/shortest-distance.h: In instantiation of 'void fst::ShortestDistance(const fst::Fst<Arc>&, std::vector<typename Arc::Weight>*, bool, float) [with Arc = fst::ArcTpl<fst::TropicalWeightTpl<float> >; typename Arc::Weight = fst::TropicalWeightTpl<float>]':
./../include/fst/determinize.h:1069:7:   required from 'void fst::Determinize(const fst::Fst<Arc>&, fst::MutableFst<Arc>*, const fst::DeterminizeOptions<Arc>&) [with Arc = fst::ArcTpl<fst::TropicalWeightTpl<float> >]'
./../include/fst/script/determinize.h:48:3:   required from 'void fst::script::Determinize(fst::script::DeterminizeArgs1*) [with Arc = fst::ArcTpl<fst::TropicalWeightTpl<float> >; fst::script::DeterminizeArgs1 = fst::script::args::Package<const fst::script::FstClass&, fst::script::MutableFstClass*, const fst::script::DeterminizeOptions&>]'
determinize.cc:34:1:   required from here
./../include/fst/shortest-distance.h:283:54: error: no type named 'Weight' in 'using ReverseArc = struct fst::ReverseArc<Arc>'
./../include/fst/shortest-distance.h: In instantiation of 'void fst::ShortestDistance(const fst::Fst<Arc>&, std::vector<typename Arc::Weight>*, bool, float) [with Arc = fst::ArcTpl<fst::LogWeightTpl<float> >; typename Arc::Weight = fst::LogWeightTpl<float>]':
./../include/fst/determinize.h:1069:7:   required from 'void fst::Determinize(const fst::Fst<Arc>&, fst::MutableFst<Arc>*, const fst::DeterminizeOptions<Arc>&) [with Arc = fst::ArcTpl<fst::LogWeightTpl<float> >]'
./../include/fst/script/determinize.h:48:3:   required from 'void fst::script::Determinize(fst::script::DeterminizeArgs1*) [with Arc = fst::ArcTpl<fst::LogWeightTpl<float> >; fst::script::DeterminizeArgs1 = fst::script::args::Package<const fst::script::FstClass&, fst::script::MutableFstClass*, const fst::script::DeterminizeOptions&>]'
determinize.cc:35:1:   required from here
./../include/fst/shortest-distance.h:283:54: error: no type named 'Weight' in 'using ReverseArc = struct fst::ReverseArc<Arc>'
./../include/fst/shortest-distance.h: In instantiation of 'void fst::ShortestDistance(const fst::Fst<Arc>&, std::vector<typename Arc::Weight>*, bool, float) [with Arc = fst::ArcTpl<fst::LogWeightTpl<double> >; typename Arc::Weight = fst::LogWeightTpl<double>]':
./../include/fst/determinize.h:1069:7:   required from 'void fst::Determinize(const fst::Fst<Arc>&, fst::MutableFst<Arc>*, const fst::DeterminizeOptions<Arc>&) [with Arc = fst::ArcTpl<fst::LogWeightTpl<double> >]'
./../include/fst/script/determinize.h:48:3:   required from 'void fst::script::Determinize(fst::script::DeterminizeArgs1*) [with Arc = fst::ArcTpl<fst::LogWeightTpl<double> >; fst::script::DeterminizeArgs1 = fst::script::args::Package<const fst::script::FstClass&, fst::script::MutableFstClass*, const fst::script::DeterminizeOptions&>]'
determinize.cc:36:1:   required from here
./../include/fst/shortest-distance.h:283:54: error: no type named 'Weight' in 'using ReverseArc = struct fst::ReverseArc<Arc>'
make[3]: *** [determinize.lo] Error 1

and my gcc is 4.7.2.
and when i install unbuntu16.04,is ok.maybe something wrong.
thank you very much

best wishes
ben

Daniel Povey

unread,
Mar 14, 2017, 10:17:29 PM3/14/17
to kaldi-help
We just increased the OpenFst version-- it looks like they fixed one problem but created another.  (All of this is about activating bugs in old gcc versions).  I'll revert the change and we'll apply a patch to the old version.

Dan


--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Povey

unread,
Mar 14, 2017, 10:23:02 PM3/14/17
to kaldi-help
For now, the quick fix is to edit
OPENFST_VERSION = 1.6.2
in tools/Makefile to say 1.6.1.
We'll fix this soon.

wbgl...@gmail.com

unread,
Mar 14, 2017, 10:46:14 PM3/14/17
to kaldi-help, dpo...@gmail.com
Hi, Dan:
      the openfst-1.6.0 ,openfst-1.6.1 and the openfst-1.6.2  are not ok. it is the same error.

thank you very much
ben

在 2017年3月15日星期三 UTC+8上午10:23:02,Dan Povey写道:
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.

Daniel Povey

unread,
Mar 14, 2017, 10:55:26 PM3/14/17
to bengu wu, kaldi-help
Your gcc version 4.7.2 is pretty old so I'm not going to spend a lot of time figuring out what the problem is and how to fix it.  I reported it to the OpenFst people though.


Jan Trmal

unread,
Mar 15, 2017, 12:08:28 PM3/15/17
to kaldi-help, bengu wu
I couldn't get my hands on gcc 4.7 -- works on 4.8 and up.
y.

To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages