Created attachment 144739 [details]
patch to configure to enable build support on mips
MIPS builds of devel/libffi are aborting due to lack of declared support.
Adds mips*-*-freebsd* to configure and #ifdef's out call to cacheflush(),
which doesn't seem to exist currently on FreeBSD/mips64 in any form.
redports builds are at:
phabric review at:
over to maintainer
I don't have any mips hardware, and therefore can't test this. There might be a reason that mips on FreeBSD isn't supported yet.
Please not also that this port needs an update, which I will work on as time permits.
Have you tested this on mips (runtime), or just compiled it?
I'm using QEMU at this time to test builds and whatnot. We're trying to bootstrap mips/mips64 and this is one of the roadblocks.
qemu-user allows me to build a mips chroot and then enter it, emulating needed instructions in userland.
I am currently using it on an Ubiquiti Networks Edge Router Lite (ERL) running FreeBSD/mips64 -current. I am planning on fixing the inability to flush the icache from userspace which will change this patch a bit. Currently the patch just ignores the fact there isn't a mechanism to do this from user space. A command to do this needs to be added to the sysarch() system call for FreeBSD/mips. Maybe another problem report should be added stating this that blocks this one.
Thank you for your comments. I'll look into comitting this as soon as I can.
Feel free to improve the patch, and also get something ready to send to upstream if needed.
If there's no objections, I'll get mentor approval to apply this today. This is currently blocking the build of 7000+ ports on mips/mips64
build log, qemu mips enabled jail:
Doesn't seem to break amd64/i386. :-)
A commit references this bug:
Date: Wed Oct 29 15:31:02 UTC 2014
New revision: 371681
Add support for mips/mips64 targets.
Unblocks 7k ports building for these targets.
Submitted by: sson
Reviewed by: bapt (mentor)