Skip to content

ninja: build stopped: subcommand failed. #32694

Open
@phalexo

Description

@phalexo

🐛 Bug

Does anyone have a recipe that is known to work?

[426/3392] Building CXX object third_party/ideep/m...nn/src/CMakeFiles/mkldnn.dir/cpu/cpu_reorder.cpp.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "setup.py", line 737, in
build_deps()
File "setup.py", line 316, in build_deps
cmake=cmake)
File "/home/developer/pytorch/tools/build_pytorch_libs.py", line 62, in build_caffe2
cmake.build(my_env)
File "/home/developer/pytorch/tools/setup_helpers/cmake.py", line 339, in build
self.run(build_args, my_env)
File "/home/developer/pytorch/tools/setup_helpers/cmake.py", line 141, in run
check_call(command, cwd=self.build_dir, env=env)
File "/home/developer/anaconda3/envs/pytorch/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '32']' returned non-zero exit status 1.

To Reproduce

Steps to reproduce the behavior:

python setup.py clean
python setup..py install

Expected behavior

builds successfully

Environment

Ubuntu 14.04 with Xenial kernel 4.4.0 generic
Anaconda, Python 3.7
Tried C++ 4.9, 5.5, 7, 9
CUDA 10.1, cdnn 7.5.6

Please copy and paste the output from our
environment collection script
(or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
  • PyTorch Version (e.g., 1.0):
  • OS (e.g., Linux):
  • How you installed PyTorch (conda, pip, source):
  • Build command you used (if compiling from source):
  • Python version:
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • Any other relevant information:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: buildBuild system issuestriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions