Native Linux executable for aarch64 does not work #261

Closed
opened 2025-12-30 01:22:54 +01:00 by adam · 3 comments
Owner

Originally created by @allexun on GitHub (Jan 5, 2025).

I tried running Pkl on my Raspberry Pi 5 but could not get it to work.

Followed the installation instructions from the docs:

curl -L -o pkl 'https://github.com/apple/pkl/releases/download/0.27.1/pkl-linux-aarch64'
chmod +x pkl
./pkl --version

But got this error and nothing else:

Fatal error: Failed to create the main Isolate. (code 24)

I suppose the issue affects linux/aarch64 platform in general.

Originally created by @allexun on GitHub (Jan 5, 2025). I tried running Pkl on my Raspberry Pi 5 but could not get it to work. Followed the installation instructions from the docs: ``` curl -L -o pkl 'https://github.com/apple/pkl/releases/download/0.27.1/pkl-linux-aarch64' chmod +x pkl ./pkl --version ``` But got this error and nothing else: ``` Fatal error: Failed to create the main Isolate. (code 24) ``` I suppose the issue affects `linux/aarch64` platform in general.
adam closed this issue 2025-12-30 01:22:54 +01:00
Author
Owner

@HT154 commented on GitHub (Jan 5, 2025):

The Linux aarch64 binary is well-tested on ARM Macs under virtualization, so I suspect this is unique to the rpi and similar systems. It might be related to page size, like this issue https://github.com/clojure-lsp/clojure-lsp/issues/1748. If that theory is correct then this should also repro on Asahi Linux.

@HT154 commented on GitHub (Jan 5, 2025): The Linux aarch64 binary is well-tested on ARM Macs under virtualization, so I suspect this is unique to the rpi and similar systems. It might be related to page size, like this issue https://github.com/clojure-lsp/clojure-lsp/issues/1748. If that theory is correct then this should also repro on Asahi Linux.
Author
Owner

@HT154 commented on GitHub (Jan 5, 2025):

Yup, this all but confirms my theory:

$ uname -a
Linux js-macbook-pro 6.12.1-404.asahi.fc41.aarch64+16k #1 SMP PREEMPT_DYNAMIC Mon Dec  2 23:05:31 UTC 2024 aarch64 GNU/Linux

$ ./pkl --version
Fatal error: Failed to create the main Isolate. (code 24)

I'll look into fixing this since I can readily repro.

@HT154 commented on GitHub (Jan 5, 2025): Yup, this all but confirms my theory: ```console $ uname -a Linux js-macbook-pro 6.12.1-404.asahi.fc41.aarch64+16k #1 SMP PREEMPT_DYNAMIC Mon Dec 2 23:05:31 UTC 2024 aarch64 GNU/Linux $ ./pkl --version Fatal error: Failed to create the main Isolate. (code 24) ``` I'll look into fixing this since I can readily repro.
Author
Owner

@allexun commented on GitHub (Jan 6, 2025):

Thanks for the quick reply! Hope the fix makes it into the next release

@allexun commented on GitHub (Jan 6, 2025): Thanks for the quick reply! Hope the fix makes it into the next release
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#261