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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 05 Oct 2024 18:29:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281600

--- Comment #15 from Dennis Clarke <dclarke@blastwave.org> ---

With USE_TMPFS=no I finally see : 


=======================<phase: package        >============================
===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash
ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by'
'PKG_NOTE_build_timestamp=2024-10-01T19:27:40+0000'
'PKG_NOTE_ports_top_git_hash=1779e67e6'
'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=26df8c65a'
'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2'
NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building packages for rust-1.81.0
===>   Building rust-1.81.0
===========================================================================
=>> Cleaning up wrkdir
===>  Cleaning for rust-1.81.0

build of lang/rust | rust-1.81.0 ended at Thu Oct  3 20:58:32 UTC 2024
build time: 2D:01:30:58

Which is bizarre given that the machine thrashed for over four days when
using tmpfs.

Regardless the COMPAT11 hack allows lang/rust to build : 

enceladus# pkg install lang/rust
Updating RV64 repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01    
Fetching data.pkg: 100%   98 KiB 100.6kB/s    00:01    
Processing entries: 100%
RV64 repository update completed. 372 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        rust: 1.81.0

Number of packages to be installed: 1

The process will require 1 GiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing rust-1.81.0...
[1/1] Extracting rust-1.81.0: 100%
enceladus# 
enceladus# uname -apKU 
FreeBSD enceladus 15.0-CURRENT FreeBSD 15.0-CURRENT #0
main-n272477-5b8f97d8db82-dirty: Thu Sep 26 22:57:07 GMT 2024    
root@enceladus:/usr/obj/usr/src/riscv.riscv64/sys/SIFIVE-COMPAT11 riscv riscv64
1500023 1500023
enceladus# 
enceladus# rustc --version 
rustc 1.81.0 (f54dd915b 2024-09-02) (built from a source tarball)
enceladus# 

This is hardly a happy result due to the problems well documented all over
the place on github regarding Rust. However, yes, the lang/rust port completes.


-- 
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken

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