docker-kaldi-android
docker-kaldi-android copied to clipboard
compile-kaldi.sh - Error: FAILED matrix-lib-test
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!
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 :)
can u please tell the exact location of compile-kaldi.sh file, i am not able to find it.
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 :+1: