To build for RISC-V we need ABI="standard" for configure : ijiraq# ijiraq# uname -apKU FreeBSD ijiraq 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r367349: Wed Nov 4 22:48:25 UTC 2020 root@FreeBSD-head-riscv64-build.jail.ci.FreeBSD.org:/usr/obj/usr/src/riscv.riscv64/sys/QEMU riscv riscv64 1300125 1300125 ijiraq# ijiraq# ijiraq# diff -u Makefile.orig Makefile --- Makefile.orig 2020-11-03 22:04:29.665018000 +0000 +++ Makefile 2020-11-08 02:14:11.729975000 +0000 @@ -41,6 +41,8 @@ .elif ${ARCH:S/64//} != ${ARCH} .if ${ARCH:Mpowerpc64*} CONFIGURE_ENV+= ABI="mode64" +.elif ${ARCH:Mriscv*} +CONFIGURE_ENV+= ABI="standard" .else CONFIGURE_ENV+= ABI="64" .endif ijiraq# Seems to work. Strangely make check does not work. ijiraq# ijiraq# make check make: don't know how to make check. Stop make: stopped in /usr/ports/math/gmp ijiraq# -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional
A commit references this bug: Author: ale Date: Sun Nov 8 09:00:42 UTC 2020 New revision: 554441 URL: https://svnweb.freebsd.org/changeset/ports/554441 Log: Allow to build on RISC-V architecture. PR: 250939 Submitted by: Dennis Clarke <dclarke@blastwave.org> Changes: head/math/gmp/Makefile