audio icon indicating copy to clipboard operation
audio copied to clipboard

torchaudio build fails due to caffe2 related error.

Open jdgh000 opened this issue 1 year ago • 0 comments

🐛 Describe the bug

Originated from here. Pls do not hastily close until torchaudio is built succesfully. The official insruction does not have enough information to get the build completed successfully.

(https://github.com/pytorch/audio/issues/3696#event-10936093338) @jdgh000 Author jdgh000 commented now i did but it still causes another caffe2 error. I am not sure if this is due to caffe2 not installed but i had torch built and installed successfully onto system.

cmake -DCMAKE_PREFIX_PATH=../../pytorch/torch/share/cmake ..
CMake Error at /root/gg/git/pytorch/build/Caffe2Config.cmake:9 (include):
include could not find requested file:

/root/gg/git/pytorch/build/public/utils.cmake
Call Stack (most recent call first):
/root/gg/git/pytorch/build/TorchConfig.cmake:68 (find_package)
cmake/TorchAudioHelper.cmake:1 (find_package)
CMakeLists.txt:93 (include)

CMake Error at /root/gg/git/pytorch/build/Caffe2Config.cmake:74 (include):
include could not find requested file:

/root/gg/git/pytorch/build/public/LoadHIP.cmake
Call Stack (most recent call first):
/root/gg/git/pytorch/build/TorchConfig.cmake:68 (find_package)
cmake/TorchAudioHelper.cmake:1 (find_package)
CMakeLists.txt:93 (include)

CMake Error at /root/gg/git/pytorch/build/Caffe2Config.cmake:109 (include):
include could not find requested file:

/root/gg/git/pytorch/build/public/mkldnn.cmake
Call Stack (most recent call first):
/root/gg/git/pytorch/build/TorchConfig.cmake:68 (find_package)
cmake/TorchAudioHelper.cmake:1 (find_package)
CMakeLists.txt:93 (include)

CMake Error at /root/gg/git/pytorch/build/Caffe2Config.cmake:113 (include):
include could not find requested file:

/root/gg/git/pytorch/build/Caffe2Targets.cmake
Call Stack (most recent call first):
/root/gg/git/pytorch/build/TorchConfig.cmake:68 (find_package)
cmake/TorchAudioHelper.cmake:1 (find_package)
CMakeLists.txt:93 (include)

CMake Error at /root/gg/git/pytorch/build/TorchConfig.cmake:182 (set_target_properties):
set_target_properties Can not find target to add properties to: torch
Call Stack (most recent call first):
cmake/TorchAudioHelper.cmake:1 (find_package)
CMakeLists.txt:93 (include)

CMake Error at /root/gg/git/pytorch/build/TorchConfig.cmake:187 (set_property):
set_property could not find TARGET torch. Perhaps it has not yet been
created.
Call Stack (most recent call first):
cmake/TorchAudioHelper.cmake:1 (find_package)
CMakeLists.txt:93 (include)

CMake Error at cmake/TorchAudioHelper.cmake:11 (get_target_property):
get_target_property() called with non-existent target "torch_cpu".
Call Stack (most recent call first):
CMakeLists.txt:93 (include)

-- Found ccache
-- Configuring incomplete, errors occurred!
See also "/root/gg/git/audio/build/CMakeFiles/CMakeOutput.log".
[root@localhost build]#

Versions

rocm5.7

jdgh000 avatar Nov 13 '23 04:11 jdgh000