Hello there!
I’ve tried to build PyTorch from sources. The following error occurs in the process:
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "setup.py", line 743, in <module>
build_deps()
File "setup.py", line 316, in build_deps
cmake=cmake)
File "E:\PyTorch\pytorch\tools\build_pytorch_libs.py", line 62, in build_caffe2
cmake.build(my_env)
File "E:\PyTorch\pytorch\tools\setup_helpers\cmake.py", line 339, in build
self.run(build_args, my_env)
File "E:\PyTorch\pytorch\tools\setup_helpers\cmake.py", line 141, in run
check_call(command, cwd=self.build_dir, env=env)
File "C:\Users\Roman\Anaconda3\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '4']' returned non-zero exit status 1.
Console outputs.
Since the build runs in multithreaded way, few things can happen after the first error is detected (we are working on reducing the number of warnings )
@MrLebovsky for future reference, note that you can also use the viable/strict branch in the main repo. It contains the latest master for which all the CI passed.
@peterjc123 Building with my computer takes about a day. I’m afraid I didn’t quite understand you and will do something wrong. Could you describe the cause of the problem and its solution in more detail?
As far as I understand, I need to check-out to branch for which all the tests have passed and there will be no errors?
Thanks in advance!
@albanD@peterjc123 It does not help
I’ve choouse the commit with all passed tests for windows: 3c409fc66c76ccbd10bd5d234c6ee8492ae7f653
Then I 've launched necessary git commands and the following output’s I have now: