-
-
Notifications
You must be signed in to change notification settings - Fork 920
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
rust / rustup #67
Comments
That error is fixed in the master branch, but then you get a different one. |
As of the latest build, here’s what I get when running that command:
|
That error is the same as the one preventing ssh from reading passwords from stdin. |
I installed bash and ran the script with -y to get around the tty issue, but it then just crashed the entire app |
/dev/tty and segfault issues are fixed, but now it turns out rustup doesn't work on alpine. You'll have to install rust through apk. |
And you can't install rust through apk because they only have 64-bit binaries... |
@tbodt so rust works or doesn't work? I cannot install it via apk or rustup script. I am asking because you moved the card to "Works". 😄 |
It doesn’t work and I’m not sure how to make it work. Maybe I should make a new column for that sort of thing? |
I would vote for a new column with a label like help needed? It might encourage contribution as well as a side effect. What do you think? |
I moved it back to Doesn’t Work. Possibilities for getting it to work:
|
@tbodt Thank you for the response. I have little experience with system programming like this so I really cannot comment on any of those solutions except that Rust support isn't that urgent so if you have a plan for 64-bit support, I would vote for that instead of anything else. And if you can plan out and want to farm out some tasks for newbies like me, this could be fun as well. Maybe? 😀 |
I would love to have more people contributing, but this is not an easy project to contribute to. You’d need to be pretty good at C and Linux to work on it. |
Just a heads up, Ubuntu has a minimal version now: https://blog.ubuntu.com/2018/07/09/minimal-ubuntu-released |
They don’t seem to have a 32-bit version available for download. |
They have 32-bit on this page: https://help.ubuntu.com/l/Installation/MinimalCD |
That link gives a 404. |
weird, the url got changed when I pasted to github https://help.ubuntu.com/community/Installation/MinimalCD |
I found a 32-bit rootfs for Ubuntu Base here: http://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/ |
I think once this is merged then a 32bit build for musl shouldn't be to hard: rust-lang/rust#55163 |
I met the same problom when I installed rust on ubuntu 18.04. |
Rust 1.35.0, which is released on May 24, supports for x86_64-unknown-linux-musl. 🎉 But, i686-unknown-linux-musl is still not supported by rustc and cargo. |
rust-lang/rust#71586 (comment) indicates that [ 0.000000] 17 illegal instruction at 0x56cd15be: 0f fe e1 66 0f df dc 66 is not an iSH bug, despite the existence of both Rust/“rustup” and Cargo .apk packages in Alpine 3.12 since the latter depends on the former, neither will currently run. |
fwiw cargo from the alpine installation fails on cargo install ripgrep with
|
Bump, I'm getting this issue too.
|
Any updated? |
Any updates? |
|
OK I implemented minss (will put up a PR at some point) and it definitely makes some progress. But something else must be broken because it alternates between segfaulting the mm code and trying to read from a closed file descriptor… |
@KKK669 How did you manage to make it work? With iSH version 1.2.4 build 444,
Thank you
|
I upgraded all packages and tested it again, and then I encountered the same errors as you did. |
This is a bug in some versions of Alpine. If you install a 3.16.3 or late Alpine rootfs it should work with the TestFlight version of iSH. The current Appstore version is missing some machine code instructions needed by Rust. |
Thank you, now it works! 🎉 Tested on iSH version 1.2.4 build 445, updating current filesystem using following commands:
|
Nice !!!
…____________________
Francois
Le 30 janv. 2023 à 23:06, Stefano Cotta Ramusino ***@***.***> a écrit :
Thank you, now it works! 🎉
Tested on iSH version 1.2.4 build 445, updating current filesystem with cargo already installed using following command:
echo https://dl-cdn.alpinelinux.org/alpine/v3.16/main > /etc/apk/repositories && echo https://dl-cdn.alpinelinux.org/alpine/v3.16/community >> /etc/apk/repositories && apk update && apk upgrade
—
Reply to this email directly, view it on GitHub <#67 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AK466UQRRNSWZIZGR5SQEP3WVA3OPANCNFSM4GDK53WA>.
You are receiving this because you are subscribed to this thread.
|
Well, it's not really fixed until iSH is updated in the App store. The TestFlight is closed so I'm stuck waiting. |
I installed latest build with AltStore |
Doesn't that require a jail broken iPhone? (Which isn't an option for me) |
Not at all. Just a PC or a Mac to install AltServer. You can find any info on https://altstore.io |
iSH 1.3 is out, which has fixes for this issue. Please try it out and file new issues with what you encounter! |
Running iSH 1.3.2 and have run the commands referenced earlier in the thread, and I’m getting the same errors as @emkey1 However I am running it on my IPad Pro. |
Me too, with iSH 1.3.2. Having the same issue:
|
Okay I found it working again 🎉. Here is what you need:
|
Does anyone know if it's possible to use Rust on a version newer than 1.60.0 (that's what apk v3.16 contains)? I tried, and any version newer than 1.60.0 (1.64.0, 1.71.0, 1.78.0, 1.80.1) all fail for some reason or another (seemingly failing to get a key from a HashMap when compiling), and even 1.60.0 segfaults with specific crates like regex (on a compatible version), and of course the latest rust version, 1.80.1, fails with Illegal instruction (which makes sense) I'm also slightly confused because sideloading iSH's builds from Releases via Sideloadly seems to insta-crash the app every time no matter what build I sideload, which is relatively concerning. |
Not unsurprisingly, Rust doesn't seem to install currently:
Mostly reporting here so we can add it to the compatibility table.
The text was updated successfully, but these errors were encountered: