Re: aarch64-arm64 fails to build kernel 12-current raspberry pi 3

From: Mark Millard <marklmi_at_yahoo.com>
Date: Wed, 11 Jul 2018 09:21:17 -0700
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]
> 
> 12-current-arm64 fails to build generic-nodebug kernel
> 
> context:
> 12.0-CURRENT #0 r336134: Mon Jul  9 GENERIC arm64 (this is the older rpi3B+)
> 
> 
> root at rpi3
> :/usr/src# svnlite info
> Path: .
> Working Copy Root Path: /ext/src
> URL: 
> https://svn.freebsd.org/base/head
> 
> Relative URL: ^/head
> Repository Root: 
> https://svn.freebsd.org/base
> 
> 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)
> 
> Some dirs on /usr are symlinked to a 1TB external disk. Swap is on the 
> external disk. Made sure there was no src.conf or make.conf present:
> 
> 
> root at rpi3
> :/root# cd /etc
> 
> root at rpi3
> :/etc# mv src.conf old.src.conf
> 
> root at rpi3
> :/etc# mv make.conf old.make.conf
> 
> root at rpi3
> :/etc# cd /usr/src
> 
> 
> root at rpi3
> :/usr/src# rm -rf /ext/obj
> 
> root at rpi3
> :/usr/src# mkdir /ext/obj
> 
> 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
> 
> 
> root at rpi3
> :/usr/src# make -j10 cleanworld && make -j10 cleandir && make 
> -j10 clean <--- just to make absolutely sure
> 
> [...]
> 
> RPI3 is just a copy of GENERIC-NODEBUG. it looks like this:
> 
> include GENERIC
> 
> ident   RPI3
> 
> nooptions       INVARIANTS
> nooptions       INVARIANT_SUPPORT
> nooptions       WITNESS
> nooptions       WITNESS_SKIPSPIN
> nooptions       DEADLKRES
> nooptions       USB_DEBUG
> 
> 
> root at rpi3
> :/usr/src# make -j1 buildkernel KERNCONF=RPI3
> 
> [...]


[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.)



===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
Received on Wed Jul 11 2018 - 14:21:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC