Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2018 09:21:17 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        FreeBSD Current <freebsd-current@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   Re: aarch64-arm64 fails to build kernel 12-current raspberry pi 3
Message-ID:  <A7BBACBB-44A1-4F95-B4F6-498B72238FC5@yahoo.com>

next in thread | raw e-mail | index | archive | help
tech-lists tech-lists at zyxst.net wrote on
Wed Jul 11 11:42:58 UTC 2018 :

> Hello lists [x-posted to -current where it's also relevant]
>=20
> 12-current-arm64 fails to build generic-nodebug kernel
>=20
> context:
> 12.0-CURRENT #0 r336134: Mon Jul  9 GENERIC arm64 (this is the older =
rpi3B+)
>=20
>=20
> root at rpi3
> :/usr/src# svnlite info
> Path: .
> Working Copy Root Path: /ext/src
> URL:=20
> https://svn.freebsd.org/base/head
>=20
> Relative URL: ^/head
> Repository Root:=20
> https://svn.freebsd.org/base
>=20
> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
> Revision: 336195
> Node Kind: directory
> Schedule: normal
> Last Changed Author: eugen
> Last Changed Rev: 336195
> Last Changed Date: 2018-07-11 10:41:50 +0100 (Wed, 11 Jul 2018)
>=20
> Some dirs on /usr are symlinked to a 1TB external disk. Swap is on the=20=

> external disk. Made sure there was no src.conf or make.conf present:
>=20
>=20
> root at rpi3
> :/root# cd /etc
>=20
> root at rpi3
> :/etc# mv src.conf old.src.conf
>=20
> root at rpi3
> :/etc# mv make.conf old.make.conf
>=20
> root at rpi3
> :/etc# cd /usr/src
>=20
>=20
> root at rpi3
> :/usr/src# rm -rf /ext/obj
>=20
> root at rpi3
> :/usr/src# mkdir /ext/obj
>=20
> root at rpi3
> :/usr/src# ls -lah /usr
> total 72
> drwxr-xr-x  12 root  wheel   512B Jul 10 11:15 .
> drwxr-xr-x  20 root  wheel   512B Jul 10 18:45 ..
> drwxr-xr-x   2 root  wheel   7.5K Jul  9 20:45 bin
> drwxr-xr-x   2 root  wheel   512B Jul 10 11:15 home
> drwxr-xr-x  56 root  wheel   6.5K Jul  9 20:44 include
> drwxr-xr-x  10 root  wheel    16K Jul  9 20:45 lib
> drwxr-xr-x   5 root  wheel   512B Jul  9 20:28 lib32
> drwxr-xr-x   5 root  wheel   512B Jul  9 20:28 libdata
> drwxr-xr-x   9 root  wheel   1.5K Jul  9 20:45 libexec
> lrwxr-xr-x   1 root  wheel    10B Jul 10 11:43 local -> /ext/local
> lrwxr-xr-x   1 root  wheel     8B Jul 10 11:41 obj -> /ext/obj
> lrwxr-xr-x   1 root  wheel    10B Jul 10 11:41 ports -> /ext/ports
> drwxr-xr-x   2 root  wheel   5.0K Jul  9 20:45 sbin
> drwxr-xr-x  29 root  wheel   512B Jul  9 20:28 share
> lrwxr-xr-x   1 root  wheel     8B Jul 10 11:41 src -> /ext/src
> drwxr-xr-x  15 root  wheel   512B Jul  9 20:46 tests
>=20
>=20
> root at rpi3
> :/usr/src# make -j10 cleanworld && make -j10 cleandir && make=20
> -j10 clean <--- just to make absolutely sure
>=20
> [...]
>=20
> RPI3 is just a copy of GENERIC-NODEBUG. it looks like this:
>=20
> include GENERIC
>=20
> ident   RPI3
>=20
> nooptions       INVARIANTS
> nooptions       INVARIANT_SUPPORT
> nooptions       WITNESS
> nooptions       WITNESS_SKIPSPIN
> nooptions       DEADLKRES
> nooptions       USB_DEBUG
>=20
>=20
> root at rpi3
> :/usr/src# make -j1 buildkernel KERNCONF=3DRPI3
>=20
> [...]


[Like a answered in freebsd-arm . . .]

Bugzilla 220125 (from over a year ago) is a non-fixed report about this =
for
the likes of:

make kernel-toolchain buildkernel

Over the time since then the workaround was to use:

make buildworld buildkernel

buildworld put the needed stdint.h in place, kernel-toolchain
did not.

If kernel-toolchain was in use, then the recent bugzilla 229702
and this exchange is a duplicate. If buildworld was in use then
229702 and this exchange is new.

[Added note . . .]

It seems from the quoted material that neither kernel-toolchain nor
build world was done before buildkernel . My understanding is that
the intent is that one or the other be done first. (But for aarch64
currently only buildworld works.)



=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A7BBACBB-44A1-4F95-B4F6-498B72238FC5>