rustup: LZMA data error on s390x
Problem
I cannot find a working way to use rust’s beta or nightly releases on an IBM mainframe running Ubuntu:
root@zla19054:~/.cargo/bin# ./rustup default nightly
info: syncing channel updates for 'nightly-s390x-unknown-linux-gnu'
info: latest update on 2019-08-21, rust version 1.39.0-nightly (bea0372a1 2019-08-20)
info: downloading component 'rustc'
54.3 MiB / 54.3 MiB (100 %) 13.0 MiB/s in 4s ETA: 0s
info: downloading component 'rust-std'
221.3 MiB / 221.3 MiB (100 %) 16.9 MiB/s in 14s ETA: 0s
info: downloading component 'cargo'
4.5 MiB / 4.5 MiB (100 %) 1.8 MiB/s in 1s ETA: 0s
info: installing component 'rustc'
info: rolling back changes
error: failed to extract package (perhaps you ran out of disk space?)
info: caused by: lzma data error
Steps
- Connect to the IBM mainframe of your choice running Ubuntu (reach out to me if you need something here 😉 )
- Run
rustup default nightly(if the link is not being created for you like in my case, directly run the binary:~/.cargo/bin# ./rustup default nightly) 2.5 same with with thebeta - Receive error
Of course there is enough space available.
Possible Solution(s)
Is there a way to obtain these packages for s390xarchitecture somewhere directly and unpack the files / get them unpacked already, somewhere, and install them manually?
Notes
Output of rustup --version: rustup 1.18.3 (435397f48 2019-05-22)
Output of rustup show:
./rustup show
Default host: s390x-unknown-linux-gnu
stable-s390x-unknown-linux-gnu (default)
rustc 1.37.0 (eae3437df 2019-08-13)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 39 (25 by maintainers)
From our perspective, all we can do is run builds and tests on things which integrate with github PRs etc. We use Travis and Appveyor for now, and may switch to Azure pipelines in the future. If you know of an s390x capable service which binds to github and which we could use to actually build and run tests on s390x then I’d be interested. if you do, please open an issue to add support for that 😄 In the meantime, be careful to always use
--no-self-updateuntil the next rustup release.I can’t believe it:
🥳
What can be done to support you supporting s390x better? I’ll talk with some guys at IBM again to provide some access to mainframes, all their wishing for longterm support of their architecture will remain unheard as long maintainers don’t have access to their machines…
@nikita-fuchs I obviously can’t vouch for it since I just cross-built it, but…
rustup-init-s390x.zip
Give that a go?
Oh fascinating – we have a check in Rustup that ensures that the unpacked files don’t appear bogus – assuming any given file won’t be larger than 100 megs.
I’mma file a bug now.