Created attachment 203858 [details] libffcall.patch Built fine on current, lang/clisp works.
@Greg Was this tested with a native machine, cross-built or something? With poudriere or just a build/install? What about runtime? We may also want confirmation it builds on other supported FreeBSD versions too
(In reply to Kubilay Kocak from comment #1) Fully native, just make installed on a packet c2.large.arm (Ampere eMAG). Just tested FFI specifically in CLISP (which presumably uses this FFI library for… well, FFI): (use-package "FFI") (def-call-out gethostname1 (:name "gethostname") (:arguments (name (c-ptr (c-array-max character 256)) :out :alloca) (len int)) (:return-type int) (:language :stdc) (:library :default)) (gethostname1 256) does work fine.
Committed, thanks.
A commit references this bug: Author: linimon Date: Tue Apr 23 16:28:43 UTC 2019 New revision: 499767 URL: https://svnweb.freebsd.org/changeset/ports/499767 Log: Now builds on aarch64. PR: 237432 Submitted by: Greg V <greg at unrelenting dot technology> Approved by: portmgr (tier-2 blanket) Changes: head/devel/libffcall/Makefile
A commit references this bug: Author: linimon Date: Tue Apr 23 16:38:14 UTC 2019 New revision: 499768 URL: https://svnweb.freebsd.org/changeset/ports/499768 Log: MFH: r499767 Now builds on aarch64. PR: 237432 Submitted by: Greg V <greg at unrelenting dot technology> Approved by: portmgr (tier-2 blanket) Changes: _U branches/2019Q2/ branches/2019Q2/devel/libffcall/Makefile