Recent comments posted to this site:

This line causes termux to say "Bad System Call"

git-annex.linux/runshell

It also first complained about /bin/sh being missing, but stopped after restarting termux.

Comment by hobbes Thu Oct 11 22:23:00 2018

Bunch of old comments about problems with this that have been fixed were moved to old comments.

Comment by joey Thu Oct 11 22:23:00 2018

Setting all the environment variables from inside still did not break the tar execution; last resort was disabling proot in runshell. I still had to keep the termux-fix-shebang workaround.

$ ./git-annex.linux/runshell
$ mkdir test; cd test
$ git init
$ git annex init

From a first glance, things appear to be working now. I had to run termux-fix-shebang on the .git/hooks/* and set TMPDIR=something-that-actually-exists, but short of that, local adding and committing as well as moving data around.

Joey, you mentioned ghc runtime issues when introducing proot. Anything particular I should test?

Comment by https://christian.amsuess.com/chrysn Thu Oct 11 22:23:00 2018
Probably should have given some platform details to my findings that proot is counter-productive on my device: I'm running LineageOS 14.1-20180206-NIGHTLY-gts210vewifi (LineageOS API level 7, Android 7.1.2, Kernel 3.10.102) on a Samsung SM-T813 (arm64).
Comment by https://christian.amsuess.com/chrysn Thu Oct 11 22:23:00 2018

I followed the instruction to install git-annex on my Lenovo Vibe K4 running Android 6

At first I got the error /bin/sh/ is missing, which I worked around with termux-fix-shebang on runshell. Now I am getting this error.

proot info: vpid 1: terminated with signal 11

Please advice.

Comment by madapeedikakkaran Thu Oct 11 22:23:00 2018

I copied and pasted the instructions, here is my output:

https://pastebin.com/ZVJ7uSeU

Almoços for including my entire session, the relevant error is at the bottom.

I'm fairly certain this device has ARM64 arch.

Comment by bqone Thu Oct 11 22:23:00 2018

As I mentioned in Package request: git-annex · Issue #420 · termux/termux-packages just now, I also get:

% ./git-annex.linux/runshell
proot info: vpid 1: terminated with signal 11

Some further digging suggests that this is due to the architecture mismatch between my OnePlus 5T which is aarch64, and the linker which is 32-bit:

% PROOT_VERBOSE=9 ./git-annex.linux/runshell |& tail -n3
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/home/git-annex.linux/lib/ld-linux.so.3")
proot info: vpid 1:          -> "/data/data/com.termux/files/home/git-annex.linux/lib/ld-linux.so.3"
proot info: vpid 1: terminated with signal 11
% file /data/data/com.termux/files/home/git-annex.linux/lib/ld-linux.so.3
/data/data/com.termux/files/home/git-annex.linux/lib/ld-linux.so.3: ELF 32-bit LSB pie executable ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=59819e8e8c922b822204d3778cd4d6c843422462, stripped
% termux-info
Updatable packages:
All packages up to date
System information:
Linux localhost 4.4.78-perf+ #1 SMP PREEMPT Wed Jun 13 17:23:58 CST 2018 aarch64 Android
Termux-packages arch:
aarch64
Android version:
8.1.0
Device manufacturer:
OnePlus
Device model:
ONEPLUS A5010
Comment by branchable Thu Oct 11 22:23:00 2018

Running

termux-fix-shebang git-annex.linux/bin/*

actually seems to have fixed my installation. runshell and webapp both execute now, with webapp bringing up the browser.

Comment by CandyAngel Thu Oct 11 22:23:00 2018

I didn't explicitly mention it in my last comment (only in the issue I linked to), but I had already applied the termux-fix-shebang fix. Whilst this helps resolve the other issue, it does not help with the fact that ./git-annex.linux/lib/ld-linux.so.3 is a 32-bit binary which crashes with a segfault (SIG11) when run via runshell.

So this is still broken for me :-( Has anyone else had better luck on aarch64 (ARM v8) ?

Comment by branchable Thu Oct 11 22:23:00 2018
Aarch64 incurs signal 11
Comment by msloco Thu Oct 11 22:23:00 2018