/openfst-1.6.1' Makefile:61: recipe for target 'openfst_compile failed

714 views
Skip to first unread message

Venki Ravi

unread,
Mar 11, 2017, 1:32:18 AM3/11/17
to kaldi-developers
Today i checked out the latest  version from git.
I have my g++ latest version 5+
While making - Openfst 1.6.1 compile error occurs.

collect2: error: ld returned 1 exit status
Makefile:705: recipe for target 'fstarcsort' failed
make[3]: *** [fstarcsort] Error 1
make[3]: Leaving directory '/home/rvenkidapathy/kaldi/tools/openfst-1.6.1/src/bin'
Makefile:358: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/home/rvenkidapathy/kaldi/tools/openfst-1.6.1/src'
Makefile:414: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/rvenkidapathy/kaldi/tools/openfst-cc -c  -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1  -I. -Os text.c
In file included from ./../include/fst/fstlib.h:72:0,
                 from ./../include/fst/script/arciterator-class.h:10,
                 from arciterator-class.cc:4:
./../include/fst/shortest-path.h: In function 'void fst::internal::SingleShortestPathBacktrace(const fst::Fst<Arc>&, fst::MutableFst<Arc>*, const std::vector<std::pair<typename Arc::StateId, long unsigned int> >&, typename Arc::StateId)':
./../include/fst/shortest-path.h:77:8: error: inconsistent deduction for 'auto': 'auto' and then 'int'
   for (auto state = f_parent, d = kNoStateId; state != kNoStateId;
        ^~~~
1.6.1'


Any help is appreciated

Thanks

Ravi
Makefile:61: recipe for target 'openfst_compiled' f

Further error logs:



Daniel Povey

unread,
Mar 11, 2017, 1:39:30 AM3/11/17
to kaldi-developers
It's a bug in that version of gcc.  The solution is a more recent version.


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

R A V E

unread,
Mar 11, 2017, 2:19:48 AM3/11/17
to kaldi-de...@googlegroups.com
Hi Dan

The latest version was 5.6 I tried with that.

As per the INSTALL file I also tried the specific version 4.88

Both failed to compile



You received this message because you are subscribed to a topic in the Google Groups "kaldi-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaldi-developers/l3A1ISP4XLE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kaldi-developers+unsubscribe@googlegroups.com.

Daniel Povey

unread,
Mar 11, 2017, 2:25:00 AM3/11/17
to kaldi-developers
I suspect you are not really using the g++ version that you think you are using.

Daniel Povey

unread,
Mar 11, 2017, 2:33:05 AM3/11/17
to kaldi-developers
Hopefully within a couple of days, though, we'll add a patch so that it even works with the "bad" versions of gcc.  I'm not sure exactly which version are affected.

Daniel Povey

unread,
Mar 11, 2017, 2:41:15 AM3/11/17
to kaldi-developers
quick fix is to change 'auto' on that line to 'typename Arc::StateId'.

Reply all
Reply to author
Forward
0 new messages