[Bug 281600] lang/rust failing to build on risc-v (again)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Sep 2025 12:25:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281600

--- Comment #43 from void@f-m.fm ---
(In reply to Mikael Urankar from comment #42)
Hi,

Fails to build. Gets as far as here:

#######################################################

[00:07:34]     rustc installed.
[00:07:34] 
[00:07:35]
===========================================================================
[00:07:35] =======================<phase: build         
>============================
[00:07:35] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
[00:07:36] ===>  Building for rust-1.89.0
[00:07:37] Building bootstrap
[00:07:37] running: /wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo build
--manifest-path
/wrkdirs/usr/ports/lang/rust/work/rustc-1.89.0-src/src/bootstrap/Cargo.toml
-Zroot-dir=/wrkdirs/usr/ports/lang/rust/work/rustc-1.89.0-src --verbose
--verbose --frozen
[00:07:50]    Compiling libc v0.2.172
[00:07:50]    Compiling proc-macro2 v1.0.89
[00:07:50]    Compiling unicode-ident v1.0.13
[00:07:50]    Compiling version_check v0.9.5
[00:07:50]    Compiling typenum v1.17.0
[00:07:50]    Compiling memchr v2.7.4
[00:07:50]    Compiling shlex v1.3.0
[00:07:50]    Compiling crossbeam-utils v0.8.20
[00:07:50]    Compiling serde v1.0.215
[00:07:50]    Compiling cfg-if v1.0.0
[00:07:50]    Compiling pkg-config v0.3.31
[00:07:50]    Compiling heck v0.5.0

Start of error is here:

#############################################################

[00:07:52] ' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0'
CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=pkg-config CARGO_PKG
_README=README.md
CARGO_PKG_REPOSITORY='https://github.com/rust-lang/pkg-config-rs'
CARGO_PKG_RUST_VERSION=1.31 CARGO_PKG_VERSION=0.3.
31 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3
CARGO_PKG_VERSION_PATCH=31 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/wrkdirs/u
sr/ports/lang/rust/work/_build/bootstrap/debug/deps:'
/wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/rustc --crate-name pkg_config
--
edition=2018
/wrkdirs/usr/ports/lang/rust/work/rustc-1.89.0-src/vendor/pkg-config-0.3.31/src/lib.rs
--error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat
--crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no --check-cfg
'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C
metadata=00305b0f64daa088 -C extra-filename=-bf5d2b7d23f124ac --out-dir
/wrkdirs/usr/p
orts/lang/rust/work/_build/bootstrap/debug/deps -C strip=debuginfo -L
dependency=/wrkdirs/usr/ports/lang/rust/work/_build/bootstrap/de
bug/deps --cap-lints warn -Zallow-features= -C linker=cc -Wrust_2018_idioms
-Wunused_lifetimes`                                       
[00:07:52] error: could not compile `libc` (build script)                       
[00:07:53]                                                                      
[00:07:53] Caused by:                                                           
[00:07:53]   process didn't exit successfully:
`CARGO=/wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo
CARGO_CRATE_NAME=build_scr
ipt_build
CARGO_MANIFEST_DIR=/wrkdirs/usr/ports/lang/rust/work/rustc-1.89.0-src/vendor/libc-0.2.172
CARGO_MANIFEST_PATH=/wrkdirs/usr/p
orts/lang/rust/work/rustc-1.89.0-src/vendor/libc-0.2.172/Cargo.toml
CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPT
ION='Raw FFI bindings to platform libraries like libc.                          

##############################################

All of the other targets fail in the same way.

-- 
You are receiving this mail because:
You are on the CC list for the bug.