Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_dependencies.sh: "all OK". However while running make getting "error: redeclaration ‘Weight fst::Power(const Weight&, size_t)" #4865

Open
JanardhanPasala opened this issue Aug 7, 2023 · 0 comments

Comments

@JanardhanPasala
Copy link

Team, could you please help me, what is going wrong here: check_dependencies.sh: all OK. However below is the error log while running make.

In file included from ./../include/fst/arc.h:16:0,
from ./../include/fst/fst.h:26,
from fst.cc:6:
./../include/fst/float-weight.h:389:53: error: redeclaration ‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’ differs in ‘constexpr’
const TropicalWeightTpl &weight, size_t n) {
^
In file included from ./../include/fst/pair-weight.h:18:0,
from ./../include/fst/expectation-weight.h:24,
from ./../include/fst/arc.h:15,
from ./../include/fst/fst.h:26,
from fst.cc:6:
./../include/fst/weight.h:204:8: error: from previous declaration ‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’
Weight Power(const Weight &weight, size_t n) {
^
In file included from ./../include/fst/arc.h:16:0,
from ./../include/fst/fst.h:26,
from fst.cc:6:
./../include/fst/float-weight.h:395:54: error: redeclaration ‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’ differs in ‘constexpr’
const TropicalWeightTpl &weight, size_t n) {
^
In file included from ./../include/fst/pair-weight.h:18:0,
from ./../include/fst/expectation-weight.h:24,
from ./../include/fst/arc.h:15,
from ./../include/fst/fst.h:26,
from fst.cc:6:
./../include/fst/weight.h:204:8: error: from previous declaration ‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’
Weight Power(const Weight &weight, size_t n) {
^
In file included from ./../include/fst/arc.h:16:0,
from ./../include/fst/fst.h:26,
from fst.cc:6:
./../include/fst/float-weight.h:573:48: error: redeclaration ‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’ differs in ‘constexpr’
const LogWeightTpl &weight, size_t n) {
^
In file included from ./../include/fst/pair-weight.h:18:0,
from ./../include/fst/expectation-weight.h:24,
from ./../include/fst/arc.h:15,
from ./../include/fst/fst.h:26,
from fst.cc:6:
./../include/fst/weight.h:204:8: error: from previous declaration ‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’
Weight Power(const Weight &weight, size_t n) {
^
In file included from ./../include/fst/arc.h:16:0,
from ./../include/fst/fst.h:26,
from fst.cc:6:
./../include/fst/float-weight.h:579:49: error: redeclaration ‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’ differs in ‘constexpr’
const LogWeightTpl &weight, size_t n) {
^
In file included from ./../include/fst/pair-weight.h:18:0,
from ./../include/fst/expectation-weight.h:24,
from ./../include/fst/arc.h:15,
from ./../include/fst/fst.h:26,
from fst.cc:6:
./../include/fst/weight.h:204:8: error: from previous declaration ‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’
Weight Power(const Weight &weight, size_t n) {
^
make[3]: *** [fst.lo] Error 1
make[3]: Leaving directory /home/jpasala/kaldi/tools/openfst-1.7.2/src/lib' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory /home/jpasala/kaldi/tools/openfst-1.7.2/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/jpasala/kaldi/tools/openfst-1.7.2'
make: *** [openfst_compiled] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant