Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howto install on android Termux? #293

Closed
v217 opened this issue Oct 28, 2019 · 10 comments
Closed

Howto install on android Termux? #293

v217 opened this issue Oct 28, 2019 · 10 comments

Comments

@v217
Copy link

v217 commented Oct 28, 2019

  1. Did anybody manage to install plan9port on Termux? Or at least the rc shell?

  2. Is there an easy way to just compile one cmd (the rc shell)?

Thanks!

@wgrr
Copy link

wgrr commented Oct 29, 2019 via email

@aksr
Copy link

aksr commented Oct 29, 2019

@v217
Copy link
Author

v217 commented Oct 29, 2019

@wgrr @aksr Thanks for the links, there seems to exist a convenient way to get a chrooted ubuntu environment in Termux, so I will try this first. I thought somebody has certainly ported a rc version to android.

@v217
Copy link
Author

v217 commented Oct 29, 2019

@wgrr Is there an easy way to build just mk?

@mirtchovski
Copy link
Collaborator

mirtchovski commented Oct 29, 2019 via email

@eekee
Copy link

eekee commented Nov 15, 2019

I just tried 9base-6, then plan9port-master, both in main termux, not chrooted. [9base-6 (which is old now) failed with missing header.] p9p failed with this:

* Running on Linux: checking for NPTL...
>>> lib/linux-isnptl.c:9:7: error: expected ';' after expression
        ulong x;
             ^                                                                    ;
lib/linux-isnptl.c:9:2: error: use of undeclared identifier 'ulong'          ulong x;
        ^
lib/linux-isnptl.c:9:8: error: use of undeclared identifier 'x'
        ulong x;
              ^
lib/linux-isnptl.c:11:2: error: use of undeclared identifier 'x'
        x = (ulong)pthread_self();
        ^
lib/linux-isnptl.c:11:7: error: use of undeclared identifier 'ulong'; did you mean 'long'?
        x = (ulong)pthread_self();
             ^~~~~
             long

I'm always surprised when ulong is missing.

@v217: Thanks for the chroot link. I like that they suggest VNC for GUI; the RealVNC viewer for Android has good 3-button support. I'll be happy if sam & acme work. :)

EDIT: I lied and I missed a bit. Only that test failed, it started building mk afterward, but I didn't want to see how many type errors would appear, so I cancelled the build.

I forgot to paste this:

* Compiler version:
        clang version 9.0.0 (tags/RELEASE_900/final)

@eekee
Copy link

eekee commented Nov 15, 2019

I changed my mind (see edit), but ran into this missing getcallerpc error, which is more serious than a missing header. I imagine it will block compilation in the Ubuntu root on my tablet, too.

>>> cd /data/data/com.termux/files/home/p9p/src/lib9
9c getcallerpc-aarch64 unknown.c
clang-9: error: no such file or directory: 'getcallerpc-aarch64'
clang-9: error: no such file or directory: 'unknown.c'
clang-9: error: no input files
>>> cd /data/data/com.termux/files/home/p9p/src/lib9
9a getcallerpc-aarch64 unknown.s
usage: 9a file.s

EDIT: Looks like yet another name translation is required. It's looking for aarch64 when the file is named arm64.
src/lib9/getcallerpc-arm64.c

And then I got the same error as 9base:

>>> cd /data/data/com.termux/files/home/p9p/src/lib9
9c readcons.c
readcons.c:5:10: fatal error: 'sys/termios.h' file not found
#include <sys/termios.h>
         ^~~~~~~~~~~~~~~
1 error generated.

@rsc
Copy link
Contributor

rsc commented Jan 15, 2020

Not sure there's much to do here. Termux is not a supported build platform. It's clearly very incomplete.

@rsc rsc closed this as completed Jan 15, 2020
@eekee
Copy link

eekee commented Jan 17, 2020

Fair enough. I had to stop using my tablet for ergonomic issues, TBH. If I take it up again, I could go for one of the complete chroots.

@v217
Copy link
Author

v217 commented Jan 28, 2020

rc is now available on Termux!
termux/termux-packages#4469 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants