I'm having issue using it, rustc segfault:
PATH=/opt/rust/bin:$PATH CARGO_HOME=/opt/rust/cargo rustc --help
[1] 453672 segmentation fault (core dumped) PATH=/opt/rust/bin:$PATH CARGO_HOME=/opt/rust/cargo rustc --help
Git Clone URL: | https://aur.archlinux.org/mingw-w64-rust-bin.git (read-only, click to copy) |
---|---|
Package Base: | mingw-w64-rust-bin |
Description: | Systems programming language focused on safety, speed and concurrency (official build, mingw-w64) |
Upstream URL: | https://www.rust-lang.org |
Keywords: | mingw-w64 rust |
Licenses: | Apache-2.0 OR MIT |
Conflicts: | mingw-w64-rust |
Provides: | mingw-w64-rust |
Submitter: | pingplug |
Maintainer: | pingplug |
Last Packager: | pingplug |
Votes: | 4 |
Popularity: | 0.000000 |
First Submitted: | 2018-02-13 16:04 (UTC) |
Last Updated: | 2024-12-08 09:59 (UTC) |
I'm having issue using it, rustc segfault:
PATH=/opt/rust/bin:$PATH CARGO_HOME=/opt/rust/cargo rustc --help
[1] 453672 segmentation fault (core dumped) PATH=/opt/rust/bin:$PATH CARGO_HOME=/opt/rust/cargo rustc --help
@marmistrz I was able to get it working (at least for my needs) by telling my build script to set PATH
and CARGO_HOME
for itself, rather than setting it universally in my shell profiles. Maybe try that?
EDIT: Oh, you were asking specifically about system-wide cargo. Nevermind.
Currently the checksum for https://static.rust-lang.org/dist/cargo-0.46.1-x86_64-unknown-linux-gnu.tar.xz is wrong
FWIW copying crt2.o
and friends is no longer necessary as of 1.43 because of this change: https://github.com/rust-lang/rust/pull/67429/
@mati865, I've already added it to the wiki. The command is for rustup, but it can be easily modified to work with this package. You may also need libmsvcrt.a
mingw-w64-rust-bin can not build executable with 6.0+ version of mingw-w64-crt, but library building works (for example mingw-w64-librsvg).
This can be fixed by replacing Rust shipped crt2.o
and dllcrt2.o
with the system ones.
Please add to the pinned comment the information that in order to use the package for cross compiling, one has to either (a) add /opt/rust/bin
to PATH
or (b) add /opt/rust/lib
to LD_LIBRARY_PATH
EDIT: (b) is not true. Is there any way of using the cross target with system-wide cargo (without changing PATH
)?
Is this package still being maintained? The issue pointed out by lantw44 still exists.
It seems that the file cargo-0.30.0-x86_64-unknown-linux-gnu.tar.gz
was changed ...
$ makepkg
...
==> Validating source files with sha256sums...
cargo-0.30.0-x86_64-unknown-linux-gnu.tar.gz ... FAILED
cargo-0.30.0-x86_64-unknown-linux-gnu.tar.gz.asc ... Skipped
rustc-1.29.1-x86_64-unknown-linux-gnu.tar.gz ... Passed
rustc-1.29.1-x86_64-unknown-linux-gnu.tar.gz.asc ... Skipped
rust-std-1.29.1-x86_64-unknown-linux-gnu.tar.gz ... Passed
rust-std-1.29.1-x86_64-unknown-linux-gnu.tar.gz.asc ... Skipped
rust-std-1.29.1-i686-pc-windows-gnu.tar.gz ... Passed
rust-std-1.29.1-i686-pc-windows-gnu.tar.gz.asc ... Skipped
rust-std-1.29.1-x86_64-pc-windows-gnu.tar.gz ... Passed
rust-std-1.29.1-x86_64-pc-windows-gnu.tar.gz.asc ... Skipped
==> ERROR: One or more files did not pass the validity check!
$ ls -l cargo-0.30.0-x86_64-unknown-linux-gnu.tar.gz
-rw-r--r-- 1 testuser wheel 7386706 Sep 29 03:58 cargo-0.30.0-x86_64-unknown-linux-gnu.tar.gz
$ sha256sum cargo-0.30.0-x86_64-unknown-linux-gnu.tar.gz
b6012ef67923b67b9b558628cc41dd90a688742bf23e9b46ad8839d898f1b0b1 cargo-0.30.0-x86_64-unknown-linux-gnu.tar.gz
remove version check for MinGW now, but you should read the pinned comment first before installing this package
Pinned Comments
pingplug commented on 2018-09-24 05:33 (UTC) (edited on 2019-07-26 03:44 (UTC) by pingplug)
mingw-w64-gcc
)./opt/rust/bin
toPATH
, and setCARGO_HOME
to/opt/rust/cargo
.