Skip to content

Got error when building wheel from source #1340

@irrikrlla

Description

@irrikrlla

I try to build a K2 wheel with cuda12.8 ,torch 2.7.1, python 3.12, but fail with an unexcepted error.

Image

How to solve this? Thanks so much for helping me.

Following is the whole log:

running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\autograd.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\autograd_utils.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\ctc_loss.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\decode.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\dense_fsa_vec.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\fsa.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\fsa_algo.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\fsa_properties.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\mutual_information.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\mwer_loss.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\nbest.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\online_dense_intersecter.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\ops.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\rnnt_decode.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\rnnt_loss.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\symbol_table.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\torch_version.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2\utils.py -> build\lib.win-amd64-cpython-312\k2
copying k2\python\k2_init_.py -> build\lib.win-amd64-cpython-312\k2
creating build\lib.win-amd64-cpython-312\k2\ragged
copying k2\python\k2\ragged_init_.py -> build\lib.win-amd64-cpython-312\k2\ragged
creating build\lib.win-amd64-cpython-312\k2\sparse
copying k2\python\k2\sparse\autograd.py -> build\lib.win-amd64-cpython-312\k2\sparse
copying k2\python\k2\sparse_init_.py -> build\lib.win-amd64-cpython-312\k2\sparse
creating build\lib.win-amd64-cpython-312\k2\version
copying k2\python\k2\version\version.py -> build\lib.win-amd64-cpython-312\k2\version
copying k2\python\k2\version_init_.py -> build\lib.win-amd64-cpython-312\k2\version
copying k2\python\k2\version_main_.py -> build\lib.win-amd64-cpython-312\k2\version
running build_ext
cmake_path: C:\Python312\Scripts\cmake.EXE
For fast compilation, run:
export K2_MAKE_ARGS="-j"; python setup.py install
Setting make_args to '-j4'
Setting PYTHON_EXECUTABLE to C:\Python312\python.exe
build command is:

            cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=C:\Python312\python.exe -DK2_ENABLE_BENCHMARK=OFF  -DK2_ENABLE_TESTS=OFF  -DCMAKE_INSTALL_PREFIX=C:\k2\build\lib.win-amd64-cpython-312/k2  -DCMAKE_CXX_STANDARD=17  -B build\temp.win-amd64-cpython-312\Release -S C:\k2
            cmake --build build\temp.win-amd64-cpython-312\Release --target install --config Release -- -m

-- Building for: Visual Studio 17 2022
CMake Deprecation Warning at CMakeLists.txt:16 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- CMAKE_VERSION: 4.0.3
CMake Deprecation Warning at CMakeLists.txt:24 (cmake_policy):
The OLD behavior for policy CMP0111 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

-- Enabled languages: CXX;CUDA
-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.26220.
-- The CXX compiler identification is MSVC 19.44.35214.0
-- The CUDA compiler identification is NVIDIA 12.8.61 with host compiler MSVC 19.44.35214.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8/bin/nvcc.exe - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- K2_OS: Microsoft Windows 11 企业版 10.0.26220
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.47.0.windows.1")
-- C++ Standard version: 17
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - not found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - not found
-- Performing Test K2_COMPILER_SUPPORTS_CXX17
-- Performing Test K2_COMPILER_SUPPORTS_CXX17 - Success
-- Autodetected CUDA architecture(s): 8.9
-- K2_COMPUTE_ARCH_FLAGS: -gencode;arch=compute_89,code=sm_89
-- CUDA_VERSION: 12.8
CMake Warning at CMakeLists.txt:266 (message):
Use NVTX3 for 12.8

-- K2_COMPUTE_ARCH_CANDIDATES 50;60;61;70;75;80;86;90
-- Skipping arch 50
-- Skipping arch 60
-- Skipping arch 61
-- Skipping arch 70
-- Skipping arch 75
-- Skipping arch 80
-- Skipping arch 86
-- Skipping arch 90
-- K2_COMPUTE_ARCHS: 50;60;61;70;75;80;86;90
-- Could NOT find Valgrind (missing: Valgrind_INCLUDE_DIR Valgrind_EXECUTABLE)
-- Downloading pybind11 from https://github.com/pybind/pybind11/archive/5bc0943ed96836f46489f53961f6c438d2935357.zip
-- pybind11 is downloaded to C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/pybind11-src
CMake Deprecation Warning at build/temp.win-amd64-cpython-312/Release/_deps/pybind11-src/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- pybind11 v2.11.0 dev1
CMake Warning (dev) at build/temp.win-amd64-cpython-312/Release/_deps/pybind11-src/tools/FindPythonLibsNew.cmake:98 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
build/temp.win-amd64-cpython-312/Release/_deps/pybind11-src/tools/pybind11Tools.cmake:50 (find_package)
build/temp.win-amd64-cpython-312/Release/_deps/pybind11-src/tools/pybind11Common.cmake:180 (include)
build/temp.win-amd64-cpython-312/Release/_deps/pybind11-src/CMakeLists.txt:208 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PythonInterp: C:/Python312/python.exe (found suitable version "3.12.7", minimum required is "3.6")
-- Found PythonLibs: C:/Python312/libs/python312.lib
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Success
-- Python executable: C:/Python312/python.exe
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8 (found version "12.8")
-- Found CUDAToolkit: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8/include (found version "12.8.61")
-- PyTorch: CUDA detected: 12.8
-- PyTorch: CUDA nvcc is: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8/bin/nvcc.exe
-- PyTorch: CUDA toolkit directory: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8
-- PyTorch: Header version is: 12.8
-- Found Python: C:/Python312/python.exe (found version "3.12.7") found components: Interpreter
CMake Warning at C:/Python312/Lib/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:140 (message):
Failed to compute shorthash for libnvrtc.so
Call Stack (most recent call first):
C:/Python312/Lib/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:86 (include)
C:/Python312/Lib/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
cmake/torch.cmake:15 (find_package)
CMakeLists.txt:321 (include)

CMake Warning (dev) at C:/Python312/Lib/site-packages/cmake/data/share/cmake-4.0/Modules/FindPackageHandleStandardArgs.cmake:430 (message):
The package name passed to find_package_handle_standard_args() (nvtx3) does
not match the name of the calling package (Caffe2). This can lead to
problems in calling code that expects find_package() result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
C:/Python312/Lib/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:178 (find_package_handle_standard_args)
C:/Python312/Lib/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:86 (include)
C:/Python312/Lib/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
cmake/torch.cmake:15 (find_package)
CMakeLists.txt:321 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find nvtx3 (missing: nvtx3_dir)
CMake Warning at C:/Python312/Lib/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:184 (message):
Cannot find NVTX3, find old NVTX instead
Call Stack (most recent call first):
C:/Python312/Lib/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:86 (include)
C:/Python312/Lib/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
cmake/torch.cmake:15 (find_package)
CMakeLists.txt:321 (include)

-- USE_CUDNN is set to 0. Compiling without cuDNN support
-- USE_CUSPARSELT is set to 0. Compiling without cuSPARSELt support
-- USE_CUDSS is set to 0. Compiling without cuDSS support
-- USE_CUFILE is set to 0. Compiling without cuFile support
-- Autodetected CUDA architecture(s): 8.9
-- Added CUDA NVCC flags for: -gencode;arch=compute_89,code=sm_89
-- Found Torch: C:/Python312/Lib/site-packages/torch/lib/torch.lib
CMake Warning at cmake/torch.cmake:37 (message):
CMAKE_CUDA_FLAGS is -D_WINDOWS -Xcompiler="/W3 /GR /EHsc" --expt-relaxed-constexpr -Wno-deprecated-gpu-targets -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_50,code=sm_50 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_60,code=sm_60 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_70,code=sm_70 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_75,code=sm_75 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_80,code=sm_80 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_86,code=sm_86 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_90,code=sm_90 -DONNX_NAMESPACE=onnx_c2 -gencode arch=compute_89,code=sm_89 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=bad_friend_decl --Werror cross-execution-space-call --no-host-device-move-forward --expt-relaxed-constexpr --expt-extended-lambda
Call Stack (most recent call first):
CMakeLists.txt:321 (include)

-- K2_TORCH_VERSION: 2.7
-- PyTorch version: 2.7.1+cu128
-- PyTorch cuda version: 12.8
-- Generated C:/k2/build/temp.win-amd64-cpython-312/Release/torch_version.py
-- Downloading moderngpu from https://github.com/moderngpu/moderngpu/archive/8ec9ac0de8672de7217d014917eedec5317f75f3.zip
-- moderngpu is downloaded to C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/moderngpu-src
-- Disabled warnings: /wd4005;/wd4018;/wd4067;/wd4068;/wd4099;/wd4101;/wd4190;/wd4224;/wd4244;/wd4251;/wd4267;/wd4275;/wd4305;/wd4522;/wd4551;/wd4624;/wd4700;/wd4722;/wd4805;/wd4819;/wd4838;/wd4996
-- CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /W3 /GR /EHsc /wd4005 /wd4018 /wd4067 /wd4068 /wd4099 /wd4101 /wd4190 /wd4224 /wd4244 /wd4251 /wd4267 /wd4275 /wd4305 /wd4522 /wd4551 /wd4624 /wd4700 /wd4722 /wd4805 /wd4819 /wd4838 /wd4996 /bigobj
-- CMAKE_CUDA_FLAGS: -D_WINDOWS -Xcompiler="/W3 /GR /EHsc" --expt-relaxed-constexpr -Wno-deprecated-gpu-targets -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_50,code=sm_50 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_60,code=sm_60 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_70,code=sm_70 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_75,code=sm_75 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_80,code=sm_80 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_86,code=sm_86 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_90,code=sm_90 -DONNX_NAMESPACE=onnx_c2 -gencode arch=compute_89,code=sm_89 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=bad_friend_decl --Werror cross-execution-space-call --no-host-device-move-forward --expt-relaxed-constexpr --expt-extended-lambda --compiler-options /wd4005 --compiler-options /wd4018 --compiler-options /wd4067 --compiler-options /wd4068 --compiler-options /wd4099 --compiler-options /wd4101 --compiler-options /wd4190 --compiler-options /wd4224 --compiler-options /wd4244 --compiler-options /wd4251 --compiler-options /wd4267 --compiler-options /wd4275 --compiler-options /wd4305 --compiler-options /wd4522 --compiler-options /wd4551 --compiler-options /wd4624 --compiler-options /wd4700 --compiler-options /wd4722 --compiler-options /wd4805 --compiler-options /wd4819 --compiler-options /wd4838 --compiler-options /wd4996
-- Generated C:/k2/build/temp.win-amd64-cpython-312/Release/k2/csrc/version.h
CMake Warning (dev) at k2/csrc/host/CMakeLists.txt:90 (install):
Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run
"cmake --help-policy CMP0177" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

-- TORCH_DIR: C:\Python312\Lib\site-packages\torch
CMake Warning (dev) at k2/csrc/CMakeLists.txt:244 (install):
Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run
"cmake --help-policy CMP0177" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at k2/python/csrc/CMakeLists.txt:65 (install):
Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run
"cmake --help-policy CMP0177" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Including k2/torch. K2_TORCH_VERSION is 2.7
-- Downloading kaldifeat from https://github.com/csukuangfj/kaldifeat/archive/refs/tags/v1.25.4.tar.gz
-- kaldifeat is downloaded to C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src
-- kaldifeat's binary dir is C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-build
CMake Deprecation Warning at build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- The C compiler identification is MSVC 19.44.35214.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- C++ Standard version: 17
-- BUILD_SHARED_LIBS ON
-- Python executable: C:/Python312/python.exe
CMake Warning at cmake/torch.cmake:37 (message):
CMAKE_CUDA_FLAGS is -D_WINDOWS -Xcompiler="/W3 /GR /EHsc" --expt-relaxed-constexpr -Wno-deprecated-gpu-targets -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_50,code=sm_50 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_60,code=sm_60 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_61,code=sm_61 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_70,code=sm_70 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_75,code=sm_75 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_80,code=sm_80 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_86,code=sm_86 -lineinfo --expt-extended-lambda -use_fast_math -Xptxas=-w --expt-extended-lambda -gencode arch=compute_90,code=sm_90 -DONNX_NAMESPACE=onnx_c2 -gencode arch=compute_89,code=sm_89 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=bad_friend_decl --Werror cross-execution-space-call --no-host-device-move-forward --expt-relaxed-constexpr --expt-extended-lambda --compiler-options /wd4005 --compiler-options /wd4018 --compiler-options /wd4067 --compiler-options /wd4068 --compiler-options /wd4099 --compiler-options /wd4101 --compiler-options /wd4190 --compiler-options /wd4224 --compiler-options /wd4244 --compiler-options /wd4251 --compiler-options /wd4267 --compiler-options /wd4275 --compiler-options /wd4305 --compiler-options /wd4522 --compiler-options /wd4551 --compiler-options /wd4624 --compiler-options /wd4700 --compiler-options /wd4722 --compiler-options /wd4805 --compiler-options /wd4819 --compiler-options /wd4838 --compiler-options /wd4996
Call Stack (most recent call first):
build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/CMakeLists.txt:62 (include)

-- K2_TORCH_VERSION: 2.7
-- PyTorch version: 2.7.1+cu128
-- PyTorch cuda version: 12.8
-- Disabled warnings: /wd4624
-- CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /W3 /GR /EHsc /wd4005 /wd4018 /wd4067 /wd4068 /wd4099 /wd4101 /wd4190 /wd4224 /wd4244 /wd4251 /wd4267 /wd4275 /wd4305 /wd4522 /wd4551 /wd4624 /wd4700 /wd4722 /wd4805 /wd4819 /wd4838 /wd4996 /bigobj /wd4624
-- CMAKE_INSTALL_PREFIX: C:/k2/build/lib.win-amd64-cpython-312/k2
-- All headers: C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/feature-common-inl.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/feature-common.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/feature-fbank.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/feature-functions.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/feature-mfcc.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/feature-plp.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/feature-spectrogram.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/feature-window.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/log.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/matrix-functions.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/mel-computations.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/online-feature-itf.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/online-feature.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/pitch-functions.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/whisper-fbank.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/whisper-mel-bank.h;C:/k2/build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/whisper-v3-mel-bank.h
CMake Warning (dev) at build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/kaldifeat/csrc/CMakeLists.txt:83 (install):
Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run
"cmake --help-policy CMP0177" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at build/temp.win-amd64-cpython-312/Release/_deps/kaldifeat-src/CMakeLists.txt:114 (install):
Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run
"cmake --help-policy CMP0177" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:447 (install):
Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run
"cmake --help-policy CMP0177" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done (67.6s)
CMake Error at C:/Python312/Lib/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:186 (set_property):
The link interface of target "torch::nvtoolsext" contains:

CUDA::nvToolsExt

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

Call Stack (most recent call first):
C:/Python312/Lib/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:86 (include)
C:/Python312/Lib/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
cmake/torch.cmake:15 (find_package)
CMakeLists.txt:321 (include)

-- Generating done (0.3s)
CMake Generate step failed. Build files cannot be regenerated correctly.
Traceback (most recent call last):
File "C:\k2\setup.py", line 240, in
setuptools.setup(
File "C:\Python312\Lib\site-packages\setuptools_init_.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\setuptools_distutils\core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\setuptools_distutils\core.py", line 202, in run_commands
dist.run_commands()
File "C:\Python312\Lib\site-packages\setuptools_distutils\dist.py", line 1002, in run_commands
self.run_command(cmd)
File "C:\Python312\Lib\site-packages\setuptools\dist.py", line 1104, in run_command
super().run_command(command)
File "C:\Python312\Lib\site-packages\setuptools_distutils\dist.py", line 1021, in run_command
cmd_obj.run()
File "C:\Python312\Lib\site-packages\setuptools\command\bdist_wheel.py", line 370, in run
self.run_command("build")
File "C:\Python312\Lib\site-packages\setuptools_distutils\cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "C:\Python312\Lib\site-packages\setuptools\dist.py", line 1104, in run_command
super().run_command(command)
File "C:\Python312\Lib\site-packages\setuptools_distutils\dist.py", line 1021, in run_command
cmd_obj.run()
File "C:\Python312\Lib\site-packages\setuptools_distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Python312\Lib\site-packages\setuptools_distutils\cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "C:\Python312\Lib\site-packages\setuptools\dist.py", line 1104, in run_command
super().run_command(command)
File "C:\Python312\Lib\site-packages\setuptools_distutils\dist.py", line 1021, in run_command
cmd_obj.run()
File "C:\Python312\Lib\site-packages\setuptools\command\build_ext.py", line 99, in run
_build_ext.run(self)
File "C:\Python312\Lib\site-packages\setuptools_distutils\command\build_ext.py", line 368, in run
self.build_extensions()
File "C:\Python312\Lib\site-packages\setuptools_distutils\command\build_ext.py", line 484, in build_extensions
self._build_extensions_serial()
File "C:\Python312\Lib\site-packages\setuptools_distutils\command\build_ext.py", line 510, in _build_extensions_serial
self.build_extension(ext)
File "C:\k2\setup.py", line 191, in build_extension
raise Exception("Failed to build k2")
Exception: Failed to build k2

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