Bug 217969 - Recent buildfailures with Raspberry Pi 2 crossbuilds
Summary: Recent buildfailures with Raspberry Pi 2 crossbuilds
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: arm Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-03-21 00:28 UTC by Johannes Jost Meixner
Modified: 2018-08-09 02:30 UTC (History)
6 users (show)

See Also:


Attachments
Raspberry Pi 2 Build failure fixes (772 bytes, patch)
2017-03-21 00:28 UTC, Johannes Jost Meixner
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Jost Meixner freebsd_committer freebsd_triage 2017-03-21 00:28:23 UTC
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.
Comment 1 Bryan Drewery freebsd_committer freebsd_triage 2017-03-21 21:56:49 UTC
Do you have a lot of the installworld failure?
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2017-03-23 22:29:52 UTC
(In reply to Bryan Drewery from comment #1)

ITYM "log"?
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2017-03-23 22:31:29 UTC
Notify recent committers to fbt_isa (andrew@, markj@) and ed@ (cloudabi).
Comment 4 Bryan Drewery freebsd_committer freebsd_triage 2017-03-24 00:03:30 UTC
(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?
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-03-24 07:10:16 UTC
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
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-03-31 08:47:04 UTC
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
Comment 7 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:52:04 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 8 Kyle Evans freebsd_committer freebsd_triage 2018-08-09 02:30:06 UTC
RaspberryPi builds is fine nowadays, closing as overcome by events until further or recent information is produced to the contrary.