termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

[Feature]: Zig Language Support on Termux

Open gokayburuc opened this issue 4 months ago • 1 comments

Feature description

I started writing code in Zig using Helix Editor and VIM on Termux. I installed the zig and zls packages on Termux, and then installed the clang package as follows:

pkg install zig
pkg install zls
pkg install clang

After completing all these steps, when I tried to start Zig using zig init in the folder named storage/sample-zig-project/, I received the following error.

[1] 24690 invalid system call zig init

When I did some research online regarding this, I came across a comment suggesting that the libc library is incompatible with the zig language, and that the library on Termux is not compatible with the zig language. I haven't been able to pinpoint the root cause of the problem, so I'm asking for support.

Additional information

The same zig launch support works fine on other Linux-based operating systems.

gokayburuc avatar Aug 12 '25 21:08 gokayburuc

Feature description

I started writing code in Zig using Helix Editor and VIM on Termux. I installed the zig and zls packages on Termux, and then installed the clang package as follows:

pkg install zig pkg install zls pkg install clang After completing all these steps, when I tried to start Zig using zig init in the folder named storage/sample-zig-project/, I received the following error.

Executing code from shared storage is not permitted by Android.

  • Please check if this issue still persists after #25946 and #26088 and if trying to initialize a project within the Termux home directory instead of shared storage.

TomJo2000 avatar Sep 09 '25 17:09 TomJo2000