kaldi icon indicating copy to clipboard operation
kaldi copied to clipboard

【help】kaldi tools make error

Open cxyiris opened this issue 2 years ago • 13 comments

make[3]: *** [fst.lo] 错误 1 make[3]: 离开目录“/root/data/lain/kaldi/tools/openfst-1.7.2/src/lib” make[2]: *** [install-recursive] 错误 1 make[2]: 离开目录“/root/data/lain/kaldi/tools/openfst-1.7.2/src” make[1]: *** [install-recursive] 错误 1 make[1]: 离开目录“/root/data/lain/kaldi/tools/openfst-1.7.2” make: *** [openfst_compiled] 错误 2

cxyiris avatar May 17 '22 01:05 cxyiris

there was some error before you didn't notice -- this is just a way make finalizes when it encountered an error earlier you will need to find the previous error. Just run make again with -j 1 y.

On Mon, May 16, 2022 at 9:09 PM cxyiris @.***> wrote:

make[3]: *** [fst.lo] 错误 1 make[3]: 离开目录“/root/data/lain/kaldi/tools/openfst-1.7.2/src/lib” make[2]: *** [install-recursive] 错误 1 make[2]: 离开目录“/root/data/lain/kaldi/tools/openfst-1.7.2/src” make[1]: *** [install-recursive] 错误 1 make[1]: 离开目录“/root/data/lain/kaldi/tools/openfst-1.7.2” make: *** [openfst_compiled] 错误 2

— Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4743, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUKYXYU22WPZIUQWYARIF3VKLWWNANCNFSM5WDHQWNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jtrmal avatar May 17 '22 01:05 jtrmal

错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘constexpr’方面 this is error ,how can i do this

cxyiris avatar May 20 '22 14:05 cxyiris

that might be part of the error but not whole of it. Not easy to figure out the issue from just one line -- Especially when the rest is Mandarin. The fact it mentions constexpr might mean your gcc (compiler is too long) I think you will have to find someone more experienced around you to get local help. y.

On Fri, May 20, 2022 at 10:52 AM cxyiris @.***> wrote:

错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘constexpr’方面 this is error ,how can i do this

— Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4743#issuecomment-1133001039, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUKYX5BT7BNVBJRQYW5CZTVK6RLBANCNFSM5WDHQWNQ . You are receiving this because you commented.Message ID: @.***>

jtrmal avatar May 20 '22 14:05 jtrmal

错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘constexpr’方面

this is error ,how can i do this

You can post the whole error message, i.e., the output from running "make".

Also, please tell us your GCC version.

csukuangfj avatar May 20 '22 15:05 csukuangfj

The fact it mentions constexpr might mean your gcc (compiler is too long) -> The fact it mentions constexpr might mean your gcc (compiler) is too old. Sorry, I don't know what I was thinking about.

On Fri, May 20, 2022 at 10:54 AM Jan Yenda Trmal @.***> wrote:

that might be part of the error but not whole of it. Not easy to figure out the issue from just one line -- Especially when the rest is Mandarin. The fact it mentions constexpr might mean your gcc (compiler is too long) I think you will have to find someone more experienced around you to get local help. y.

On Fri, May 20, 2022 at 10:52 AM cxyiris @.***> wrote:

错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘constexpr’方面 this is error ,how can i do this

— Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4743#issuecomment-1133001039, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUKYX5BT7BNVBJRQYW5CZTVK6RLBANCNFSM5WDHQWNQ . You are receiving this because you commented.Message ID: @.***>

jtrmal avatar May 20 '22 15:05 jtrmal

./../include/fst/float-weight.h:389:53: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘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: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘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: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘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: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’不同

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright © 2015 Free Software Foundation, Inc

it's my both error,my gcc version is 4.8.5.Thank you for everyone who reply me.

cxyiris avatar May 20 '22 15:05 cxyiris

Hi, I think gcc 4.8.5 is unfortunately not fully C++11 compliant, so I suggest trying out a higher version. It's like 7 years old compiler.

y.

On Fri, May 20, 2022 at 11:16 AM cxyiris @.***> wrote:

./../include/fst/float-weight.h:389:53: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘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: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘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: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘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: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’不同

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright © 2015 Free Software Foundation, Inc

it's my both error,my gcc version is 4.8.5.Thank you for everyone who reply me.

— Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4743#issuecomment-1133026797, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUKYX56MBTK4LXKXO2ACUDVK6UDJANCNFSM5WDHQWNQ . You are receiving this because you commented.Message ID: @.***>

jtrmal avatar May 20 '22 15:05 jtrmal

I'm not familiar with centos/redhat but there should be a way how to install a newer version y.

On Fri, May 20, 2022 at 11:23 AM Jan Yenda Trmal @.***> wrote:

Hi, I think gcc 4.8.5 is unfortunately not fully C++11 compliant, so I suggest trying out a higher version. It's like 7 years old compiler.

y.

On Fri, May 20, 2022 at 11:16 AM cxyiris @.***> wrote:

./../include/fst/float-weight.h:389:53: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘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: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::TropicalWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘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: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘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: 错误:对‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’的重声明在‘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: 错误:与先前的声明‘Weight fst::Power(const Weight&, size_t) [with Weight = fst::LogWeightTpl; size_t = long unsigned int]’不同

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright © 2015 Free Software Foundation, Inc

it's my both error,my gcc version is 4.8.5.Thank you for everyone who reply me.

— Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4743#issuecomment-1133026797, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUKYX56MBTK4LXKXO2ACUDVK6UDJANCNFSM5WDHQWNQ . You are receiving this because you commented.Message ID: @.***>

jtrmal avatar May 20 '22 15:05 jtrmal

I met the other error when using the "make" command . c++: error: ../online2/libkaldi-online2.so: No such file or directory : recipe for target 'nnet3-init' failed make[1]: *** [nnet3-init] Error 1 make[1]: Leaving directory '/opt/kaldi/src/nnet3bin' Makefile:168: recipe for target 'nnet3bin' failed make: *** [nnet3bin] Error 2

waoooNiuBility avatar May 22 '22 05:05 waoooNiuBility

again, there was probably an error before this error, because the library was not generated. y.

On Sun, May 22, 2022 at 1:41 AM Leisure @.***> wrote:

I met the other error when using the "make" command . c++: error: ../online2/libkaldi-online2.so: No such file or directory : recipe for target 'nnet3-init' failed make[1]: *** [nnet3-init] Error 1 make[1]: Leaving directory '/opt/kaldi/src/nnet3bin' Makefile:168: recipe for target 'nnet3bin' failed make: *** [nnet3bin] Error 2

— Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4743#issuecomment-1133823013, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUKYX6B6LC4LX4D6YNMKXLVLHCHHANCNFSM5WDHQWNQ . You are receiving this because you commented.Message ID: @.***>

jtrmal avatar May 22 '22 15:05 jtrmal

I met the other error when using the "make" command . c++: error: ../online2/libkaldi-online2.so: No such file or directory : recipe for target 'nnet3-init' failed make[1]: *** [nnet3-init] Error 1 make[1]: Leaving directory '/opt/kaldi/src/nnet3bin' Makefile:168: recipe for target 'nnet3bin' failed make: *** [nnet3bin] Error 2

Please see https://github.com/kaldi-asr/kaldi/pull/4749 It should fix your issue.

csukuangfj avatar May 27 '22 01:05 csukuangfj

I just merged the fix -- please update kaldi (git pull) and try again. Sorry for the complications

jtrmal avatar May 27 '22 10:05 jtrmal

This issue has been automatically marked as stale by a bot solely because it has not had recent activity. Please add any comment (simply 'ping' is enough) to prevent the issue from being closed for 60 more days if you believe it should be kept open.

stale[bot] avatar Jul 30 '22 22:07 stale[bot]

resolved, I think. Please reopen if there is still an issue

jtrmal avatar Aug 12 '22 14:08 jtrmal

For me,update gcc can't fix this

nocoolsandwich avatar Mar 21 '23 03:03 nocoolsandwich