Created attachment 220221 [details]
new file devel/libffi/files/patch-src_riscv_ffi.c
Adding this patch to devel/libffi/files fixes the build of dependent port devel/py-setuptools on riscv64, which itself blocks more than 5868 ports.
This is similar to the patch used on mips* .
This papers over the real issue, which is that we lack a proper definition of __builtin___clear_cache on FreeBSD/RISC-V. This is something I'm investigating that doesn't have a clear long-term solution yet.
Given the number of ports that depend on python to build, I think this patch has value, even as a temporary stopgap.
I have no problems with this, approved!
A commit references this bug:
Date: Tue Dec 8 16:04:37 UTC 2020
New revision: 557291
devel/libffi: Fix abort() on FreeBSD riscv related to __clear_case()
Like on mips, disable the __builtin___clear_cache() call because it triggers
Approved by: zeising
Seems like this can be closed now, yes?