Bug 250939 - math/gmp has wrong ABI for rv64imafdc arch
Summary: math/gmp has wrong ABI for rv64imafdc arch
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: riscv Any
: --- Affects Many People
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-08 03:00 UTC by Dennis Clarke
Modified: 2020-11-08 09:01 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ale)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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