Skip to content
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

Torchaudio Installation Jetson Aarch System #658

Closed
ark626 opened this issue May 26, 2020 · 11 comments
Closed

Torchaudio Installation Jetson Aarch System #658

ark626 opened this issue May 26, 2020 · 11 comments
Labels

Comments

@ark626
Copy link

ark626 commented May 26, 2020

🐛 Bug

For the Jetson Series there is already Torch available but Torchaudio isnt.

To Reproduce

Try install from source to an Jetson Device.
Steps to reproduce the behavior:

  1. Clone repository
  2. sudo packaging/build_from_source.sh
    => Crash of the sh script.

Workaround

This crash is a result of the libraries config.guess that doesnt know the aarch architecture.
This can be bypassed by replacing midinstall the config.guess with a more current one like this
https://raw.githubusercontent.com/ropensci/git2r/master/tools/config.guess

Replace the ones in those folders =>
/tmp/torchaudio-deps/lame-3.99.5/config.guess
/tmp/torchaudio-deps/libmad-0.15.1b/config.guess

Also Edit the Script sudo packaging/build_from_source.sh to not override those changes again.

Now it should install.

Expected behavior

Normal installation of the required dependencies.

Environment

Collecting environment information...
PyTorch version: 1.4.0a0+7f73f1d
Is debug build: No
CUDA used to build PyTorch: 10.2

OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.2.89
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Probably one of the following:
/usr/lib/aarch64-linux-gnu/libcudnn.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_adv_infer.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_adv_train.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_cnn_infer.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_cnn_train.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_etc.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_ops_infer.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_ops_train.so.8.0.0

Versions of relevant libraries:
[pip3] numpy==1.18.4
[pip3] torch==1.5.0
[pip3] torchaudio==0.6.0a0+313f4f5
[pip3] torchvision==0.6.0a0+b68adcf
[conda] Could not collect
@mthrok
Copy link
Collaborator

mthrok commented May 26, 2020

Hi @ark626

Thanks for opening the issue and sharing the workaround.
I am open to update the dependency installation script to support aarch64, however, CI system we use (CircleCI) does not seem to provide aarch64 environment so we cannot guarantee the successful build all the time. (Although if the issue happens only in dependency it should work)
Therefore I will keep this issue open as reference point for future audience who seek instruction for building torchaudio in aarch64.

@mthrok mthrok added the build label Jun 3, 2020
mthrok pushed a commit to mthrok/audio that referenced this issue Feb 26, 2021
@Thomas-Mccabe
Copy link

Hi,

./third_party/tmp/lame-3.99.5/config.guess doesn't exist anymore but I am still getting build issues when trying to build on a tx2. What config.guess do I need to update?

@mthrok
Copy link
Collaborator

mthrok commented May 3, 2021

Hi @Thomas-Mccabe

We have switched to cmake-based build so the the build intermediate files are in ls build/temp.linux-<arch>-<version>/third_party/sox/src/mad/config.guess, however the directory is managed by CMake and manual changes applied there would be updated by CMake. We need to update the config.guess files as a proper CMake build process. Particularly as PATCH_COMMAND in the following section.

ExternalProject_Add(lame
PREFIX ${CMAKE_CURRENT_BINARY_DIR}
DOWNLOAD_DIR ${ARCHIVE_DIR}
URL https://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
URL_HASH SHA256=24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E env ${envs} ${CMAKE_CURRENT_BINARY_DIR}/src/lame/configure ${COMMON_ARGS} --enable-nasm
DOWNLOAD_NO_PROGRESS ON
LOG_DOWNLOAD ON
LOG_UPDATE ON
LOG_CONFIGURE ON
LOG_BUILD ON
LOG_INSTALL ON
LOG_MERGED_STDOUTERR ON
LOG_OUTPUT_ON_FAILURE ON
)

Let me see if I can quickly come up with the solution.

@mthrok
Copy link
Collaborator

mthrok commented May 3, 2021

@Thomas-Mccabe

Can you try this patch and let me know if it works? c42830b

If this works, we can merge it to the master branch. #1484

@Thomas-Mccabe
Copy link

Hi,

I've copied the config.guess that ark626 linked and used
sudo BUILD_SOX=1 python3 setup.py install

But there seems to be an issue with building sox. I am running ubuntu 18.04 and already have torch 1.8 installed from
https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-8-0-now-available/72048

I have attached a snippet of the error.

output.txt

@mthrok
Copy link
Collaborator

mthrok commented May 6, 2021

Okay, looks like codecs are now built.
Regarding the error, in my experience, this happens when there are too many parallel jobs and the machine runs out of memory.
Can you set CMAKE_BUILD_PARALLEL_LEVEL to something smaller than what nproc reports?

c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.

@discort
Copy link
Contributor

discort commented May 15, 2021

just wanted to share that I've built torchaudio==0.8.0 successfully on my Jetson AVG xavier (jetpack 4.4).
Take a look at gist.

Full logs

python setup.py install
-- Building version 0.8.0a0+099d788
running install
running bdist_egg
running egg_info
creating torchaudio.egg-info
writing torchaudio.egg-info/PKG-INFO
writing dependency_links to torchaudio.egg-info/dependency_links.txt
writing requirements to torchaudio.egg-info/requires.txt
writing top-level names to torchaudio.egg-info/top_level.txt
writing manifest file 'torchaudio.egg-info/SOURCES.txt'
reading manifest file 'torchaudio.egg-info/SOURCES.txt'
writing manifest file 'torchaudio.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-aarch64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/torchaudio
copying torchaudio/version.py -> build/lib.linux-aarch64-3.6/torchaudio
copying torchaudio/transforms.py -> build/lib.linux-aarch64-3.6/torchaudio
copying torchaudio/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio
copying torchaudio/kaldi_io.py -> build/lib.linux-aarch64-3.6/torchaudio
creating build/lib.linux-aarch64-3.6/torchaudio/models
copying torchaudio/models/conv_tasnet.py -> build/lib.linux-aarch64-3.6/torchaudio/models
copying torchaudio/models/wavernn.py -> build/lib.linux-aarch64-3.6/torchaudio/models
copying torchaudio/models/wav2letter.py -> build/lib.linux-aarch64-3.6/torchaudio/models
copying torchaudio/models/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/models
creating build/lib.linux-aarch64-3.6/torchaudio/compliance
copying torchaudio/compliance/kaldi.py -> build/lib.linux-aarch64-3.6/torchaudio/compliance
copying torchaudio/compliance/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/compliance
creating build/lib.linux-aarch64-3.6/torchaudio/sox_effects
copying torchaudio/sox_effects/sox_effects.py -> build/lib.linux-aarch64-3.6/torchaudio/sox_effects
copying torchaudio/sox_effects/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/sox_effects
creating build/lib.linux-aarch64-3.6/torchaudio/extension
copying torchaudio/extension/extension.py -> build/lib.linux-aarch64-3.6/torchaudio/extension
copying torchaudio/extension/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/extension
creating build/lib.linux-aarch64-3.6/torchaudio/functional
copying torchaudio/functional/functional.py -> build/lib.linux-aarch64-3.6/torchaudio/functional
copying torchaudio/functional/filtering.py -> build/lib.linux-aarch64-3.6/torchaudio/functional
copying torchaudio/functional/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/functional
creating build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/yesno.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/librispeech.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/utils.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/libritts.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/ljspeech.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/speechcommands.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/vctk.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/commonvoice.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/cmuarctic.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/gtzan.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/tedlium.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
creating build/lib.linux-aarch64-3.6/torchaudio/utils
copying torchaudio/utils/sox_utils.py -> build/lib.linux-aarch64-3.6/torchaudio/utils
copying torchaudio/utils/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/utils
creating build/lib.linux-aarch64-3.6/torchaudio/_internal
copying torchaudio/_internal/misc_ops.py -> build/lib.linux-aarch64-3.6/torchaudio/_internal
copying torchaudio/_internal/module_utils.py -> build/lib.linux-aarch64-3.6/torchaudio/_internal
copying torchaudio/_internal/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/_internal
copying torchaudio/_internal/fft.py -> build/lib.linux-aarch64-3.6/torchaudio/_internal
creating build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/soundfile_backend.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/common.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/utils.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/sox_backend.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/no_backend.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/sox_io_backend.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/_soundfile_backend.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
running build_ext
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda-10.2 (found version "10.2")
-- Caffe2: CUDA detected: 10.2
-- Caffe2: CUDA nvcc is: /usr/local/cuda-10.2/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda-10.2
-- Caffe2: Header version is: 10.2
-- Found CUDNN: /usr/lib/aarch64-linux-gnu/libcudnn.so
-- Found cuDNN: v8.0.0  (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libcudnn.so)
CMake Warning at /home/discort/projects/.env/lib/python3.6/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:198 (message):
  Failed to compute shorthash for libnvrtc.so
Call Stack (most recent call first):
  /home/discort/projects/.env/lib/python3.6/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:88 (include)
  /home/discort/projects/.env/lib/python3.6/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
  CMakeLists.txt:55 (find_package)


-- Autodetected CUDA architecture(s):  7.2
-- Added CUDA NVCC flags for: -gencode;arch=compute_72,code=sm_72
-- Found Torch: /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libtorch.so
get_version.sh: 37: get_version.sh: Bad substitution
get_version.sh: 45: get_version.sh: [[: not found
get_version.sh: The version number "5.5" specified in src/.version is not in MAJOR.MINOR format.
get_version.sh: Stopping the construction of full version number from git history.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/discort/projects/audio/build/temp.linux-aarch64-3.6
[1/19] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-error.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-error.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-error.cc.o -c ../../third_party/kaldi/submodule/src/base/kaldi-error.cc
[2/19] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-math.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-math.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-math.cc.o -c ../../third_party/kaldi/submodule/src/base/kaldi-math.cc
[3/19] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-matrix.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-matrix.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-matrix.cc.o -c ../../third_party/kaldi/src/matrix/kaldi-matrix.cc
[4/19] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/resample.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/resample.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/resample.cc.o -c ../../third_party/kaldi/submodule/src/feat/resample.cc
[5/19] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-vector.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-vector.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-vector.cc.o -c ../../third_party/kaldi/src/matrix/kaldi-vector.cc
[6/19] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/feature-functions.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/feature-functions.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/feature-functions.cc.o -c ../../third_party/kaldi/submodule/src/feat/feature-functions.cc
[7/19] /usr/bin/c++  -DTORCH_API_INCLUDE_EXTENSION_H -D_torchaudio_EXPORTS -I../../ -I/usr/include/python3.6m -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/legacy.cpp.o -MF torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/legacy.cpp.o.d -o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/legacy.cpp.o -c ../../torchaudio/csrc/sox/legacy.cpp
[8/19] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/pitch-functions.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/pitch-functions.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/pitch-functions.cc.o -c ../../third_party/kaldi/submodule/src/feat/pitch-functions.cc
../../third_party/kaldi/submodule/src/feat/pitch-functions.cc: In member function ‘void kaldi::OnlinePitchFeatureImpl::UpdateRemainder(const kaldi::VectorBase<float>&)’:
../../third_party/kaldi/submodule/src/feat/pitch-functions.cc:814:11: warning: unused variable ‘full_frame_length’ [-Wunused-variable]
     int32 full_frame_length = opts_.NccfWindowSize() + nccf_last_lag_;
           ^~~~~~~~~~~~~~~~~
../../third_party/kaldi/submodule/src/feat/pitch-functions.cc: In member function ‘void kaldi::OnlineProcessPitch::UpdateNormalizationStats(kaldi::int32)’:
../../third_party/kaldi/submodule/src/feat/pitch-functions.cc:1504:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (normalization_stats_.size() <= frame)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[9/19] : && /usr/bin/cmake -E remove third_party/kaldi/libkaldi.a && /usr/bin/ar qc third_party/kaldi/libkaldi.a  third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-vector.cc.o third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-matrix.cc.o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-error.cc.o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-math.cc.o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/feature-functions.cc.o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/pitch-functions.cc.o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/resample.cc.o && /usr/bin/ranlib third_party/kaldi/libkaldi.a && :
[10/19] /usr/bin/c++  -DTORCH_API_INCLUDE_EXTENSION_H -D_torchaudio_EXPORTS -I../../ -I/usr/include/python3.6m -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/effects.cpp.o -MF torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/effects.cpp.o.d -o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/effects.cpp.o -c ../../torchaudio/csrc/sox/effects.cpp
[11/19] /usr/bin/c++  -DTORCH_API_INCLUDE_EXTENSION_H -D_torchaudio_EXPORTS -I../../ -I/usr/include/python3.6m -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/io.cpp.o -MF torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/io.cpp.o.d -o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/io.cpp.o -c ../../torchaudio/csrc/sox/io.cpp
[12/19] /usr/bin/c++  -DTORCH_API_INCLUDE_EXTENSION_H -D_torchaudio_EXPORTS -I../../ -I/usr/include/python3.6m -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/utils.cpp.o -MF torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/utils.cpp.o.d -o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/utils.cpp.o -c ../../torchaudio/csrc/sox/utils.cpp
[13/19] /usr/bin/c++  -DTORCH_API_INCLUDE_EXTENSION_H -D_torchaudio_EXPORTS -I../../ -I/usr/include/python3.6m -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/types.cpp.o -MF torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/types.cpp.o.d -o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/types.cpp.o -c ../../torchaudio/csrc/sox/types.cpp
[14/19] /usr/bin/c++  -DTORCH_API_INCLUDE_EXTENSION_H -D_torchaudio_EXPORTS -I../../ -I/usr/include/python3.6m -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT torchaudio/csrc/CMakeFiles/_torchaudio.dir/lfilter.cpp.o -MF torchaudio/csrc/CMakeFiles/_torchaudio.dir/lfilter.cpp.o.d -o torchaudio/csrc/CMakeFiles/_torchaudio.dir/lfilter.cpp.o -c ../../torchaudio/csrc/lfilter.cpp
[15/19] /usr/bin/c++  -DTORCH_API_INCLUDE_EXTENSION_H -D_torchaudio_EXPORTS -I../../ -I/usr/include/python3.6m -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT torchaudio/csrc/CMakeFiles/_torchaudio.dir/pybind.cpp.o -MF torchaudio/csrc/CMakeFiles/_torchaudio.dir/pybind.cpp.o.d -o torchaudio/csrc/CMakeFiles/_torchaudio.dir/pybind.cpp.o -c ../../torchaudio/csrc/pybind.cpp
[16/19] /usr/bin/c++  -DTORCH_API_INCLUDE_EXTENSION_H -D_torchaudio_EXPORTS -I../../ -I/usr/include/python3.6m -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT torchaudio/csrc/CMakeFiles/_torchaudio.dir/kaldi.cpp.o -MF torchaudio/csrc/CMakeFiles/_torchaudio.dir/kaldi.cpp.o.d -o torchaudio/csrc/CMakeFiles/_torchaudio.dir/kaldi.cpp.o -c ../../torchaudio/csrc/kaldi.cpp
[17/19] /usr/bin/c++  -DTORCH_API_INCLUDE_EXTENSION_H -D_torchaudio_EXPORTS -I../../ -I/usr/include/python3.6m -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/effects_chain.cpp.o -MF torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/effects_chain.cpp.o.d -o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/effects_chain.cpp.o -c ../../torchaudio/csrc/sox/effects_chain.cpp
../../torchaudio/csrc/sox/effects_chain.cpp: In function ‘int torchaudio::sox_effects_chain::{anonymous}::fileobj_output_flow(sox_effect_t*, const sox_sample_t*, sox_sample_t*, size_t*, size_t*)’:
../../torchaudio/csrc/sox/effects_chain.cpp:456:10: warning: unused variable ‘buffer_size’ [-Wunused-variable]
     auto buffer_size = priv->buffer_size;
          ^~~~~~~~~~~
[18/19] : && /usr/bin/c++ -fPIC -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -O3 -DNDEBUG   -shared -Wl,-soname,_torchaudio.so -o torchaudio/csrc/_torchaudio.so torchaudio/csrc/CMakeFiles/_torchaudio.dir/pybind.cpp.o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/legacy.cpp.o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/io.cpp.o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/utils.cpp.o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/effects.cpp.o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/effects_chain.cpp.o torchaudio/csrc/CMakeFiles/_torchaudio.dir/sox/types.cpp.o torchaudio/csrc/CMakeFiles/_torchaudio.dir/lfilter.cpp.o torchaudio/csrc/CMakeFiles/_torchaudio.dir/kaldi.cpp.o  -Wl,-rpath,/home/discort/projects/.env/lib/python3.6/site-packages/torch/lib:/usr/local/cuda-10.2/lib64/stubs:/usr/local/cuda-10.2/lib64: /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libc10.so /usr/local/cuda-10.2/lib64/stubs/libcuda.so /usr/local/cuda-10.2/lib64/libnvrtc.so /usr/local/cuda-10.2/lib64/libnvToolsExt.so /usr/local/cuda-10.2/lib64/libcudart.so /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libc10_cuda.so /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libtorch_python.so third_party/kaldi/libkaldi.a -lsox /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libtorch.so -Wl,--no-as-needed,"/home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libtorch_cpu.so" -Wl,--as-needed -lpthread -Wl,--no-as-needed,"/home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libtorch_cuda.so" -Wl,--as-needed /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libc10_cuda.so /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libc10.so /usr/local/cuda-10.2/lib64/libcufft.so /usr/local/cuda-10.2/lib64/libcurand.so /usr/lib/aarch64-linux-gnu/libcublas.so /usr/lib/aarch64-linux-gnu/libcudnn.so -Wl,--no-as-needed,"/home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libtorch.so" -Wl,--as-needed /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libc10.so /usr/local/cuda-10.2/lib64/stubs/libcuda.so /usr/local/cuda-10.2/lib64/libnvrtc.so /usr/local/cuda-10.2/lib64/libnvToolsExt.so /usr/local/cuda-10.2/lib64/libcudart.so /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libc10_cuda.so && :
[18/19] cd /home/discort/projects/audio/build/temp.linux-aarch64-3.6 && /usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /home/discort/projects/audio/build/lib.linux-aarch64-3.6/torchaudio/_torchaudio.so
-- Set runtime path of "/home/discort/projects/audio/build/lib.linux-aarch64-3.6/torchaudio/_torchaudio.so" to ""
creating build/bdist.linux-aarch64
creating build/bdist.linux-aarch64/egg
creating build/bdist.linux-aarch64/egg/torchaudio
creating build/bdist.linux-aarch64/egg/torchaudio/models
copying build/lib.linux-aarch64-3.6/torchaudio/models/conv_tasnet.py -> build/bdist.linux-aarch64/egg/torchaudio/models
copying build/lib.linux-aarch64-3.6/torchaudio/models/wavernn.py -> build/bdist.linux-aarch64/egg/torchaudio/models
copying build/lib.linux-aarch64-3.6/torchaudio/models/wav2letter.py -> build/bdist.linux-aarch64/egg/torchaudio/models
copying build/lib.linux-aarch64-3.6/torchaudio/models/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio/models
copying build/lib.linux-aarch64-3.6/torchaudio/_torchaudio.so -> build/bdist.linux-aarch64/egg/torchaudio
creating build/bdist.linux-aarch64/egg/torchaudio/compliance
copying build/lib.linux-aarch64-3.6/torchaudio/compliance/kaldi.py -> build/bdist.linux-aarch64/egg/torchaudio/compliance
copying build/lib.linux-aarch64-3.6/torchaudio/compliance/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio/compliance
copying build/lib.linux-aarch64-3.6/torchaudio/version.py -> build/bdist.linux-aarch64/egg/torchaudio
copying build/lib.linux-aarch64-3.6/torchaudio/transforms.py -> build/bdist.linux-aarch64/egg/torchaudio
creating build/bdist.linux-aarch64/egg/torchaudio/sox_effects
copying build/lib.linux-aarch64-3.6/torchaudio/sox_effects/sox_effects.py -> build/bdist.linux-aarch64/egg/torchaudio/sox_effects
copying build/lib.linux-aarch64-3.6/torchaudio/sox_effects/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio/sox_effects
creating build/bdist.linux-aarch64/egg/torchaudio/extension
copying build/lib.linux-aarch64-3.6/torchaudio/extension/extension.py -> build/bdist.linux-aarch64/egg/torchaudio/extension
copying build/lib.linux-aarch64-3.6/torchaudio/extension/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio/extension
copying build/lib.linux-aarch64-3.6/torchaudio/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio
creating build/bdist.linux-aarch64/egg/torchaudio/functional
copying build/lib.linux-aarch64-3.6/torchaudio/functional/functional.py -> build/bdist.linux-aarch64/egg/torchaudio/functional
copying build/lib.linux-aarch64-3.6/torchaudio/functional/filtering.py -> build/bdist.linux-aarch64/egg/torchaudio/functional
copying build/lib.linux-aarch64-3.6/torchaudio/functional/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio/functional
creating build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/yesno.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/librispeech.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/utils.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/libritts.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/ljspeech.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/speechcommands.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/vctk.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/commonvoice.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/cmuarctic.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/gtzan.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/datasets/tedlium.py -> build/bdist.linux-aarch64/egg/torchaudio/datasets
copying build/lib.linux-aarch64-3.6/torchaudio/kaldi_io.py -> build/bdist.linux-aarch64/egg/torchaudio
creating build/bdist.linux-aarch64/egg/torchaudio/utils
copying build/lib.linux-aarch64-3.6/torchaudio/utils/sox_utils.py -> build/bdist.linux-aarch64/egg/torchaudio/utils
copying build/lib.linux-aarch64-3.6/torchaudio/utils/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio/utils
creating build/bdist.linux-aarch64/egg/torchaudio/_internal
copying build/lib.linux-aarch64-3.6/torchaudio/_internal/misc_ops.py -> build/bdist.linux-aarch64/egg/torchaudio/_internal
copying build/lib.linux-aarch64-3.6/torchaudio/_internal/module_utils.py -> build/bdist.linux-aarch64/egg/torchaudio/_internal
copying build/lib.linux-aarch64-3.6/torchaudio/_internal/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio/_internal
copying build/lib.linux-aarch64-3.6/torchaudio/_internal/fft.py -> build/bdist.linux-aarch64/egg/torchaudio/_internal
creating build/bdist.linux-aarch64/egg/torchaudio/backend
copying build/lib.linux-aarch64-3.6/torchaudio/backend/soundfile_backend.py -> build/bdist.linux-aarch64/egg/torchaudio/backend
copying build/lib.linux-aarch64-3.6/torchaudio/backend/common.py -> build/bdist.linux-aarch64/egg/torchaudio/backend
copying build/lib.linux-aarch64-3.6/torchaudio/backend/utils.py -> build/bdist.linux-aarch64/egg/torchaudio/backend
copying build/lib.linux-aarch64-3.6/torchaudio/backend/sox_backend.py -> build/bdist.linux-aarch64/egg/torchaudio/backend
copying build/lib.linux-aarch64-3.6/torchaudio/backend/no_backend.py -> build/bdist.linux-aarch64/egg/torchaudio/backend
copying build/lib.linux-aarch64-3.6/torchaudio/backend/__init__.py -> build/bdist.linux-aarch64/egg/torchaudio/backend
copying build/lib.linux-aarch64-3.6/torchaudio/backend/sox_io_backend.py -> build/bdist.linux-aarch64/egg/torchaudio/backend
copying build/lib.linux-aarch64-3.6/torchaudio/backend/_soundfile_backend.py -> build/bdist.linux-aarch64/egg/torchaudio/backend
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/models/conv_tasnet.py to conv_tasnet.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/models/wavernn.py to wavernn.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/models/wav2letter.py to wav2letter.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/models/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/compliance/kaldi.py to kaldi.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/compliance/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/version.py to version.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/transforms.py to transforms.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/sox_effects/sox_effects.py to sox_effects.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/sox_effects/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/extension/extension.py to extension.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/extension/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/functional/functional.py to functional.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/functional/filtering.py to filtering.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/functional/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/yesno.py to yesno.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/librispeech.py to librispeech.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/utils.py to utils.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/libritts.py to libritts.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/ljspeech.py to ljspeech.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/speechcommands.py to speechcommands.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/vctk.py to vctk.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/commonvoice.py to commonvoice.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/cmuarctic.py to cmuarctic.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/gtzan.py to gtzan.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/datasets/tedlium.py to tedlium.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/kaldi_io.py to kaldi_io.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/utils/sox_utils.py to sox_utils.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/utils/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/_internal/misc_ops.py to misc_ops.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/_internal/module_utils.py to module_utils.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/_internal/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/_internal/fft.py to fft.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/backend/soundfile_backend.py to soundfile_backend.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/backend/common.py to common.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/backend/utils.py to utils.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/backend/sox_backend.py to sox_backend.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/backend/no_backend.py to no_backend.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/backend/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/backend/sox_io_backend.py to sox_io_backend.cpython-36.pyc
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/backend/_soundfile_backend.py to _soundfile_backend.cpython-36.pyc
creating stub loader for torchaudio/_torchaudio.so
byte-compiling build/bdist.linux-aarch64/egg/torchaudio/_torchaudio.py to _torchaudio.cpython-36.pyc
creating build/bdist.linux-aarch64/egg/EGG-INFO
copying torchaudio.egg-info/PKG-INFO -> build/bdist.linux-aarch64/egg/EGG-INFO
copying torchaudio.egg-info/SOURCES.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying torchaudio.egg-info/dependency_links.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying torchaudio.egg-info/not-zip-safe -> build/bdist.linux-aarch64/egg/EGG-INFO
copying torchaudio.egg-info/requires.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying torchaudio.egg-info/top_level.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
writing build/bdist.linux-aarch64/egg/EGG-INFO/native_libs.txt
creating dist
creating 'dist/torchaudio-0.8.0a0+099d788-py3.6-linux-aarch64.egg' and adding 'build/bdist.linux-aarch64/egg' to it
removing 'build/bdist.linux-aarch64/egg' (and everything under it)
Processing torchaudio-0.8.0a0+099d788-py3.6-linux-aarch64.egg
creating /home/discort/projects/.env/lib/python3.6/site-packages/torchaudio-0.8.0a0+099d788-py3.6-linux-aarch64.egg
Extracting torchaudio-0.8.0a0+099d788-py3.6-linux-aarch64.egg to /home/discort/projects/.env/lib/python3.6/site-packages
Adding torchaudio 0.8.0a0+099d788 to easy-install.pth file

Installed /home/discort/projects/.env/lib/python3.6/site-packages/torchaudio-0.8.0a0+099d788-py3.6-linux-aarch64.egg
Processing dependencies for torchaudio==0.8.0a0+099d788
Searching for torch==1.8.0
Best match: torch 1.8.0
Adding torch 1.8.0 to easy-install.pth file
Installing convert-caffe2-to-onnx script to /home/discort/projects/.env/bin
Installing convert-onnx-to-caffe2 script to /home/discort/projects/.env/bin

Using /home/discort/projects/.env/lib/python3.6/site-packages
Searching for typing-extensions==3.10.0.0
Best match: typing-extensions 3.10.0.0
Adding typing-extensions 3.10.0.0 to easy-install.pth file

Using /home/discort/projects/.env/lib/python3.6/site-packages
Searching for dataclasses==0.8
Best match: dataclasses 0.8
Adding dataclasses 0.8 to easy-install.pth file

Using /home/discort/projects/.env/lib/python3.6/site-packages
Searching for numpy==1.19.5
Best match: numpy 1.19.5
Adding numpy 1.19.5 to easy-install.pth file
Installing f2py script to /home/discort/projects/.env/bin
Installing f2py3 script to /home/discort/projects/.env/bin
Installing f2py3.6 script to /home/discort/projects/.env/bin

Using /home/discort/projects/.env/lib/python3.6/site-packages
Finished processing dependencies for torchaudio==0.8.0a0+099d788

@mthrok
Copy link
Collaborator

mthrok commented May 17, 2021

@discort

Note that the libsox installed from apt at the moment is 14.4.2+git20190427-2, which is something we do not support as it has an issue with in-memory decoding and causes un-deterministic behavior if you use file-like object for loading data.

@mthrok
Copy link
Collaborator

mthrok commented May 19, 2021

@discort

If you have a extra time, can you help us and try #1484 ?
I believe this will make it work with Jetson but I do not have the hardware, so I cannot test it by myself.

@discort
Copy link
Contributor

discort commented May 22, 2021

@mthrok

I'm happy to help with this issue.

Please let me know if I made correct steps to reproduce this issue:
(the build command taken from https://github.com/pytorch/audio/blob/master/packaging/torchaudio/build.sh)

git clone --recursive https://github.com/pytorch/audio/ torchaudio && cd torchaudio
BUILD_TRANSDUCER=1 BUILD_SOX=1 python setup.py install --single-version-externally-managed --record=record.txt

on master c4a1702:
Environment:

Python 3.6.9
Package: nvidia-jetpack
Version: 4.4.1-b50
Architecture: arm64
full logs

BUILD_TRANSDUCER=1 BUILD_SOX=1 python setup.py install --single-version-externally-managed --record=record.txt
-- Building version 0.9.0a0+c4a1702
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/torchaudio
copying torchaudio/version.py -> build/lib.linux-aarch64-3.6/torchaudio
copying torchaudio/transforms.py -> build/lib.linux-aarch64-3.6/torchaudio
copying torchaudio/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio
copying torchaudio/kaldi_io.py -> build/lib.linux-aarch64-3.6/torchaudio
creating build/lib.linux-aarch64-3.6/torchaudio/models
copying torchaudio/models/deepspeech.py -> build/lib.linux-aarch64-3.6/torchaudio/models
copying torchaudio/models/conv_tasnet.py -> build/lib.linux-aarch64-3.6/torchaudio/models
copying torchaudio/models/wavernn.py -> build/lib.linux-aarch64-3.6/torchaudio/models
copying torchaudio/models/wav2letter.py -> build/lib.linux-aarch64-3.6/torchaudio/models
copying torchaudio/models/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/models
creating build/lib.linux-aarch64-3.6/torchaudio/prototype
copying torchaudio/prototype/rnnt_loss.py -> build/lib.linux-aarch64-3.6/torchaudio/prototype
copying torchaudio/prototype/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/prototype
creating build/lib.linux-aarch64-3.6/torchaudio/compliance
copying torchaudio/compliance/kaldi.py -> build/lib.linux-aarch64-3.6/torchaudio/compliance
copying torchaudio/compliance/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/compliance
creating build/lib.linux-aarch64-3.6/torchaudio/sox_effects
copying torchaudio/sox_effects/sox_effects.py -> build/lib.linux-aarch64-3.6/torchaudio/sox_effects
copying torchaudio/sox_effects/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/sox_effects
creating build/lib.linux-aarch64-3.6/torchaudio/extension
copying torchaudio/extension/extension.py -> build/lib.linux-aarch64-3.6/torchaudio/extension
copying torchaudio/extension/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/extension
creating build/lib.linux-aarch64-3.6/torchaudio/functional
copying torchaudio/functional/functional.py -> build/lib.linux-aarch64-3.6/torchaudio/functional
copying torchaudio/functional/filtering.py -> build/lib.linux-aarch64-3.6/torchaudio/functional
copying torchaudio/functional/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/functional
creating build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/yesno.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/librispeech.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/utils.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/libritts.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/ljspeech.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/speechcommands.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/vctk.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/commonvoice.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/cmuarctic.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/gtzan.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
copying torchaudio/datasets/tedlium.py -> build/lib.linux-aarch64-3.6/torchaudio/datasets
creating build/lib.linux-aarch64-3.6/torchaudio/utils
copying torchaudio/utils/sox_utils.py -> build/lib.linux-aarch64-3.6/torchaudio/utils
copying torchaudio/utils/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/utils
creating build/lib.linux-aarch64-3.6/torchaudio/_internal
copying torchaudio/_internal/module_utils.py -> build/lib.linux-aarch64-3.6/torchaudio/_internal
copying torchaudio/_internal/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/_internal
copying torchaudio/_internal/fft.py -> build/lib.linux-aarch64-3.6/torchaudio/_internal
creating build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/soundfile_backend.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/common.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/utils.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/no_backend.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/__init__.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
copying torchaudio/backend/sox_io_backend.py -> build/lib.linux-aarch64-3.6/torchaudio/backend
running build_ext
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CUDA compiler identification is NVIDIA 10.2.89
-- Check for working CUDA compiler: /usr/local/cuda-10.2/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-10.2/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda-10.2 (found version "10.2")
-- Caffe2: CUDA detected: 10.2
-- Caffe2: CUDA nvcc is: /usr/local/cuda-10.2/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda-10.2
-- Caffe2: Header version is: 10.2
-- Found CUDNN: /usr/lib/aarch64-linux-gnu/libcudnn.so
-- Found cuDNN: v8.0.0  (include: /usr/include, library: /usr/lib/aarch64-linux-gnu/libcudnn.so)
CMake Warning at /home/discort/projects/.env/lib/python3.6/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:198 (message):
  Failed to compute shorthash for libnvrtc.so
Call Stack (most recent call first):
  /home/discort/projects/.env/lib/python3.6/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:88 (include)
  /home/discort/projects/.env/lib/python3.6/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
  CMakeLists.txt:68 (find_package)


-- Autodetected CUDA architecture(s):  7.2
-- Added CUDA NVCC flags for: -gencode;arch=compute_72,code=sm_72
-- Found Torch: /home/discort/projects/.env/lib/python3.6/site-packages/torch/lib/libtorch.so
get_version.sh: 37: get_version.sh: Bad substitution
get_version.sh: 45: get_version.sh: [[: not found
get_version.sh: The version number "5.5" specified in src/.version is not in MAJOR.MINOR format.
get_version.sh: Stopping the construction of full version number from git history.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6
[1/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-build && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/tmp && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/third_party/sox/archives && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-mkdir
[2/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad-build && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/tmp && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad-stamp && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/third_party/sox/archives && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad-stamp/mad-mkdir
[3/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-build && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/tmp && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/third_party/sox/archives && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp/ogg-mkdir
[4/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/amr && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/amr-build && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/tmp && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/amr-stamp && /usr/bin/cmake -E make_directory /home/discort/projects/torchaudio/third_party/sox/archives && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/amr-stamp/amr-mkdir
[5/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src && /usr/bin/cmake -P /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-download-Release.cmake && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-download
-- lame download command succeeded.  See also /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-download-*.log
[6/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E echo_append && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-update
[7/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E echo_append && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-patch
[8/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src && /usr/bin/cmake -P /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp/ogg-download-Release.cmake && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp/ogg-download
-- ogg download command succeeded.  See also /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp/ogg-download-*.log
[9/103] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-math.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-math.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-math.cc.o -c ../../third_party/kaldi/submodule/src/base/kaldi-math.cc
[10/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E echo_append && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp/ogg-update
[11/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E echo_append && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp/ogg-patch
[12/103] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-error.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-error.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/base/kaldi-error.cc.o -c ../../third_party/kaldi/submodule/src/base/kaldi-error.cc
[13/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src && /usr/bin/cmake -P /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad-stamp/mad-download-Release.cmake && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad-stamp/mad-download
-- mad download command succeeded.  See also /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad-stamp/mad-download-*.log
[14/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-build && /usr/bin/cmake -P /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-configure-Release.cmake && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-configure
FAILED: third_party/sox/src/lame-stamp/lame-configure
cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-build && /usr/bin/cmake -P /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-configure-Release.cmake && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-configure
CMake Error at /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-configure-Release.cmake:16 (message):
  Command failed: 1

   '/usr/bin/cmake' '-E' 'env' 'PKG_CONFIG_PATH=/home/discort/projects/torchaudio/third_party/sox/../install/lib/pkgconfig' 'LDFLAGS=-L/home/discort/projects/torchaudio/third_party/sox/../install/lib ' 'CFLAGS=-I/home/discort/projects/torchaudio/third_party/sox/../install/include -fvisibility=hidden ' '/home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame/configure' '--quiet' '--disable-shared' '--enable-static' '--prefix=/home/discort/projects/torchaudio/third_party/sox/../install' '--with-pic' '--disable-dependency-tracking' '--disable-debug' '--disable-examples' '--disable-doc' '--enable-nasm'

  See also

    /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/lame-stamp/lame-configure-*.log


[15/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad && patch < /home/discort/projects/torchaudio/third_party/sox/patch/libmad.patch && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad-stamp/mad-patch
patching file configure
[16/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox && /usr/bin/cmake -E echo_append && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/mad-stamp/mad-update
[17/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src && /usr/bin/cmake -P /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/amr-stamp/amr-download-Release.cmake && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/amr-stamp/amr-download
-- amr download command succeeded.  See also /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/amr-stamp/amr-download-*.log
[18/103] cd /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-build && /usr/bin/cmake -P /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp/ogg-configure-Release.cmake && /usr/bin/cmake -E touch /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp/ogg-configure
-- ogg configure command succeeded.  See also /home/discort/projects/torchaudio/build/temp.linux-aarch64-3.6/third_party/sox/src/ogg-stamp/ogg-configure-*.log
[19/103] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-matrix.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-matrix.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-matrix.cc.o -c ../../third_party/kaldi/src/matrix/kaldi-matrix.cc
[20/103] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/feature-functions.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/feature-functions.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/feature-functions.cc.o -c ../../third_party/kaldi/submodule/src/feat/feature-functions.cc
[21/103] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-vector.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-vector.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/src/matrix/kaldi-vector.cc.o -c ../../third_party/kaldi/src/matrix/kaldi-vector.cc
[22/103] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/pitch-functions.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/pitch-functions.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/pitch-functions.cc.o -c ../../third_party/kaldi/submodule/src/feat/pitch-functions.cc
../../third_party/kaldi/submodule/src/feat/pitch-functions.cc: In member function ‘void kaldi::OnlinePitchFeatureImpl::UpdateRemainder(const kaldi::VectorBase<float>&)’:
../../third_party/kaldi/submodule/src/feat/pitch-functions.cc:814:11: warning: unused variable ‘full_frame_length’ [-Wunused-variable]
     int32 full_frame_length = opts_.NccfWindowSize() + nccf_last_lag_;
           ^~~~~~~~~~~~~~~~~
../../third_party/kaldi/submodule/src/feat/pitch-functions.cc: In member function ‘void kaldi::OnlineProcessPitch::UpdateNormalizationStats(kaldi::int32)’:
../../third_party/kaldi/submodule/src/feat/pitch-functions.cc:1504:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (normalization_stats_.size() <= frame)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[23/103] /usr/bin/c++   -I../../third_party/kaldi/src -I../../third_party/kaldi/submodule/src -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include -isystem /home/discort/projects/.env/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda-10.2/include -Wall -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -O3 -DNDEBUG -fPIC   -D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++14 -MD -MT third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/resample.cc.o -MF third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/resample.cc.o.d -o third_party/kaldi/CMakeFiles/kaldi.dir/submodule/src/feat/resample.cc.o -c ../../third_party/kaldi/submodule/src/feat/resample.cc
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "setup.py", line 91, in <module>
    zip_safe=False,
  File "/home/discort/projects/.env/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/discort/projects/.env/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib/python3.6/distutils/command/install.py", line 589, in run
    self.run_command('build')
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/discort/projects/torchaudio/build_tools/setup_helpers/extension.py", line 56, in run
    super().run()
  File "/home/discort/projects/.env/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
    _build_ext.run(self)
  File "/home/discort/projects/.env/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/discort/projects/.env/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/discort/projects/torchaudio/build_tools/setup_helpers/extension.py", line 113, in build_extension
    ["cmake", "--build", "."] + build_args, cwd=self.build_temp)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install']' returned non-zero exit status 1.

@mthrok
Copy link
Collaborator

mthrok commented May 25, 2021

I merged #1484 and now torchaudio should build fine with BUILD_SOX=1 python setup.py develop|install on Jetson.
Closing this issue as there was multiple of build process change since the issue was opened.
If anyone encounter a build issue on Jetson or any other system, please open a new issue.

@mthrok mthrok closed this as completed May 25, 2021
mpc001 pushed a commit to mpc001/audio that referenced this issue Aug 4, 2023
* Fix formatting to comply with PEP8

* reimplementing conv net from keras examples

* reimplementing keras example mnist_cnn in pytorch

* adding learning rate scheduling

* remove previous mnist model

* change softmax layer name

* changes after review

* fix command line arguments

* remove unused attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants