News for hackers. Stuff that matters.
Re:RISC-V Is Sloooow by IshKebab on Tuesday March 10, 2026 @04:39PM (#47328519)
It's usually an enormous pain to set up. QEMU is probably the best option.
Re:RISC-V Is Sloooow by STKFLT on Tuesday March 10, 2026 @05:31PM (#47329042)
Maybe there are issues I'm not aware of but using dockcross has made cross-compilation quite easy in my experience.

https://github.com/dockcross/dockcross

Re:RISC-V Is Sloooow by mort96 on Wednesday March 11, 2026 @04:14AM (#47332881)
How does it handle .so version differences and glibc version differences between the container and the target system?
Re:RISC-V Is Sloooow by pantalaimon on Tuesday March 10, 2026 @05:40PM (#47329115)
T2 manages to do it

https://t2linux.com/

Re:RISC-V Is Sloooow by sofixa on Tuesday March 10, 2026 @05:06PM (#47328786)
Depends on the language, it's pretty trivial with Go.
Re:RISC-V Is Sloooow by Zambyte on Tuesday March 10, 2026 @05:29PM (#47329022)
Unless you use CGO. I've heard people using Zig (which has great cross compilation for the Zig language as well) to cross compile C with CGO though.
Re:RISC-V Is Sloooow by IshKebab on Tuesday March 10, 2026 @06:06PM (#47329374)
Yes, but they're compiling binutils.
Re:RISC-V Is Sloooow by VorpalWay on Wednesday March 11, 2026 @03:20AM (#47332547)
Yocto, which we use at work, manages it just fine to build a whole embedded Linux distro. So I don't see why Fedora couldn't make it work if they wanted. You could even scp over the test suites to run that on native systems if you wanted.
Re:RISC-V Is Sloooow by mort96 on Wednesday March 11, 2026 @04:09AM (#47332853)
Yocto manages it thanks to the tireless effort of a community of people maintaining patches and unholy hacks for a ton of software to make it cross compilable. And they have nowhere near the amount of recipes that Fedora has.
Re:RISC-V Is Sloooow by VorpalWay on Wednesday March 11, 2026 @07:57AM (#47334462)
This is true, but the hacks are mostly in the C and C++ recipes as I understand it. Something like Rust or especially Go or Zig is far easier to cross compile.

I personally found cross compiling Rust easy, as long as you don't have C dependencies. If you have C dependencies it becomes way harder.

This suggests that spending time to upstream cross compilation fixes would be worth it for everyone, and probably even in the C world, 20% of the packages need 80% of the effort.

Re:RISC-V Is Sloooow by mort96 on Wednesday March 11, 2026 @09:23AM (#47335251)
I wonder if Fedora packages any C and C++ software?
Re:RISC-V Is Sloooow by NetMageSCW on Wednesday March 11, 2026 @11:17AM (#47336754)
I wonder how much of Fedora is written in Rust?