lowerquality / gentle

gentle forced aligner
https://lowerquality.com/gentle/
MIT License
1.45k stars 295 forks source link

Can not build docker image with kaldi #224

Closed wclr closed 5 years ago

wclr commented 5 years ago

I added cloned source with --recursive-submodules

Build takes quite a while, but completes with an error:

make[2]: Leaving directory '/gentle/ext/kaldi/tools/OpenBLAS/exports'

 OpenBLAS build complete. (BLAS CBLAS LAPACK LAPACKE)

  OS               ... Linux
  Architecture     ... x86_64
  BINARY           ... 64bit
  C compiler       ... GCC  (command line : cc)
  Fortran compiler ... GFORTRAN  (command line : gfortran)
  Library Name     ... libopenblas_nehalem-r0.3.7.dev.a (Single threaded)

To install the library, you can run "make PREFIX=/path/to/your/installation install".

make -j 2 -f Makefile.install install
make[2]: Entering directory '/gentle/ext/kaldi/tools/OpenBLAS'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
Generating openblas_config.h in /gentle/ext/kaldi/tools/OpenBLAS/install/include
Generating f77blas.h in /gentle/ext/kaldi/tools/OpenBLAS/install/include
Generating cblas.h in /gentle/ext/kaldi/tools/OpenBLAS/install/include
Copying LAPACKE header files to /gentle/ext/kaldi/tools/OpenBLAS/install/include
Copying the static library to /gentle/ext/kaldi/tools/OpenBLAS/install/lib
Copying the shared library to /gentle/ext/kaldi/tools/OpenBLAS/install/lib
Generating openblas.pc in /gentle/ext/kaldi/tools/OpenBLAS/install/lib/pkgconfig
Generating OpenBLASConfig.cmake in /gentle/ext/kaldi/tools/OpenBLAS/install/lib/cmake/openblas
Generating OpenBLASConfigVersion.cmake in /gentle/ext/kaldi/tools/OpenBLAS/install/lib/cmake/openblas
Install OK!
make[2]: Leaving directory '/gentle/ext/kaldi/tools/OpenBLAS'
make[1]: Leaving directory '/gentle/ext/kaldi/tools/OpenBLAS'
Makefile:30: kaldi.mk: No such file or directory
kaldi.mk does not exist; you have to run ./configure
Makefile:96: recipe for target 'kaldi.mk' failed
make: *** [kaldi.mk] Error 1
Configuring KALDI to use OPENBLAS
Configuring ...
Checking compiler g++ ...
Checking OpenFst library in  ...
***configure failed: Could not find file /include/fst/fst.h:
  you may not have installed OpenFst. See ../tools/INSTALL ***
Makefile:30: kaldi.mk: No such file or directory
kaldi.mk does not exist; you have to run ./configure
Makefile:96: recipe for target 'kaldi.mk' failed
make: *** [kaldi.mk] Error 1
Makefile:5: kaldi/src/kaldi.mk: No such file or directory
Not building with cuda!!!
make: *** No rule to make target 'kaldi/src/kaldi.mk'.  Stop.
The command '/bin/sh -c export MAKEFLAGS=' -j8' &&  cd /gentle/ext &&   ./install_kaldi.sh &&   make depend && make && rm -rf kaldi *.o' returned a non-zero code: 2

image

wclr commented 5 years ago

I've managed to build on google cloud 1vCPU vm, with no j8 make param. with j8 it hanged the machine.

Though alignment doesn't work ) Will create another issue.

wclr commented 5 years ago

Will close this, build images works fine on linux. But fails to run on docker on windows. Not sure why yet.

And the build failure I'm not sure why maybe related with failure to install some dependencies:

***configure failed: Could not find file /include/fst/fst.h: