coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Kyle Stemen" <ncyms8r3x2 AT snkmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Coq on Android?
- Date: Mon, 16 Oct 2017 08:37:38 -0700
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=ncyms8r3x2 AT snkmail.com; spf=Pass smtp.mailfrom=ncyms8r3x2 AT snkmail.com; spf=None smtp.helo=postmaster AT sneak2.sneakemail.com
- Ironport-phdr: 9a23:a5I0ohytCX13K+7XCy+O+j09IxM/srCxBDY+r6Qd0u8fIJqq85mqBkHD//Il1AaPBtqLra8cw8Pt8IneGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2NBXupSi56idXERHiPyJ0IP70E8jclZeZzee3rtfwcgFFzAGhbLZ/Kl/++QPap8wN0ZE5OvwZ0R3Kp3JJf6JdwmY+dgHbpAr1+srlpM0ryC9Xof90r8M=
I am the author of that termux PR.
I was using gnuroot debian until I upgraded to Android Oreo.
Android runs a mostly Linux kernel. gnuroot runs using proot. proot is a userspace chroot jail. It mostly let's the Linux programs talk to straight to the Android kernel, except it rewrites the file paths in the syscalls so that Linux thinks it can write to /. I think proot uses ptrace to intercept the syscalls.
Linux syscalls have been slowly added over time. So now there are a lot of redundant ones. Android Oreo blocks all the syscalls that bionic (Android's libc) doesn't use. Linux's libc uses those blocked syscalls, and proot doesn't translate them to allowed syscalls.
So I don't see how the GNUroot authors are going to fix it any time soon.
On Oct 16, 2017 7:07 AM, "Abhishek Anand abhishek.anand.iitg-at-gmail.com |coq-club/Example Allow|" <x9q55qc2ot AT sneakemail.com> wrote:
On my phone (note 4, model SM-N910C), I have had success with GNURoot Debian:IIRC, "sudo apt install coq" worked perfectly.I do prefer termux over GNURoot Debian because termux is much more lightweight and integrates much better with the rest of Android.I have also tried to install coq in termux, but I never got past your step 2, perhaps because my phone's architecture is not arch64.I have been monitoring the following PR, but I don't understand the discussion:On Oct 16, 2017 6:31 AM, "Nicolas Pelletier" <nicolas.pelletier3 AT gmail.com> wrote:Hello Coq users,I am trying to get Coq to run on my tablet (Android 7.1.1 on arm aarch64), and running into some difficulties. Here is what I did so far:1. installed termux from the Google store. The more advanced Linux solutions (such as Debian-noroot failed to boot)2. installed OCaml 4.04 + termux patches following the instsructions at http://ygrek.org.ua/p/ocaml-termux.html3. installed findlib with the opam from step 24. installed camlp5 from source, as there is no termux package for it5. trying to compile Coq 8.7-beta2 from source, I get the following error many times at link time:/data/data/com.termux/files/usr/bin/ld: plugins/ltac/ltac_plugin.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `camlLtac_plugin__G_ltac' which may bind externally can not be used when making a shared object; recompile with -fPICI tried adding -fPIC to CFLAGS and -ccopt -fPIC to OCAMLOPT in the Makefiles and scripts defining these and running make again; I got the same errors.So I am left wondering: is there another file to modify to activate these options? Is the Makefile regenerated at each compilation (overwriting my modifications)? Is PIC compilation impossible for some deeper reason? And if so, is it possible to compile statically to avoid the issue?Thanks in advance for any help on this matter.-- Nicolas
- [Coq-Club] Coq on Android?, Nicolas Pelletier, 10/16/2017
- Re: [Coq-Club] Coq on Android?, Abhishek Anand, 10/16/2017
- Message not available
- Re: [Coq-Club] Coq on Android?, Kyle Stemen, 10/16/2017
- Message not available
- Re: [Coq-Club] Coq on Android?, Nicolas Pelletier, 10/17/2017
- Re: [Coq-Club] Coq on Android?, Daniel Galvez, 10/17/2017
- Re: [Coq-Club] Coq on Android?, Pierre Courtieu, 10/17/2017
- Re: [Coq-Club] Coq on Android?, Vadim Zaliva, 10/17/2017
- Re: [Coq-Club] Coq on Android?, Abhishek Anand, 10/18/2017
- Re: [Coq-Club] Coq on Android?, Pierre Courtieu, 10/18/2017
- Re: [Coq-Club] Coq on Android?, Abhishek Anand, 10/19/2017
- Re: [Coq-Club] Coq on Android?, Pierre Courtieu, 10/18/2017
- Re: [Coq-Club] Coq on Android?, Nicolas Pelletier, 10/18/2017
- Re: [Coq-Club] Coq on Android?, Laurent Thery, 10/18/2017
- Re: [Coq-Club] Coq on Android?, Pierre Courtieu, 10/17/2017
- Re: [Coq-Club] Coq on Android?, Daniel Galvez, 10/17/2017
- Re: [Coq-Club] Coq on Android?, Abhishek Anand, 10/16/2017
- Message not available
- Re: [Coq-Club] Coq on Android?, Kyle Stemen, 10/16/2017
Archive powered by MHonArc 2.6.18.