<p dir="ltr">There are bugs in the old libs/headers.  Same toolchain.</p>
<div class="gmail_quote">On Jul 2, 2015 8:08 AM, "Chaoren Lin" <<a href="mailto:chaorenl@google.com">chaorenl@google.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I am statically linking against API-21. There are some bugs in the old toolchains that can be avoided by doing this. Aside from this issue, the resulting binary seem to run fine on API 10 devices (and passes most of the test suite).</p>
<div class="gmail_quote">On Jul 2, 2015 02:33, "Tamas Berghammer" <<a href="mailto:tberghammer@google.com" target="_blank">tberghammer@google.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I agree with Pavel that the toolchain shouldn't generate any source code what is using a missing syscall. I checked the implementation of accept on Gingerbread (API-9) and it is using the right syscall (<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__android.googlesource.com_platform_bionic_-2B_gingerbread-2Drelease_libc_arch-2Darm_syscalls_accept.S&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=MEqT8U_n7oNfuDW5NRbY3ZV384ZquXIYFPWmprwUdKM&m=l53lIpgHXXvcjBjRqS9JnP-dHtiVjVcm0SORBtbQLPo&s=WE3Z7u2MiLu4nyLL4DEdrVDQ9C8ZtoSdMSY3XCJ2Vu4&e=" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/bionic/+/gingerbread-release/libc/arch-arm/syscalls/accept.S</a>).<br>
<br>
I am not sure what is causing this issue, but one of my guess is that you are statically linking against a wrong version of libc.<br>
<br>
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D10887&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=MEqT8U_n7oNfuDW5NRbY3ZV384ZquXIYFPWmprwUdKM&m=l53lIpgHXXvcjBjRqS9JnP-dHtiVjVcm0SORBtbQLPo&s=mCB-l3L-mTpMBbRMJIpphglG1wX2nb0KCDzVKy7JTPY&e=" rel="noreferrer" target="_blank">http://reviews.llvm.org/D10887</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_settings_panel_emailpreferences_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=MEqT8U_n7oNfuDW5NRbY3ZV384ZquXIYFPWmprwUdKM&m=l53lIpgHXXvcjBjRqS9JnP-dHtiVjVcm0SORBtbQLPo&s=df4sTK3SC97cFsB_P6w8ZcaJsDQ19_2AObIpw4gMZyc&e=" rel="noreferrer" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
</blockquote></div>
</blockquote></div>