Bug 250939

Summary: math/gmp has wrong ABI for rv64imafdc arch
Product: Ports & Packages Reporter: Dennis Clarke <dclarke>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Many People CC: riscv
Priority: --- Flags: bugzilla: maintainer-feedback? (ale)
Version: Latest   
Hardware: riscv   
OS: Any   

Description Dennis Clarke 2020-11-08 03:00:07 UTC
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
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-11-08 09:01:42 UTC
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