[Bug 281600] lang/rust failing to build on risc-v (again)
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 281600] lang/rust failing to build on risc-v (again)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Oct 2025 23:18:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281600
--- Comment #80 from Alan Somers <asomers@FreeBSD.org> ---
Dennis Clarke, there's another thing you can do to help, too. In addition to
updating libc within the Rust compiler itself, we also need to update it within
each and every port that we want to work on Riscv. In fact, that work is
independent of updating the compiler. Neither depends on the other. If you
start updating ports now, then you'll be able to build them on a server that
has COMPAT_11 enabled, and run them on a server that doesn't.
To find a port that needs updating, just enter the ports tree and run this
command:
find . -name Makefile.crates -exec egrep libc '{}' \+ | egrep -b
'libc-0.2.(176|177)'
Then to fix it, clone the origin's github repo, cd into it, and run the
following command. You can do this part on an amd64 machine. Then open a PR
request and explain why it's necessary.
cargo update -p libc
You can also patch a port. To do that, run "make patch; cd work/<WHATEVER>; cp
Cargo.lock Cargo.lock.orig; cargo update -p libc; cd -; make makepatch", and
then complete the rest of the usual process of updating a port.
This kind of work is tedious, but requires little familiarity with Rust. It's
exactly the kind of work where a motivated volunteer can make a difference.
--
You are receiving this mail because:
You are on the CC list for the bug.