Skip to content

compile-kaldi.sh - Error: FAILED matrix-lib-test #11

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

Open
lamnguyenx opened this issue Jan 10, 2019 · 3 comments
Open

compile-kaldi.sh - Error: FAILED matrix-lib-test #11

lamnguyenx opened this issue Jan 10, 2019 · 3 comments

Comments

@lamnguyenx
Copy link

Hi @jcsilva

I've pulled your docker image and ran it by the following command:

docker run --entrypoint='' -it -v /root/git/kaldi-android:/opt/kaldi jcsilva/docker-kaldi-android:latest /bin/bash

This helped me make cub in Kaldi's tools folder, since Kaldi had a weird issue with --use-cuda=no
option passed to configure file (it still tried to include cude):

cd /opt/kaldi/src/tools && make cub

After that, I've run compile-kaldi.sh . It was working for a while until this issue pops up:

arm-linux-androideabi-clang++ -Wl,--no-warn-mismatch -pie matrix-lib-test.o kaldi-matrix.a ../base/kaldi-base.a /opt/kaldi/tools/openfst/lib/libfst.a /opt/OpenBLAS/install/lib/libopenblas.a /opt/OpenBLAS/install/lib/libclapack.a /opt/OpenBLAS/install/lib/liblapack.a /opt/OpenBLAS/install/lib/libblas.a /opt/OpenBLAS/install/lib/libf2c.a -lm -ldl -o matrix-lib-test
Running matrix-lib-test ... 1s... FAIL matrix-lib-test
Running sparse-matrix-test ... 0s... FAIL sparse-matrix-test
make[1]: *** [test] Error 1
make[1]: Leaving directory /opt/kaldi/src/matrix
make: *** [all] Error 2

I'm looking forward to a hint, @jcsilva :) Might it be a bug with arm-linux-androideabi-clang++?

Thank you!

@lamnguyenx
Copy link
Author

Hi @jcsilva

Finally I've solved all these issues:

  • First off, open the container, and --use-cuda=no to the following line in "compile-kaldi.sh":
    CXX=clang++ ./configure **--use-cuda=no** --static --android-incdir=${ANDROID_TOOLCHAIN_PATH}/sysroot/usr/include/ --host=arm-linux-androideabi --openblas-root=${WORKING_DIR}/OpenBLAS/install

  • Open /opt/kaldi/src/matrix/Makefile and comment these test files:
    TESTFILES = #matrix-lib-test sparse-matrix-test #matrix-lib-speed-test

That's all :)

@hariom95
Copy link

can u please tell the exact location of compile-kaldi.sh file, i am not able to find it.

@lamnguyenx
Copy link
Author

lamnguyenx commented Sep 22, 2019

can u please tell the exact location of compile-kaldi.sh file, i am not able to find it.

I've just check the Dockerfile: https://github.com/jcsilva/docker-kaldi-android/blob/master/Dockerfile. Seems that it resides at /opt/ ;)

Also, you could simply run docker exec -it <container_name> /bin/bash to open the container's interactive shell 👍

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

2 participants