Skip to content

Can not build torchaudio from source  #1266

@AzizCode92

Description

@AzizCode92

🐛 Bug

To Reproduce

Steps to reproduce the behavior:

Steps inside the documentation as described in the README.md

Error Message:

CMake Error at third_party/kaldi/CMakeLists.txt:28 (add_library):
Cannot find source file:
      submodule/src/base/kaldi-error.cc
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx
CMake Error at third_party/kaldi/CMakeLists.txt:28 (add_library):
  No SOURCES given to target: kaldi
CMake Generate step failed.  Build files cannot be regenerated correctly.

Expected behavior

Successful build from source

Environment

  • What commands did you used to install torchaudio (conda/pip/build from source)? from source
  • If you are building from source, which commit is it? 05bff83
  • What does torchaudio.__version__ print? (If applicable) Not applicable

Output of collect_env.py

Collecting environment information...
PyTorch version: 1.9.0.dev20210212
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 11.2.1 (x86_64)
GCC version: Could not collect
Clang version: 11.0.0 (clang-1100.0.33.8)
CMake version: version 3.18.4

Python version: 3.7 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.19.2
[pip3] torch==1.9.0.dev20210212
[conda] blas                      1.0                         mkl  
[conda] mkl                       2019.4                      233  
[conda] mkl-service               2.3.0            py37h9ed2024_0  
[conda] mkl_fft                   1.2.0            py37hc64f4ea_0  
[conda] mkl_random                1.1.1            py37h959d312_0  
[conda] numpy                     1.19.2           py37h456fd55_0  
[conda] numpy-base                1.19.2           py37hcfb5961_0  
[conda] pytorch                   1.9.0.dev20210212         py3.7_0    pytorch-nightly

Additional context

Steps of building torchaudio from source:

conda install pytorch -c pytorch-nightly -y
conda install -c conda-forge sox -y
pip3 install cmake ninja
conda install -c conda-forge pkg-config -y
conda install -c conda-forge ncurses -y 
pip3 install -r requirements.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions