title: Linking of rule '//tensorflow/python:_pywrap_tensorflow_internal.so' failed
body: <p>I am trying to install Tensorflow on my laptop which has i5 and 8GB RAM.</p>
  
  <p>When I am building the Tensorflow from source 
  I use</p>
  
  <pre><code>bazel build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --copt=-march=native //tensorflow/tools/pip_package:build_pip_package
  </code></pre>
  
  <p>Everything seems to go well but at the end I get this error</p>
  
  <pre><code>`ERROR: /home/siladittya/tensorflow/tensorflow/python/BUILD:3166:1: Linking of rule '//tensorflow/python:_pywrap_tensorflow_internal.so' failed (Exit 1)
  
  /usr/bin/ld.gold: fatal error: bazel-out/k8-opt/bin/tensorflow/core/kernels/_objs/quantize_and_dequantize_op/tensorflow/core/kernels/quantize_and_dequantize_op.pic.o: read: Input/output error
  
  collect2: error: ld returned 1 exit status
  
  Target //tensorflow/tools/pip_package:build_pip_package failed to build
  </code></pre>
  
  <p>`</p>
  
  <p>I looked up a few posts in some forums, but they are saying that it can be solved using <code>--local_resources</code> but when I used that argument,</p>
  
  <pre><code>`bazel build --local_resources 8000,2.0,2.0 --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --config=opt //tensorflow/tools/pip_package:build_pip_package`
  </code></pre>
  
  <p>I am getting the same error again.</p>
  
  <p>What is the solution to this problem?</p>