You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider using a newer toolchain for android.
Current CI uses API 21's toolchain. These functions were added in later versions of android to the TC.
According to headers in sysroot/usr/include of the latest ndk
It was using android21 with azure pipelines 12 days ago.
You mean r21d is API 21?
The old build is no longer opening on azure pipelines but I remember it was using aarch64-linux-android21-clang
Perhaps I am remembering wrong. My bad!
I also noticed that it was using aarch64-linux-android21-clang, while the other Android architectures use x86_64-linux-android28-clang and armv7a-linux-androideabi24-clang. I couldn't see where these version numbers come from though, as the android-install-ndk.sh script does indeed seem to be installing a newer version.
Activity
add fmemopen, open_memstream, and open_wmemstream for POSIX.1-2008
Disable clock_getcpuclockid on aarch64
[-][CI] Some Android targets are broken[/-][+][CI] CI for i686-linux-android is broken[/+]rupansh commentedon Oct 16, 2020
Consider using a newer toolchain for android.
Current CI uses API 21's toolchain. These functions were added in later versions of android to the TC.
According to headers in
sysroot/usr/includeof the latest ndkAPI 23 Functions:
openpty,forkpty,login_tty,sethostname,sigtimedwait,fmemopen,open_memstream,open_wmemstream,clock_getcpuclockidAPI 24 Functions:
lockf,preadv64,pwritev64,getifaddrs,freeifaddrs,getgrgid_r,getgrnam_rJohnTitor commentedon Oct 16, 2020
Hm, it's weird. IIUC we use API 24 for arm/aarch64 and API 28 for i686/x86_64, am I missing something?
rupansh commentedon Oct 16, 2020
Did you recently change the CI? It was using android21 with azure pipelines 12 days ago.
JohnTitor commentedon Oct 16, 2020
No. Here's our config for Android NDK:
libc/ci/android-install-ndk.sh
Lines 5 to 34 in 2d044d9
You mean
r21dis API 21?rupansh commentedon Oct 16, 2020
The old build is no longer opening on azure pipelines but I remember it was using aarch64-linux-android21-clang
Perhaps I am remembering wrong. My bad!
qwandor-google commentedon Oct 16, 2020
I also noticed that it was using
aarch64-linux-android21-clang, while the other Android architectures usex86_64-linux-android28-clangandarmv7a-linux-androideabi24-clang. I couldn't see where these version numbers come from though, as theandroid-install-ndk.shscript does indeed seem to be installing a newer version.qwandor-google commentedon Oct 16, 2020
Where can I find instructions on how to run the CI tests locally, so I can try to debug this without having to push to a PR every time?
JohnTitor commentedon Oct 16, 2020
You can run the scripts like CI on your local but I wouldn't recommend it.
I think we have two simple ways to debug CI:
JohnTitor commentedon Oct 16, 2020
So, after some debugging, I think https://github.com/alexcrichton/cc-rs/pull/495 is the cause. If we set
cc = "=1.0.52", the test passes: https://github.com/rust-lang/libc/runs/1266137760I'm going to pin
cccrate for now, but it'd be great if we could introduce an actual fix for it (I'll file an issue on that repository later).Auto merge of #1930 - JohnTitor:i686-android, r=<try>
Auto merge of #1930 - JohnTitor:i686-android, r=<try>
Auto merge of #1930 - JohnTitor:i686-android, r=<try>
Auto merge of #1930 - JohnTitor:i686-android, r=JohnTitor