[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: Wed, 03 Sep 2025 13:15:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281600 --- Comment #64 from void@f-m.fm --- (In reply to Mikael Urankar from comment #60) Building it (the bootstrap) direct on the amd64 freebsd box didn't work, possibly because it was built with these settings in src.conf. I'm sorry I failed to capture the output at the time, but basically the error was the arch was unknown # LLVM stuff WITHOUT_LLVM_TARGET_ALL= WITHOUT_LLVM_ASSERTIONS= also the amd64 box is 14-stable the rvvm guest is -current-nodebug The setup I have is one where the rvvm freebsd riscv64 vm runs on linux, within that vm /usr/local/poudriere and /usr/ports are nfs mounted from the amd64 freebsd box. The freebsd riscv64 poudriere instance on the linux box runs its jails over this nfs. It's this way because 1. the amd64 box has poudriere+nginx of its own, so it can serve built riscv64 packages 2. it avoids if_re problems with rvvm freebsd guest (basically if_re is ok-ish for small reads/writes but things like bulk transfer from remote start quick but slow to about 20kb/s. So things like distfiles and ports tree updates get manually fetched via the amd64 then poudriere for riscv64 is started within rvvm instance. I tried initially building the bootstrap within the rvvm poudriere like this: # poudriere bulk -j riscv64 lang/rust-bootstrap@riscv64 The bootstrap appeared to build but then required actual rust to be built as a dependency and this failed in the usual place (bad system call) Later, within /usr/ports/lang/rust-bootstrap in the rvvm freebsd instance, I tried what was suggested (but here within a riscv64 environment ofc) in case the result is different # env FLAVOR=riscv64 make -DBATCH ====> Compressing man pages (compress-man) ===> Installing for riscv64-freebsd-sysroot-a2024.12.31 ===> Checking if riscv64-freebsd-sysroot is already installed ===> Registering installation for riscv64-freebsd-sysroot-a2024.12.31 as automatic Installing riscv64-freebsd-sysroot-a2024.12.31... ===> riscv64-rust-bootstrap-1.89.0 depends on package: riscv64-freebsd-sysroot>=a2021.09.14 - found ===> Returning to build of riscv64-rust-bootstrap-1.89.0 ===> riscv64-rust-bootstrap-1.89.0 depends on executable: cmake - found ===> riscv64-rust-bootstrap-1.89.0 depends on executable: gmake - found ===> riscv64-rust-bootstrap-1.89.0 depends on package: rust>=1.89.0 - not found ===> License APACHE20 MIT accepted by the user ===> rust-1.89.0 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by rust-1.89.0 for building ===> Extracting for rust-1.89.0 => SHA256 Checksum OK for rust/rustc-1.89.0-src.tar.xz. => SHA256 Checksum OK for rust/2025-06-26/rustc-1.88.0-riscv64gc-unknown-freebsd.tar.xz. => SHA256 Checksum OK for rust/2025-06-26/rust-std-1.88.0-riscv64gc-unknown-freebsd.tar.xz. => SHA256 Checksum OK for rust/2025-06-26/cargo-1.88.0-riscv64gc-unknown-freebsd.tar.xz. now waiting for this to either fail or complete -- You are receiving this mail because: You are on the CC list for the bug.