<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>

<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li></li>
<li></li>
<li></li>
</ol>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  make[1]: Leaving directory '/media/gauravroy/pytorch/build'"><pre class="notranslate"><code class="notranslate">  make[1]: Leaving directory '/media/gauravroy/pytorch/build'
</code></pre></div>
<p dir="auto">Makefile:143: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
Traceback (most recent call last):<br>
File "setup.py", line 744, in <br>
build_deps()<br>
File "setup.py", line 309, in build_deps<br>
build_dir='build')<br>
File "/media/gauravroy/pytorch/tools/build_pytorch_libs.py", line 309, in build_caffe2<br>
check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir, env=my_env)<br>
File "/usr/lib/python2.7/subprocess.py", line 190, in check_call<br>
raise CalledProcessError(retcode, cmd)</p>
<h2 dir="auto">Expected behavior</h2>

<h2 dir="auto">Environment</h2>
<p dir="auto">Please copy and paste the output from our<br>
<a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br>
(or fill out the checklist below manually).</p>
<p dir="auto">You can get the script and run it with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0):</li>
<li>OS (e.g., Linux):</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source):</li>
<li>Build command you used (if compiling from source):</li>
<li>Python version:</li>
<li>CUDA/cuDNN version:</li>
<li>GPU models and configuration:</li>
<li>Any other relevant information:</li>
</ul>
<h2 dir="auto">Additional context</h2>
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions and Help</h2>
<p dir="auto">make[1]: Leaving directory '/media/gauravroy/pytorch/build'<br>
Makefile:143: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
Traceback (most recent call last):<br>
File "setup.py", line 744, in <br>
build_deps()<br>
File "setup.py", line 309, in build_deps<br>
build_dir='build')<br>
File "/media/gauravroy/pytorch/tools/build_pytorch_libs.py", line 309, in build_caffe2<br>
check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir, env=my_env)<br>
File "/usr/lib/python2.7/subprocess.py", line 190, in check_call<br>
raise CalledProcessError(retcode, cmd)<br>
subprocess.CalledProcessError: Command '['make', '-j', '4', 'install']' returned non-zero exit status 2</p>
<h3 dir="auto">Please note that this issue tracker is not a help form and this issue will be closed.</h3>
<p dir="auto">We have a set of <a href="https://pytorch.org/resources" rel="nofollow">listed resources available on the website</a>. Our primary means of support is our discussion forum:</p>
<ul dir="auto">
<li><a href="https://discuss.pytorch.org/" rel="nofollow">Discussion Forum</a></li>
</ul>