Created attachment 181018 [details] Raspberry Pi 2 Build failure fixes Crossbuilding world and kernel for RaspberryPi, I noticed the following (see patch attached): 1. CloudABI failed, due to a missing include. edje@ helped fix this by pointing me to <sys/systm.h> 2. sys/cddl/dev/fbt/arm/fbt_isa.c fails likewise, not having a definition for the `struct trapframe`. Grepping through the kernel sources pointed me to the "sys/arm/include/frame.h" header, which can be included with <machine/frame.h>. Patch attached fixes these. 3. Installworld by default fails, but this can be worked around with make TARGET_ARCH=armv6 UBLDR_LOADADDR=0x2000000 LOCAL_ITOOLS="cc uudecode ls bzip2 dd" DESTDIR=/mnt/rpi2 installworld I haven't come up with a good way to patch the build tools to fix 3. yet, open for suggestions.
Do you have a lot of the installworld failure?
(In reply to Bryan Drewery from comment #1) ITYM "log"?
Notify recent committers to fbt_isa (andrew@, markj@) and ed@ (cloudabi).
(In reply to Mark Linimon from comment #2) > (In reply to Bryan Drewery from comment #1) > > ITYM "log"? Sorry yes "log". Do you have a LOG of the installworld failure?
A commit references this bug: Author: ed Date: Fri Mar 24 07:09:33 UTC 2017 New revision: 315892 URL: https://svnweb.freebsd.org/changeset/base/315892 Log: Include <sys/systm.h> to obtain the memcpy() prototype. I got a report of this source file not building on Raspberry Pi. It's interesting that this only fails for that target and not for others. Again, that's no reason not to include the right headers. PR: 217969 Reported by: Johannes Jost Meixner MFC after: 1 week Changes: head/sys/compat/cloudabi/cloudabi_clock.c
A commit references this bug: Author: ed Date: Fri Mar 31 08:43:07 UTC 2017 New revision: 316327 URL: https://svnweb.freebsd.org/changeset/base/316327 Log: MFC r315892: Include <sys/systm.h> to obtain the memcpy() prototype. I got a report of this source file not building on Raspberry Pi. It's interesting that this only fails for that target and not for others. Again, that's no reason not to include the right headers. PR: 217969 Reported by: Johannes Jost Meixner Changes: _U stable/11/ stable/11/sys/compat/cloudabi/cloudabi_clock.c
For bugs matching the following conditions: - Status == In Progress - Assignee == "bugs@FreeBSD.org" - Last Modified Year <= 2017 Do - Set Status to "Open"
RaspberryPi builds is fine nowadays, closing as overcome by events until further or recent information is produced to the contrary.