kaldi icon indicating copy to clipboard operation
kaldi copied to clipboard

0s... FAIL matrix-lib-test when cross-compiling

Open lordadamson opened this issue 4 years ago • 8 comments

So, some libraries have tests that run while building. Which is a problem if you're cross-compiling. I assume the issue is that the tests fail because it's built for a different architecture and the build system is trying to run it on the host.

unfortunately that disrupts the build process.

My workaround currently is that I'm doing this before I make

sed -i 's|TESTFILES|#TESTFILES|' base/Makefile
sed -i 's|TESTFILES|#TESTFILES|' matrix/Makefile

These two commands will comment the two lines that specify the tests that should be run in base and matrix (these are the ones that fail on my machine).

So maybe provide an option so that I can configure kaldi not to run the tests while building. That would be awesome.

lordadamson avatar Jun 25 '20 15:06 lordadamson

I'm currently looking into another cross-platform issue with configure, let me keep that in mind. You are absolutely right, we should not try to run tests compiled for Android... :-\

kkm000 avatar Jun 26 '20 11:06 kkm000

Yeah sure. Thanks for responding. I can work on this if you want me to.

lordadamson avatar Jun 26 '20 11:06 lordadamson

I need to do the configure part first, to make the TARGET_ARCH variable available in the Makefile. After that it's no brainer, so do not bother.

kkm000 avatar Jun 27 '20 02:06 kkm000

Alright cool :D

lordadamson avatar Jun 27 '20 12:06 lordadamson

@lordadamson, this is next in my pipeline. I'll ask you to review and try the changes--hope you'll be able to find time for that?

kkm000 avatar Jul 21 '20 21:07 kkm000

Sure! I'll be happy to help.

On Tue, Jul 21, 2020, 11:07 PM kkm000 [email protected] wrote:

@lordadamson https://github.com/lordadamson, this is next in my pipeline. I'll ask you to review and try the changes--hope you'll be able to find time for that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4137#issuecomment-662106863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKOUEQCUAGRNCXCAKL4PBP3R4X7RJANCNFSM4OIPYK3A .

lordadamson avatar Jul 21 '20 22:07 lordadamson

it's useful! Much thanks!!!

yuezhangW avatar Jul 18 '22 01:07 yuezhangW

It's helpful. Thank you so much :)

greeeenmouth avatar Sep 06 '23 06:09 greeeenmouth