cosmopolitan icon indicating copy to clipboard operation
cosmopolitan copied to clipboard

Feature Request: armv8l support

Open dereference23 opened this issue 2 months ago • 5 comments

Prerequisites

  • [x] I am running the latest code. Mention the version if possible as well.
  • [x] I carefully followed the README.md.
  • [x] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • [x] I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

I tried to run vim from https://cosmo.zip/pub/cosmos/bin/vim on an Android device with 32-bit userspace and 64-bit kernel (this is a common setup for low-RAM devices). The output was: /data/local/tmp/vim: this ape program lacks armv8l support Then I created a dummy uname script in the $PATH that unconditionally printed aarch64. This helped and vim ran flawlessly.

Motivation

There will be one more officially supported platform

Possible Implementation

armv8l should be treated in the same way as aarch64

dereference23 avatar Nov 10 '25 15:11 dereference23

Cosmopolitan is strictly x86_64. I think this belongs in blink, which is what cosmopolitan uses to support other platforms.

alganet avatar Nov 10 '25 17:11 alganet

No, this belongs here because APE implementation is here. And you can find many references to aarch64 in this repository as well.

dereference23 avatar Nov 11 '25 13:11 dereference23

@alganet Cosmopolitan Libc supports ARM64. It has for years.

@dereference23 What operating system / distro are you using? I've never heard of uname -m reporting armv8l before. Normally it's supposed to say aarch64 or arm64.

jart avatar Nov 11 '25 16:11 jart

@jart As I mentioned, it is 32-bit Android. But I think every 32-bit OS with 64-bit Linux kernel will report armv8l

dereference23 avatar Nov 11 '25 17:11 dereference23

@dereference23 @jart yep, sorry, my mistake!

alganet avatar Nov 11 '25 18:11 alganet