-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Issues in compiling for wasm (Ubuntu 18.04) #4523
Comments
you could try to add '-msimd128' to the compilation flags in kaldi.mk
y.
…On Mon, May 10, 2021 at 4:57 AM raphael10-collab ***@***.***> wrote:
I'm having some issues in compiling Kaldi for wasm :
https://gitlab.inria.fr/kaldi.web/kaldi-wasm/-/wikis/build_details.md#cpp-bind
I first compiled clapack-wasm following these indications:
https://prod-gitlab.inria.fr/kaldi.web/clapack-wasm
and got the resulting following files:
(base) ***@***.***:~/cpp/kaldi/clapack-wasm/libf2c$ ls -lah | grep libf2c.a
-rw-rw-r-- 1 marco marco 175K mag 10 09:48 libf2c.a
(base) ***@***.***:~/cpp/kaldi/clapack-wasm/f2c_BLAS-3.8.0$ ls -lah | grep blas.a
-rw-rw-r-- 1 marco marco 463K mag 10 09:48 blas.a
(base) ***@***.***:~/cpp/kaldi/clapack-wasm/CBLAS/lib$ ls -lah
total 180K
drwxrwxr-x 2 marco marco 4,0K mag 10 09:49 .
drwxrwxr-x 7 marco marco 4,0K mag 10 09:48 ..
-rw-rw-r-- 1 marco marco 172K mag 10 09:49 cblas.a
I configured Kaldi for wasm :
(base) ***@***.***:~/cpp/kaldi/src$ emconfigure ./configure --use-cuda=no --static --clapack-root=/home/marco/cpp/kaldi/clapack-wasm --host=WASM
configure: ./configure --use-cuda=no --static --clapack-root=/home/marco/cpp/kaldi/clapack-wasm --host=WASM
Configuring KALDI to use CLAPACK.
Checking compiler /home/marco/emsdk-master/upstream/emscripten/em++ ...
WARNING: Unfamiliar compiler /home/marco/emsdk-master/upstream/emscripten/em++. Use at your risk and peril.
Checking OpenFst library in /home/marco/cpp/kaldi/tools/openfst-1.7.2 ...
Performing OS specific configuration ...
On Linux: Checking for linear algebra header files ...
Using CLAPACK libs from /home/marco/cpp/kaldi/clapack-wasm as the linear algebra library.
Warning (CLAPACK): this part of the configure process is not properly tested and may not work.
Successfully configured for Linux with CLAPACK libs from /home/marco/cpp/kaldi/clapack-wasm
INFO: Configuring Kaldi not to link with Speex. Don't worry, it's only needed if
you intend to use 'compress-uncompress-speex', which is very unlikely.
Kaldi has been successfully configured. To compile:
make -j clean depend; make -j <NCPU>
where <NCPU> is the number of parallel builds you can afford to do. If unsure,
use the smaller of the number of CPUs or the amount of RAM in GB divided by 2,
to stay within safe limits. 'make -j' without the numeric value may not limit
the number of parallel jobs at all, and overwhelm even a powerful workstation,
since Kaldi build is highly parallelized.
(base) ***@***.***:~/cpp/kaldi/src$
But, then, I get these errors:
(base) ***@***.***:~/cpp/kaldi/src$ make -j 7 clean depend
make -C base/ depend
make -C matrix/ depend
make -C util/ depend
make -C feat/ depend
make -C cudafeat/ depend
make -C tree/ depend
make -C gmm/ depend
make[1]: Entering directory '/home/marco/cpp/kaldi/src/base'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/matrix'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/util'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/cudafeat'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/tree'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/gmm'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/feat'
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -g -Wno-mismatched-tags feature-online-batched-cmvn-cuda.cc online-cuda-feature-pipeline.cc feature-online-batched-ivector-cuda.cc feature-online-batched-spectral-cuda.cc online-batched-feature-pipeline-cuda.cc online-ivector-feature-cuda.cc >> .depend.mk
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -g -Wno-mismatched-tags matrix-lib-test.cc sparse-matrix.cc optimization.cc sparse-matrix-test.cc numpy-array-test.cc kaldi-vector.cc packed-matrix.cc matrix-lib-speed-test.cc kaldi-matrix.cc matrix-functions.cc qr.cc numpy-array.cc tp-matrix.cc sp-matrix.cc srfft.cc compressed-matrix.cc >> .depend.mk
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -g -Wno-mismatched-tags edit-distance-test.cc kaldi-table-test.cc text-utils-test.cc hash-list-test.cc simple-io-funcs.cc simple-options-test.cc const-integer-set-test.cc kaldi-holder.cc kaldi-table.cc parse-options-test.cc simple-options.cc kaldi-thread-test.cc kaldi-io-test.cc parse-options.cc text-utils.cc stl-utils-test.cc kaldi-thread.cc kaldi-io.cc kaldi-semaphore.cc >> .depend.mk
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -g -Wno-mismatched-tags feature-sdc-test.cc signal-test.cc feature-fbank-test.cc wave-reader-test.cc feature-plp-test.cc pitch-functions-test.cc feature-functions-test.cc resample-test.cc online-feature.cc feature-mfcc-test.cc signal.cc online-feature-test.cc wave-reader.cc feature-fbank.cc feature-plp.cc pitch-functions.cc feature-functions.cc resample.cc feature-mfcc.cc feature-spectrogram.cc mel-computations.cc feature-window.cc >> .depend.mk
rm -f .depend.mk
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -g -Wno-mismatched-tags mle-full-gmm.cc mle-am-diag-gmm.cc model-test-common.cc diag-gmm-test.cc full-gmm-test.cc diag-gmm-normal.cc decodable-am-diag-gmm.cc ebw-diag-gmm-test.cc model-common.cc am-diag-gmm.cc full-gmm-normal.cc diag-gmm.cc indirect-diff-diag-gmm.cc am-diag-gmm-test.cc full-gmm.cc mle-diag-gmm-test.cc ebw-diag-gmm.cc mle-full-gmm-test.cc mle-am-diag-gmm-test.cc mle-diag-gmm.cc >> .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -g -Wno-mismatched-tags build-tree.cc build-tree-utils-test.cc tree-renderer.cc cluster-utils-test.cc build-tree-questions.cc event-map-test.cc build-tree-utils.cc clusterable-classes.cc context-dep-test.cc cluster-utils.cc build-tree-test.cc event-map.cc context-dep.cc >> .depend.mk
rm -f .depend.mk
em++: error: Passing any of -msse, -msse2, -msse3, -mssse3, -msse4.1, -msse4.2, -mavx, -mfpu=neon flags also requires passing -msimd128!
em++: error: Passing any of -msse, -msse2, -msse3, -mssse3, -msse4.1, -msse4.2, -mavx, -mfpu=neon flags also requires passing -msimd128!
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -g -Wno-mismatched-tags io-funcs.cc kaldi-math.cc kaldi-error-test.cc kaldi-utils.cc timer-test.cc timer.cc kaldi-error.cc io-funcs-test.cc kaldi-math-test.cc >> .depend.mk
em++: error: Passing any of -msse, -msse2, -msse3, -mssse3, -msse4.1, -msse4.2, -mavx, -mfpu=neon flags also requires passing -msimd128!
../makefiles/default_rules.mk:149: recipe for target 'depend' failed
make[1]: *** [depend] Error 1
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/cudafeat'
Makefile:127: recipe for target 'cudafeat/depend' failed
make: *** [cudafeat/depend] Error 2
make: *** Waiting for unfinished jobs....
em++: error: Passing any of -msse, -msse2, -msse3, -mssse3, -msse4.1, -msse4.2, -mavx, -mfpu=neon flags also requires passing -msimd128!
../makefiles/default_rules.mk:149: recipe for target 'depend' failed
make[1]: *** [depend] Error 1
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/matrix'
Makefile:127: recipe for target 'matrix/depend' failed
make: *** [matrix/depend] Error 2
../makefiles/default_rules.mk:149: recipe for target 'depend' failed
make[1]: *** [depend] Error 1
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/util'
Makefile:127: recipe for target 'util/depend' failed
make: *** [util/depend] Error 2
em++: error: Passing any of -msse, -msse2, -msse3, -mssse3, -msse4.1, -msse4.2, -mavx, -mfpu=neon flags also requires passing -msimd128!
../makefiles/default_rules.mk:149: recipe for target 'depend' failed
make[1]: *** [depend] Error 1
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/feat'
Makefile:127: recipe for target 'feat/depend' failed
make: *** [feat/depend] Error 2
../makefiles/default_rules.mk:149: recipe for target 'depend' failed
make[1]: *** [depend] Error 1
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/tree'
Makefile:127: recipe for target 'tree/depend' failed
make: *** [tree/depend] Error 2
em++: error: Passing any of -msse, -msse2, -msse3, -mssse3, -msse4.1, -msse4.2, -mavx, -mfpu=neon flags also requires passing -msimd128!
../makefiles/default_rules.mk:149: recipe for target 'depend' failed
make[1]: *** [depend] Error 1
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/gmm'
Makefile:127: recipe for target 'gmm/depend' failed
make: *** [gmm/depend] Error 2
em++: error: Passing any of -msse, -msse2, -msse3, -mssse3, -msse4.1, -msse4.2, -mavx, -mfpu=neon flags also requires passing -msimd128!
../makefiles/default_rules.mk:149: recipe for target 'depend' failed
make[1]: *** [depend] Error 1
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/base'
Makefile:127: recipe for target 'base/depend' failed
make: *** [base/depend] Error 2
(base) ***@***.***:~/cpp/kaldi/src$
OS: Ubuntu 18.04.4 Desktop
gcc : gcc version 9.3.0 (Ubuntu 9.3.0-11ubuntu0~18.04.1)
How to solve these error messages and make it work?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4523>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYXYN7MFJYOQCL6UIQCTTM6NV7ANCNFSM44QUVTIQ>
.
|
Hi added to /src/kaldi.mk :
That previous error disappeared, while another came :
|
I'm not sure about that one. I'd personally try to figure out if wasm is
even able to do backtrace and if yes, how.
y.
…On Mon, May 10, 2021 at 10:27 AM raphael10-collab ***@***.***> wrote:
Hi added to /src/kaldi.mk :
the flag -msimd128.
CXXFLAGS = -std=c++14 -I.. -isystem $(OPENFSTINC) -O1 $(EXTRA_CXXFLAGS) \
-Wall -Wno-sign-compare -Wno-unused-local-typedefs \
-Wno-deprecated-declarations -Winit-self \
-DKALDI_DOUBLEPRECISION=$(DOUBLE_PRECISION) \
-DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK \
-msse -msse2 -msimd128 \
-g
That previous error disappeared, while another came : execinfo.h file not
found :
(base) ***@***.***:~/cpp/kaldi/src$ make depend -j 8
make -C base/ depend
make -C matrix/ depend
make -C util/ depend
make -C feat/ depend
make -C cudafeat/ depend
make -C tree/ depend
make -C gmm/ depend
make -C transform/ depend
make[1]: Entering directory '/home/marco/cpp/kaldi/src/base'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/matrix'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/util'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/feat'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/cudafeat'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/tree'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/transform'
make[1]: Entering directory '/home/marco/cpp/kaldi/src/gmm'
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -msimd128 -g -Wno-mismatched-tags matrix-lib-test.cc sparse-matrix.cc optimization.cc sparse-matrix-test.cc numpy-array-test.cc kaldi-vector.cc packed-matrix.cc matrix-lib-speed-test.cc kaldi-matrix.cc matrix-functions.cc qr.cc numpy-array.cc tp-matrix.cc sp-matrix.cc srfft.cc compressed-matrix.cc >> .depend.mk
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -msimd128 -g -Wno-mismatched-tags build-tree.cc build-tree-utils-test.cc tree-renderer.cc cluster-utils-test.cc build-tree-questions.cc event-map-test.cc build-tree-utils.cc clusterable-classes.cc context-dep-test.cc cluster-utils.cc build-tree-test.cc event-map.cc context-dep.cc >> .depend.mk
rm -f .depend.mk
rm -f .depend.mk
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -msimd128 -g -Wno-mismatched-tags mle-full-gmm.cc mle-am-diag-gmm.cc model-test-common.cc diag-gmm-test.cc full-gmm-test.cc diag-gmm-normal.cc decodable-am-diag-gmm.cc ebw-diag-gmm-test.cc model-common.cc am-diag-gmm.cc full-gmm-normal.cc diag-gmm.cc indirect-diff-diag-gmm.cc am-diag-gmm-test.cc full-gmm.cc mle-diag-gmm-test.cc ebw-diag-gmm.cc mle-full-gmm-test.cc mle-am-diag-gmm-test.cc mle-diag-gmm.cc >> .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -msimd128 -g -Wno-mismatched-tags lda-estimate-test.cc transform-common.cc regression-tree-test.cc compressed-transform-stats.cc mllt.cc fmllr-diag-gmm-test.cc decodable-am-diag-gmm-regtree.cc fmllr-raw-test.cc lda-estimate.cc regtree-fmllr-diag-gmm.cc lvtln.cc regression-tree.cc regtree-mllr-diag-gmm-test.cc fmllr-diag-gmm.cc fmllr-raw.cc fmpe.cc cmvn.cc regtree-mllr-diag-gmm.cc basis-fmllr-diag-gmm.cc regtree-fmllr-diag-gmm-test.cc fmpe-test.cc >> .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -msimd128 -g -Wno-mismatched-tags feature-online-batched-cmvn-cuda.cc online-cuda-feature-pipeline.cc feature-online-batched-ivector-cuda.cc feature-online-batched-spectral-cuda.cc online-batched-feature-pipeline-cuda.cc online-ivector-feature-cuda.cc >> .depend.mk
rm -f .depend.mk
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -msimd128 -g -Wno-mismatched-tags feature-sdc-test.cc signal-test.cc feature-fbank-test.cc wave-reader-test.cc feature-plp-test.cc pitch-functions-test.cc feature-functions-test.cc resample-test.cc online-feature.cc feature-mfcc-test.cc signal.cc online-feature-test.cc wave-reader.cc feature-fbank.cc feature-plp.cc pitch-functions.cc feature-functions.cc resample.cc feature-mfcc.cc feature-spectrogram.cc mel-computations.cc feature-window.cc >> .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -msimd128 -g -Wno-mismatched-tags edit-distance-test.cc kaldi-table-test.cc text-utils-test.cc hash-list-test.cc simple-io-funcs.cc simple-options-test.cc const-integer-set-test.cc kaldi-holder.cc kaldi-table.cc parse-options-test.cc simple-options.cc kaldi-thread-test.cc kaldi-io-test.cc parse-options.cc text-utils.cc stl-utils-test.cc kaldi-thread.cc kaldi-io.cc kaldi-semaphore.cc >> .depend.mk
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -msimd128 -g -Wno-mismatched-tags io-funcs.cc kaldi-math.cc kaldi-error-test.cc kaldi-utils.cc timer-test.cc timer.cc kaldi-error.cc io-funcs-test.cc kaldi-math-test.cc >> .depend.mk
kaldi-error.cc:24:10: fatal error: 'execinfo.h' file not found
#include <execinfo.h> // To get stack trace in error messages.
^~~~~~~~~~~~
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/cudafeat'
make -C fstext/ depend
make[1]: Entering directory '/home/marco/cpp/kaldi/src/fstext'
1 error generated.
em++: error: '/home/marco/emsdk-master/upstream/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=14 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/home/marco/emsdk-master/upstream/emscripten/cache/sysroot -D__SSE__=1 -D__SSE2__=1 -Xclang -iwithsysroot/include/compat -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msimd128 -g -Wno-mismatched-tags kaldi-error.cc' failed (1)
../makefiles/default_rules.mk:149: recipe for target 'depend' failed
make[1]: *** [depend] Error 1
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/base'
Makefile:127: recipe for target 'base/depend' failed
make: *** [base/depend] Error 2
make: *** Waiting for unfinished jobs....
rm -f .depend.mk
/home/marco/emsdk-master/upstream/emscripten/em++ -M -std=c++14 -I.. -isystem /home/marco/cpp/kaldi/tools/openfst-1.7.2/include -O1 -Wno-sign-compare -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -I../../tools/CLAPACK -msse -msse2 -msimd128 -g -Wno-mismatched-tags context-fst.cc push-special-test.cc push-special.cc prune-special-test.cc deterministic-fst-test.cc trivial-factor-weight-test.cc kaldi-fst-io.cc factor-test.cc fstext-utils-test.cc lattice-weight-test.cc determinize-star-test.cc determinize-lattice-test.cc lattice-utils-test.cc grammar-context-fst.cc table-matcher-test.cc remove-eps-local-test.cc context-fst-test.cc epsilon-property-test.cc pre-determinize-test.cc >> .depend.mk
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/tree'
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/matrix'
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/util'
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/gmm'
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/feat'
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/transform'
make[1]: Leaving directory '/home/marco/cpp/kaldi/src/fstext'
(base) ***@***.***:~/cpp/kaldi/src$
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4523 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYX6UPXAKKT4YPGC7A4LTM7UMZANCNFSM44QUVTIQ>
.
|
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. |
@raphael10-collab. I was looking for a way to compile Kaldi to WASM and found this https://hal.archives-ouvertes.fr/hal-02910876/document, the code is here https://github.com/killinux/kaldi-wasm, and here is a live demo https://kaldi-web.loria.fr. |
Thank you very much @carloslfu !!!! |
I'm having some issues in compiling Kaldi for
wasm
: https://gitlab.inria.fr/kaldi.web/kaldi-wasm/-/wikis/build_details.md#cpp-bindI first compiled clapack-wasm following these indications: https://prod-gitlab.inria.fr/kaldi.web/clapack-wasm
and got the resulting following files:
I configured Kaldi for
wasm
:But, then, I get these errors:
OS: Ubuntu 18.04.4 Desktop
gcc : gcc version 9.3.0 (Ubuntu 9.3.0-11ubuntu0~18.04.1)
How to solve these error messages and make it work?
The text was updated successfully, but these errors were encountered: