crystal-lang / crystal

The Crystal Programming Language
https://crystal-lang.org
Apache License 2.0
19.35k stars 1.62k forks source link

[Android] Failed to generate multi-threaded binary with `-Dpreview_mt` on Termux #12509

Closed anzhi0708 closed 2 years ago

anzhi0708 commented 2 years ago

Since Crystal is not currently available on Termux, I installed Crystal using proot-distro (simulated Alpine, Arch & Debian environment).

When tried to compile to binary using -Dpreview_mt flag, error occurred saying failed to check if stack was overflowed and stuff.

Works fine on my Mac tho

straight-shoota commented 2 years ago

Can you post the entire error message please?

anzhi0708 commented 2 years ago

Can you post the entire error message please?

Termux just updated their official packages; now proot-distro could not be installed cuz it depends on ncurses 6.3-2 but only ncurses 6.3-3 found in Termux repo. I'll try it a few days later after this problem is fixed... sry (btw I think now rustc is broken too since they also updated clang)

anzhi0708 commented 2 years ago

@straight-shoota I installed crystal with proot-distro alpine again; this time -Dpreview_mt works perfectly :-D closing this issue