News for hackers. Stuff that matters.
Re:Debian Riscv64 port in mid 2019 by littlestymaar on Wednesday June 19, 2019 @10:23AM (#20223617)
AFAIK there's no gcc port underway. There is another Rust compiler[1] but it's not a complete alternative to Rustc, in the short run it was mainly intended to be a way to bootstrap a Rust compiler without needing to go all the way back to the original ocaml implementation of the first Rust compiler. As such, it is only known to output correct binary when running on the code of the Rust 1.19 compiler. This was a really successful project, but it's not something you can use to replace to compile your own arbitrary rust code.

[1] https://github.com/thepowersgang/mrustc

Re:Debian Riscv64 port in mid 2019 by nerpderp82 on Wednesday June 19, 2019 @01:43PM (#20225365)
Right, one can use mrustc to compile 1.19, but then they would need to progress through 1.XX -> current. A container chain for bootstrapping the Rust compiler would be a good idea.
Re:Debian Riscv64 port in mid 2019 by infinity0x-2 on Wednesday June 19, 2019 @07:59PM (#20228558)
Debian Rust maintainer here.

We don't need to bootstrap from scratch, Rust (via LLVM) can cross-compile very easily once riscv64 support is added.

In practise I am already cross-compiling amd64->mips/mipsel for every stable Rust release on my home box, because a native mips rustc compile runs out of memory on those 32-bit machines. [1] The cross-compiled mips works completely fine to build smaller rust packages, e.g cargo [2] ripgrep [3]

[1] https://github.com/rust-lang/rust/issues/56888 [2] https://buildd.debian.org/status/package.php?p=cargo [3] https://buildd.debian.org/status/package.php?p=rust-ripgrep

Re:Debian Riscv64 port in mid 2019 by inferiorhuman on Thursday June 20, 2019 @02:15AM (#20230373)
Yeah back with 1.14 or so I set up some cross (and native) toolchains for mipsel with the intent of putting some stuff on my ER-X. While it was a giant pain in the dick with the unsupported version of Debian Ubiquiti was using, it was doable. Cross compiling on Debian has come a long way (altho I'm using crosstool-ng on OSX these days which is fairly slick).