Skip to content

Instantly share code, notes, and snippets.

@briansp2020
Created September 16, 2023 18:36
Show Gist options
  • Save briansp2020/0b16903b9eaddcedcfd003d61a3315a7 to your computer and use it in GitHub Desktop.
Save briansp2020/0b16903b9eaddcedcfd003d61a3315a7 to your computer and use it in GitHub Desktop.
:~/audio# python3 setup.py bdist_wheel
/root/audio/setup.py:2: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.command.clean
-- Git branch: main
-- Git SHA: 4bbf65e44e5730d4b7deba745ba11375c1665db8
-- Git tag: None
-- PyTorch dependency: torch
-- Building version 2.2.0a0+4bbf65e
running bdist_wheel
running build
running build_py
copying torchaudio/version.py -> build/lib.linux-x86_64-3.10/torchaudio
running build_ext
HIP VERSION: 5.7.31921-d1770ee1b
***** ROCm version from /opt/rocm/.info/version-dev ****
ROCM_VERSION_DEV: 5.7.0
ROCM_VERSION_DEV_MAJOR: 5
ROCM_VERSION_DEV_MINOR: 7
ROCM_VERSION_DEV_PATCH: 0
***** Library versions from dpkg *****
rocm-developer-tools VERSION: 5.7.0.50700-63~22.04
rocm-device-libs VERSION: 1.0.0.50700-63~22.04
hsakmt-roct-dev VERSION: 20230704.2.5268.50700-63~22.04
hsa-rocr-dev VERSION: 1.11.0.50700-63~22.04
***** Library versions from cmake find_package *****
CMake Deprecation Warning at /opt/rocm/hip/lib/cmake/hip/hip-config.cmake:20 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
cmake/LoadHIP.cmake:138 (find_package)
cmake/LoadHIP.cmake:194 (find_package_and_print_version)
CMakeLists.txt:75 (include)
CMake Deprecation Warning at /opt/rocm-5.7.0/lib/cmake/hip/hip-config-amd.cmake:21 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
/opt/rocm/hip/lib/cmake/hip/hip-config.cmake:150 (include)
cmake/LoadHIP.cmake:138 (find_package)
cmake/LoadHIP.cmake:194 (find_package_and_print_version)
CMakeLists.txt:75 (include)
-- hip::amdhip64 is SHARED_LIBRARY
-- /usr/bin/c++: CLANGRT compiler options not supported.
hip VERSION: 5.7.23365
hsa-runtime64 VERSION: 1.11.50700
amd_comgr VERSION: 2.5.0
CMake Error at cmake/LoadHIP.cmake:138 (find_package):
By not providing "Findrocrand.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "rocrand", but
CMake did not find one.
Could not find a package configuration file provided by "rocrand" with any
of the following names:
rocrandConfig.cmake
rocrand-config.cmake
Add the installation prefix of "rocrand" to CMAKE_PREFIX_PATH or set
"rocrand_DIR" to a directory containing one of the above files. If
"rocrand" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
cmake/LoadHIP.cmake:197 (find_package_and_print_version)
CMakeLists.txt:75 (include)
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "/root/audio/setup.py", line 161, in <module>
_main()
File "/root/audio/setup.py", line 118, in _main
setup(
File "/root/pt/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/pt/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 364, in run
self.run_command("build")
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/audio/tools/setup_helpers/extension.py", line 98, in run
super().run()
File "/root/pt/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/usr/lib/python3.10/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/lib/python3.10/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.10/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/root/audio/tools/setup_helpers/extension.py", line 179, in build_extension
subprocess.check_call(["cmake", str(_ROOT_DIR)] + cmake_args, cwd=self.build_temp)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/root/audio', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_PREFIX_PATH=/root/pt/lib/python3.10/site-packages/torch/share/cmake', '-DCMAKE_INSTALL_PREFIX=/root/audio/build/lib.linux-x86_64-3.10/torchaudio/', '-DCMAKE_VERBOSE_MAKEFILE=ON', '-DPython_INCLUDE_DIR=/usr/include/python3.10', '-DBUILD_SOX:BOOL=ON', '-DBUILD_RIR:BOOL=ON', '-DBUILD_RNNT:BOOL=ON', '-DBUILD_ALIGN:BOOL=ON', '-DBUILD_CUDA_CTC_DECODER:BOOL=OFF', '-DBUILD_TORCHAUDIO_PYTHON_EXTENSION:BOOL=ON', '-DUSE_ROCM:BOOL=ON', '-DUSE_CUDA:BOOL=OFF', '-DUSE_OPENMP:BOOL=ON', '-DUSE_FFMPEG:BOOL=ON', '-GNinja']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment