Compiling kaldi for armv7 on Ubuntu18.04

120 views
Skip to first unread message

www.e...@gmail.com

unread,
Jan 14, 2021, 4:45:23 AM1/14/21
to kaldi-help
I need to compile kaldi on a Cortex-A9 board with armv7l architecture (2 cores, 32bit, Gentoo OS) on an x86_64 (8 cores, 64bit) machine running Ubuntu18.04.

I tried to compile, but the error occurred already at the compilation stage of OpenBLAS. Launched with the command:
make -C OpenBLAS ONLY_CBLAS = 1 TARGET = "ARMV7" HOSTCC = gcc USE_LOCKING = 1 USE_THREAD = 0 NUM_THREADS = 32 all

Error:
ar: `u 'modifier ignored since` D' is the default (see `U ')
ar: sgemm_kernel.o: No such file or directory
../Makefile.tail:40: recipe for target 'libs' failed
make [1]: *** [libs] Error 1
make [1]: Leaving directory '/ home / *** / kaldi-master / tools / OpenBLAS / kernel'
Makefile: 149: recipe for target 'libs' failed
make: *** [libs] Error 1
make: Leaving directory '/ home / *** / kaldi-master / tools / OpenBLAS'


On the board itself, it is impossible to compile due to lack of RAM (at the stage of executing the "make -j 1" command, a fatal error appears in the tools / folder).
Maybe someone came across a similar question?

Daniel Povey

unread,
Jan 14, 2021, 5:46:46 AM1/14/21
to kaldi-help
Remember that OpenBLAS is not the only choice for BLAS library.
Our compilation with OpenBLAS+Arm may not have been tested, you may have to look upstream.

--
Go to http://kaldi-asr.org/forums.html to find out how to join the kaldi-help group
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/6ac7151b-68e8-4c3f-bc29-ad3ff0ddaed0n%40googlegroups.com.

www.e...@gmail.com

unread,
Jan 14, 2021, 6:19:16 AM1/14/21
to kaldi-help
As a result of my experiments, I can say that OpenBLAS compiles correctly on the arm architecture (at least the OpenBLAS and clapack compilation stage is successful to the end). The only problem is that I cannot continue compiling the following libraries (cub, openfst ...) on the board , since I run into a lack of memory when starting even with one processor.
Thus, I assume that the whole problem in the fact that I somehow incorrectly start the generation of OpenBLAS on my main computer for the arm architecture, since the error appears.

четверг, 14 января 2021 г. в 13:46:46 UTC+3, Dan Povey:

Daniel Povey

unread,
Jan 14, 2021, 8:20:18 AM1/14/21
to kaldi-help
It should be possible to cross-compile.  I'm afraid I am not very familiar with cross-compilation issues myself, although the `configure` script does support it.

Jan Trmal

unread,
Jan 14, 2021, 8:26:54 AM1/14/21
to kaldi-help
For one undisclosed project of mine, I used this: 

Эрнест Касимов

unread,
Jan 15, 2021, 4:29:59 AM1/15/21
to kaldi...@googlegroups.com
Thank you! I'll try it soon.

чт, 14 янв. 2021 г. в 16:26, Jan Trmal <jtr...@gmail.com>:
You received this message because you are subscribed to a topic in the Google Groups "kaldi-help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaldi-help/ytWP_3C7Gck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/CAFReZQaeVunNbUa-ZmVMG4OBz9RGLaNwjuCF6T%3Dmr1kgn3o40g%40mail.gmail.com.

Ho Yin Chan

unread,
Jan 18, 2021, 9:34:22 PM1/18/21
to kaldi-help
You need cross compiler e.g. GNU Arm Embedded Toolchain
Reply all
Reply to author
Forward
0 new messages