flashlight / wav2letter

Facebook AI Research's Automatic Speech Recognition Toolkit
https://github.com/facebookresearch/wav2letter/wiki
Other
6.39k stars 1.01k forks source link

issues in building the Dockerfile-CUDA #659

Closed shoegazerstella closed 3 years ago

shoegazerstella commented 4 years ago

Hi, I am encountering a series of issues in building the Dockerfile-CUDA you provide. First of all, building it as is, results in this error:

CMake Error at CMakeLists.txt:65 (message):
  ArrayFire versions < 3.7.1 are no longer supported with flashlight.  To
  build flashlight with a version of ArrayFire < 3.7.1, use commit <=
  5518d91b7f4fd5b400cbc802cfbecc0df57836bd.

So i added this line to change flashlight commit:

git checkout 5518d91b7f4fd5b400cbc802cfbecc0df57836bd

rebuilding with this change results at some point in this error here:

Scanning dependencies of target cpuid-dump
[ 86%] Building C object cpuinfo/CMakeFiles/cpuid-dump.dir/tools/cpuid-dump.c.o
[ 86%] Linking C executable cpuid-dump
[ 86%] Built target cpuid-dump
Scanning dependencies of target cpuinfo_internals
[ 86%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/init.c.o
[ 87%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/api.c.o
[ 88%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/init.c.o
[ 88%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/info.c.o
[ 89%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/vendor.c.o
[ 90%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/uarch.c.o
[ 90%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/name.c.o
[ 91%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/topology.c.o
[ 92%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/isa.c.o
[ 93%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/init.c.o
[ 93%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/descriptor.c.o
[ 94%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/deterministic.c.o
[ 95%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/linux/init.c.o
[ 95%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/linux/cpuinfo.c.o
[ 96%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/smallfile.c.o
[ 97%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/multiline.c.o
[ 97%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/current.c.o
[ 98%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/cpulist.c.o
[ 99%] Building C object cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/processors.c.o
[100%] Linking C static library libcpuinfo_internals.a
[100%] Built target cpuinfo_internals
[  6%] No install step for 'fbgemm'
[  6%] Completed 'fbgemm'
[  6%] Built target fbgemm
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
The command '/bin/sh -c cd /root && git clone --recursive https://github.com/facebookresearch/flashlight.git &&     cd /root/flashlight && mkdir -p build &&     git checkout 5518d91b7f4fd5b400cbc802cfbecc0df57836bd &&     cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DFLASHLIGHT_BACKEND=CUDA &&     make -j$(nproc) && make install &&     export MKLROOT=/opt/intel/mkl && export KENLM_ROOT_DIR=/root/kenlm &&     cd /root/wav2letter && mkdir -p build &&     cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DW2L_LIBRARIES_USE_CUDA=ON -DW2L_BUILD_INFERENCE=ON &&     make -j$(nproc)' returned a non-zero code: 2

I did not find any solution to this even if I see similar issues open. Maybe the checkout tag is not the correct one?

lunixbochs commented 4 years ago

I had to upgrade arrayfire instead of downgrading flashlight. Wav2letter won't build against old flashlight.

tlikhomanenko commented 4 years ago

@lunixbochs, @shoegazerstella

Flashlight and wav2letter are synchronised together. So if you are trying to build current master of wav2letter you need to use current master of flashlight too. Otherwise checkout in wav2letter to the commit at the same time as commit you checkout in flashlight.