title: Building Android from sources: unsupported reloc 43
body: <p>When I'm compiling Android 5.1.1, I get dozens of errors like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>...
  ...
  ...
  libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
  libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
  libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
  libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
  </code></pre>
  
  <p>and the make process finally fails:</p>
  
  <pre class="lang-none prettyprint-override"><code>clang: error: linker command failed with exit code 1 (use -v to see invocation)
  build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
  make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
  </code></pre>
  
  <p>I've tried building sources with and without clang, and with different versions of clang. But on newer branches, clang is a requirement and make doesn't start without it.</p>
  
  <p>What might be wrong?</p>