[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: Thu, 25 Sep 2025 06:08:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281600
--- Comment #75 from Jessica Clarke <jrtc27@freebsd.org> ---
I can confirm that, if rust is updated to use the latest (v0.2.176) release of
the libc crate that bumps the FreeBSD ABI, rustc works. Comparing a pristine
rust ("rust-freebsd11") with one where libc has been bumped ("rust-freebsd12")
(both cross-compiled with upstream's build scripts for simplicity of testing):
```
root@freebsd-riscv64:~/project # PATH=/opt/rust-freebsd11/bin:$PATH cargo clean
Removed 21 files, 1.2MiB total
root@freebsd-riscv64:~/project # PATH=/opt/rust-freebsd11/bin:$PATH cargo build
Compiling project v0.1.0 (/root/project)
error: could not compile `project` (bin "project")
Caused by:
process didn't exit successfully: `rustc --crate-name project --edition=2024
src/main.rs --error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat
--diagnostic-width=241 --crate-type bin --emit=dep-info,link -C
embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg
'cfg(feature, values())' -C metadata=8d96d6deb0693d67 -C
extra-filename=-cc38c8eadff4f4b3 --out-dir /root/project/target/debug/deps -C
incremental=/root/project/target/debug/incremental -L
dependency=/root/project/target/debug/deps` (signal: 12, SIGSYS: bad system
call)
root@freebsd-riscv64:~/project # PATH=/opt/rust-freebsd12/bin:$PATH cargo clean
Removed 4 files, 599B total
root@freebsd-riscv64:~/project # PATH=/opt/rust-freebsd12/bin:$PATH cargo build
Compiling project v0.1.0 (/root/project)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.00s
root@freebsd-riscv64:~/project # PATH=/opt/rust-freebsd12/bin:$PATH cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.86s
Running `target/debug/project`
Hello, world!
```
This is testing using the default hello world project created by cargo init.
So now we "just" need ports to be updated to versions that use libc >= 0.2.176.
--
You are receiving this mail because:
You are on the CC list for the bug.