aarch64-linux compile problem
Larry Dickson
tjoccam at tjoccam.com
Thu Jan 26 15:31:11 UTC 2017
Hello strace developers,
After discovering that the Samsung S2 T710 Android tablet is really 32 bit, we attempted to cross-compile strace using the NDK in 32 bits. Again I went for android-ndk-r13b-linux-x86_64.zip, which is in
>
> https://developer.android.com/ndk/downloads/index.html
>
> and brought it up according to
>
> http://nickdesaulniers.github.io/blog/2016/07/01/android-cli/
>
> (except for the source fetch, which was just a download). OK.
Instead of aarch64-linux-android-gcc I used arm-linux-androideabi-gcc, and similar for strip; instead of --host=aarch64-linux I used --host=arm-linux. ./configure worked but not make, which failed quickly on
print_msgbuf.c:35:21: fatal error: sys/msg.h: No such file or directory
Are there any known paths to successful compilation of strace for the Android?
Larry Dickson
Space Sciences Corporation
On Jan 24, 2017, at 8:15 AM, Larry Dickson <tjoccam at tjoccam.com> wrote:
> Hello strace developers,
>
> We need strace on our Samsung S2 T710 Android tablet, and I tried to cross-compile it on our Dell XPS-13 (Ubuntu 14.04 LTS) laptop. I went for android-ndk-r13b-linux-x86_64.zip, which is in
>
> https://developer.android.com/ndk/downloads/index.html
>
> and brought it up according to
>
> http://nickdesaulniers.github.io/blog/2016/07/01/android-cli/
>
> (except for the source fetch, which was just a download). OK. Then I downloaded strace-4.15.tar.xz from sourceforge and followed Muzso
>
> http://muzso.hu/2012/04/21/how-to-compile-strace-for-use-on-an-android-phone-running-an-arm-cpu
>
> except that I fixed the names and substituted aarch64-linux for arm-linux in the ./configure, which worked. (I used aarch64-linux instead of arm-linux because our device CPU is an Exynos 5433, which is an ARMx8-A.)
>
> The make failed with error
>
> # error struct flock64 definition not found in <linux/fcntl.h>
>
> which is an error discussed nowhere on the web, though I can find struct . . . fcntl.h> in three source files.
>
> Thank you for any help you can give!
>
> Larry Dickson
> Space Sciences Corporation
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170126/01b42ec2/attachment.html>
More information about the Strace-devel
mailing list