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

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Sep 2024 00:05:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281600

--- Comment #8 from Dennis Clarke <dclarke@blastwave.org> ---
(In reply to Robert Clausecker from comment #6)


I copied the GENERIC to SIFIVE-COMPAT11 and then : 

enceladus# pwd
/usr/src/sys/riscv/conf
enceladus# 

enceladus# grep -E 'COMPAT_FREEBSD1?' SIFIVE-COMPAT11
options         COMPAT_FREEBSD11        # Compatible with FreeBSD11
options         COMPAT_FREEBSD12        # Compatible with FreeBSD12
options         COMPAT_FREEBSD13        # Compatible with FreeBSD13
options         COMPAT_FREEBSD14        # Compatible with FreeBSD14
enceladus# 

This will take a few days. The SiFive Unmatched Rev B board is amazingly slow.

Oh, also, I have already done a stop-start-curse cycle because I forgot
this lovely LLVM/Clang gack :

enceladus# diff -u lib/clang/llvm.build.mk.orig lib/clang/llvm.build.mk
--- lib/clang/llvm.build.mk.orig        2024-09-14 16:22:27.086093000 +0000
+++ lib/clang/llvm.build.mk     2024-09-24 23:24:12.892557000 +0000
@@ -108,7 +108,7 @@
 .if ${LINKER_TYPE} == "mac"
 LDFLAGS+=      -Wl,-dead_strip
 .else
-LDFLAGS+=      -Wl,--gc-sections
+LDFLAGS+=      -Wl,--gc-sections,-m,elf64lriscv_fbsd
 .endif

 CXXSTD?=       c++17
enceladus# 

Anyways ... we are looking at days and days before this completes.

That should be *if* it completes a build.


-- 
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.