Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2016 12:16:41 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>
Cc:        Bryan Drewery <bdrewery@FreeBSD.org>
Subject:   Re: stable/11 -r308135 Build for RPI2 failed for: . . ./bcm2835_ft5406.c:65:10: fatal error: 'mbox_if.h' file not found
Message-ID:  <8400BD9A-E08C-4578-8409-274B1BC30C98@dsl-only.net>
In-Reply-To: <B5225D04-5323-42FE-863F-883A8D030764@dsl-only.net>
References:  <B5225D04-5323-42FE-863F-883A8D030764@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Quick top post reporting that a build-order-race for -j use seems =
likely: the clean-then-build sequence

> Command: env __MAKE_CONF=3D/root/src.configs/make.conf =
SRC_ENV_CONF=3D/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host =
WITH_META_MODE=3Dyes MAKEOBJDIRPREFIX=3D/usr/obj/rpi2_clang make =
cleanworld
>=20
> Command: env __MAKE_CONF=3D/root/src.configs/make.conf =
SRC_ENV_CONF=3D/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host =
WITH_META_MODE=3Dyes MAKEOBJDIRPREFIX=3D/usr/obj/rpi2_clang make -j 5 =
buildworld buildkernel

that used -j 5 for buildworld buildkernel got the problem again. But =
following that failure by doing just buildkernel without the -j 5:

> Command: env __MAKE_CONF=3D/root/src.configs/make.conf =
SRC_ENV_CONF=3D/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host =
WITH_META_MODE=3Dyes MAKEOBJDIRPREFIX=3D/usr/obj/rpi2_clang make =
buildkernel

completed the rest of the build just fine, creating the =
previously-missing file before trying to use it.


=3D=3D=3D
Mark Millard
markmi at dsl-only.net

On 2016-Nov-2, at 3:13 AM, Mark Millard <markmi at dsl-only.net> wrote:

> Lack of dependency? Race? (I've not isolated why this happened yet but =
I was using -j 5 for buildworld buildkernel .)
>=20
> This was a cross-build attempt from an amd64 context:
>=20
> # uname -apKU
> FreeBSD FreeBSDx64 11.0-STABLE FreeBSD 11.0-STABLE #1 r308135M: Tue =
Nov  1 23:48:47 PDT 2016     =
root@FreeBSDx64:/usr/obj/amd64_clang/amd64.amd64/usr/src/sys/GENERIC-NODBG=
  amd64 amd64 1100506 1100506
>=20
> # svnlite info /usr/src/ | grep "Re[lv]"
> Relative URL: ^/stable/11
> Revision: 308135
> Last Changed Rev: 308135
>=20
> # find /usr/src/sys/ -name "*files*" -exec grep mbox_if {} \; -print | =
more
> dev/mbox/mbox_if.m                              standard
> /usr/src/sys/arm/broadcom/bcm2835/files.bcm283x
> dev/mbox/mbox_if.m                              optional        =
ti_mbox
> /usr/src/sys/arm/ti/files.ti
>=20
> # find /usr/obj/rpi2_clang/arm.armv6/ -name mbox_if.h -print | more    =
                                                                         =
                                                                         =
                                               =20
> #
>=20
> (So no mbox_if.h file is present in the build tree.)
>=20
> # head =
~/sys_typescripts/typescript_make_rpi2_nodebug_clang_bootstrap-amd64-host-=
2016-11-02:00:59:43
> Script started on Wed Nov  2 00:59:43 2016
> Command: env __MAKE_CONF=3D/root/src.configs/make.conf =
SRC_ENV_CONF=3D/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host =
WITH_META_MODE=3Dyes MAKEOBJDIRPREFIX=3D/usr/obj/rpi2_clang make -j 5 =
buildworld buildkernel
> . . .
> --- all_subdir_rpi_ft5406 ---
> --- bcm2835_ft5406.o ---
> =
/usr/src/sys/modules/rpi_ft5406/../../arm/broadcom/bcm2835//bcm2835_ft5406=
.c:65:10: fatal error: 'mbox_if.h' file not found
> #include "mbox_if.h"
>         ^
> 1 error generated.
> *** [bcm2835_ft5406.o] Error code 1
>=20
> make[4]: stopped in /usr/src/sys/modules/rpi_ft5406
> .ERROR_TARGET=3D'bcm2835_ft5406.o'
> =
.ERROR_META_FILE=3D'/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/m=
odules/usr/src/sys/modules/rpi_ft5406/bcm2835_ft5406.o.meta'
> .MAKE.LEVEL=3D'4'
> MAKEFILE=3D''
> .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes=
 verbose'
> .CURDIR=3D'/usr/src/sys/modules/rpi_ft5406'
> .MAKE=3D'make'
> =
.OBJDIR=3D'/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/us=
r/src/sys/modules/rpi_ft5406'
> .TARGETS=3D'all'
> DESTDIR=3D''
> LD_LIBRARY_PATH=3D''
> MACHINE=3D'arm'
> MACHINE_ARCH=3D'armv6'
> =
MAKEOBJDIRPREFIX=3D'/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/m=
odules'
> MAKESYSPATH=3D'/usr/src/share/mk'
> MAKE_VERSION=3D'20160606'
> =
PATH=3D'/usr/obj/rpi2_clang/arm.armv6/usr/src/tmp/legacy/usr/sbin:/usr/obj=
/rpi2_clang/arm.armv6/usr/src/tmp/legacy/usr/bin:/usr/obj/rpi2_clang/arm.a=
rmv6/usr/src/tmp/legacy/bin:/usr/obj/rpi2_clang/arm.armv6/usr/src/tmp/usr/=
sbin:/usr/obj/rpi2_clang/arm.armv6/usr/src/tmp/usr/bin:/sbin:/bin:/usr/sbi=
n:/usr/bin'
> SRCTOP=3D'/usr/src'
> =
OBJTOP=3D'/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr=
/src'
> .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk =
/usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk =
/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host =
/usr/src/share/mk/bsd.mkopt.mk /root/src.configs/make.conf =
/usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk =
/etc/src.conf /usr/src/sys/modules/rpi_ft5406/Makefile =
/usr/src/share/mk/bsd.kmod.mk /usr/src/sys/conf/kmod.mk =
/usr/src/share/mk/bsd.init.mk /usr/src/share/mk/bsd.opts.mk =
/usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/local.init.mk =
/usr/src/share/mk/src.init.mk =
/usr/src/sys/modules/rpi_ft5406/../Makefile.inc =
/usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk =
/usr/src/sys/conf/kern.opts.mk /usr/src/sys/conf/config.mk =
/usr/src/share/mk/bsd.links.mk /usr/src/share/mk/bsd.dep.mk =
/usr/src/share/mk/bsd.clang-analyze.mk /usr/src/share/mk/bsd.obj.mk =
/usr/src/share/mk/bsd.subdir.mk /usr/src/sys/conf/kern.mk'
> .PATH=3D'. /usr/src/sys/modules/rpi_ft5406 =
/usr/src/sys/modules/rpi_ft5406/../../arm/broadcom/bcm2835/ =
/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG'
> 1 error
> . . .
>=20
> # less =
/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/m=
odules/rpi_ft5406/bcm2835_ft5406.o.meta
> # Meta data file =
/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/m=
odules/rpi_ft5406/bcm2835_ft5406.o.meta
> CMD cc -mcpu=3Dcortex-a7 -O -pipe  -Werror -D_KERNEL -DKLD_MODULE =
-nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include =
/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/opt_global.h -I. =
-I/usr/src/sys -fno-common -g -funwind-tables =
-I/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG -march=3Darmv7a =
-ffreestanding -fwrapv -gdwarf-2 -Wall -Wredundant-decls =
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes =
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign =
-D__printf__=3D__freebsd_kprintf__  -Wmissing-include-dirs =
-fdiagnostics-show-option  -Wno-unknown-pragmas  =
-Wno-error-tautological-compare -Wno-error-empty-body  =
-Wno-error-parentheses-equality -Wno-error-unused-function  =
-Wno-error-pointer-sign -Wno-error-shift-negative-value  -mno-movt =
-mfpu=3Dnone  -std=3Diso9899:1999 -c =
/usr/src/sys/modules/rpi_ft5406/../../arm/broadcom/bcm2835//bcm2835_ft5406=
.c -o bcm2835_ft5406.o
> CMD ctfconvert -L VERSION -g bcm2835_ft5406.o
> CWD =
/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/m=
odules/rpi_ft5406
> TARGET bcm2835_ft5406.o
> -- command output --
> =
/usr/src/sys/modules/rpi_ft5406/../../arm/broadcom/bcm2835//bcm2835_ft5406=
.c:65:10: fatal error: 'mbox_if.h' file not found
> #include "mbox_if.h"
>         ^
> 1 error generated.
> *** Error code 1
>=20
> -- filemon acquired metadata --
> # filemon version 5
> # Target pid 65803
> # Start 1478076388.181546
> V 5
> E 65827 /bin/sh
> R 65827 /etc/libmap.conf
> R 65827 /var/run/ld-elf.so.hints
> R 65827 /lib/libedit.so.7
> R 65827 /lib/libc.so.7
> R 65827 /lib/libncursesw.so.8
> F 65827 65834
> E 65834 /usr/obj/rpi2_clang/arm.armv6/usr/src/tmp/usr/bin/cc
> F 65834 65836
> E 65836 /usr/obj/rpi2_clang/arm.armv6/usr/src/tmp/usr/bin/cc
> R 65836 =
/usr/src/sys/modules/rpi_ft5406/../../arm/broadcom/bcm2835//bcm2835_ft5406=
.c
> R 65836 bcm2835_ft5406.o-bd1d6a1e
> W 65836 bcm2835_ft5406.o-bd1d6a1e
> R 65836 =
/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/opt_global.h
> R 65836 /usr/src/sys/sys/cdefs.h
> R 65836 /usr/src/sys/sys/param.h
> R 65836 /usr/src/sys/sys/_null.h
> R 65836 /usr/src/sys/sys/types.h
> R 65836 ./machine/endian.h
> R 65836 /usr/src/sys/sys/_types.h
> R 65836 ./machine/_types.h
> R 65836 /usr/src/sys/sys/_pthreadtypes.h
> R 65836 /usr/src/sys/sys/_stdint.h
> R 65836 /usr/src/sys/sys/select.h
> R 65836 /usr/src/sys/sys/_sigset.h
> R 65836 /usr/src/sys/sys/_timeval.h
> R 65836 /usr/src/sys/sys/timespec.h
> R 65836 /usr/src/sys/sys/_timespec.h
> R 65836 /usr/src/sys/sys/syslimits.h
> R 65836 /usr/src/sys/sys/errno.h
> R 65836 /usr/src/sys/sys/time.h
> R 65836 /usr/src/sys/sys/priority.h
> R 65836 ./machine/param.h
> R 65836 ./machine/_align.h
> R 65836 /usr/src/sys/sys/systm.h
> R 65836 ./machine/atomic.h
> R 65836 ./machine/armreg.h
> R 65836 ./machine/cpuconf.h
> R 65836 ./machine/atomic-v6.h
> R 65836 ./machine/cpufunc.h
> R 65836 /usr/src/sys/sys/callout.h
> R 65836 /usr/src/sys/sys/_callout.h
> R 65836 /usr/src/sys/sys/queue.h
> R 65836 /usr/src/sys/sys/stdint.h
> R 65836 ./machine/_stdint.h
> R 65836 /usr/src/sys/sys/libkern.h
> R 65836 /usr/src/sys/sys/bus.h
> R 65836 ./machine/_limits.h
> R 65836 ./machine/_bus.h
> R 65836 /usr/src/sys/sys/_bus_dma.h
> R 65836 /usr/src/sys/sys/ioccom.h
> R 65836 /usr/src/sys/sys/eventhandler.h
> R 65836 /usr/src/sys/sys/lock.h
> R 65836 /usr/src/sys/sys/_lock.h
> R 65836 /usr/src/sys/sys/ktr_class.h
> R 65836 /usr/src/sys/sys/ktr.h
> R 65836 /usr/src/sys/sys/_cpuset.h
> R 65836 /usr/src/sys/sys/_bitset.h
> R 65836 /usr/src/sys/sys/mutex.h
> R 65836 /usr/src/sys/sys/_mutex.h
> R 65836 /usr/src/sys/sys/pcpu.h
> R 65836 /usr/src/sys/sys/_sx.h
> R 65836 /usr/src/sys/sys/_rmlock.h
> R 65836 /usr/src/sys/sys/vmmeter.h
> R 65836 /usr/src/sys/sys/resource.h
> R 65836 ./machine/pcpu.h
> R 65836 /usr/src/sys/sys/lock_profile.h
> R 65836 /usr/src/sys/sys/lockstat.h
> R 65836 /usr/src/sys/sys/sdt.h
> R 65836 /usr/src/sys/sys/linker_set.h
> R 65836 /usr/src/sys/sys/kobj.h
> R 65836 ./device_if.h
> R 65836 ./bus_if.h
> R 65836 /usr/src/sys/sys/cpu.h
> R 65836 /usr/src/sys/sys/kernel.h
> R 65836 /usr/src/sys/sys/malloc.h
> R 65836 /usr/src/sys/sys/module.h
> R 65836 /usr/src/sys/sys/condvar.h
> R 65836 /usr/src/sys/sys/sysctl.h
> R 65836 /usr/src/sys/sys/selinfo.h
> R 65836 /usr/src/sys/sys/event.h
> R 65836 /usr/src/sys/sys/poll.h
> R 65836 /usr/src/sys/sys/uio.h
> R 65836 /usr/src/sys/sys/_iovec.h
> R 65836 /usr/src/sys/sys/conf.h
> R 65836 /usr/src/sys/vm/vm.h
> R 65836 ./machine/vm.h
> R 65836 /usr/src/sys/vm/pmap.h
> R 65836 ./machine/pmap.h
> R 65836 ./machine/pmap-v6.h
> R 65836 /usr/src/sys/dev/fdt/fdt_common.h
> R 65836 /usr/src/sys/sys/slicer.h
> R 65836 /usr/src/sys/contrib/libfdt/libfdt_env.h
> R 65836 /usr/src/sys/dev/ofw/ofw_bus.h
> R 65836 /usr/src/sys/dev/ofw/openfirm.h
> R 65836 ./machine/ofw_machdep.h
> R 65836 /usr/src/sys/sys/rman.h
> R 65836 ./machine/resource.h
> R 65836 ./ofw_bus_if.h
> R 65836 /usr/src/sys/dev/ofw/ofw_bus_subr.h
> R 65836 /usr/src/sys/dev/evdev/input.h
> R 65836 /usr/src/sys/dev/evdev/input-event-codes.h
> R 65836 /usr/src/sys/dev/evdev/evdev.h
> R 65836 /usr/src/sys/sys/kbio.h
> R 65836 /usr/src/sys/dev/kbd/kbdreg.h
> R 65836 ./machine/bus.h
> R 65836 ./machine/bus_dma.h
> R 65836 /usr/src/sys/sys/bus_dma.h
> R 65836 ./machine/cpu.h
> R 65836 ./machine/frame.h
> R 65836 /usr/src/sys/sys/signal.h
> R 65836 ./machine/signal.h
> R 65836 /usr/src/sys/sys/ucontext.h
> R 65836 ./machine/ucontext.h
> R 65836 /usr/src/sys/sys/_ucontext.h
> R 65836 ./machine/cpu-v6.h
> R 65836 ./machine/cpuinfo.h
> R 65836 ./machine/sysreg.h
> R 65836 ./machine/intr.h
> R 65836 /usr/src/sys/sys/intr.h
> R 65836 /usr/src/sys/arm/broadcom/bcm2835/bcm2835_mbox.h
> R 65836 /usr/src/sys/arm/broadcom/bcm2835/bcm2835_mbox_prop.h
> R 65836 /usr/src/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h
> D 65836 bcm2835_ft5406.o-bd1d6a1e
> X 65836 1 0
> X 65834 1 0
> X 65827 1 0
> # Stop 1478076388.449702
> # Bye bye
>=20
>=20
> # grep mbox_if =
~/sys_typescripts/typescript_make_rpi2_nodebug_clang_bootstrap-amd64-host-=
2016-11-02:00:59:43 | more
> cd /usr/src/sys/modules; =
MAKEOBJDIRPREFIX=3D/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/mo=
dules KMODDIR=3D/boot/kernel MACHINE_CPUARCH=3Darm MACHINE=3Darm =
MACHINE_ARCH=3Darmv6 MODULES_EXTRA=3D"dtb/rpi rpi_ft5406" =
WITHOUT_MODULES=3D"" DEBUG_FLAGS=3D"-g" =
__MPATH=3D"/usr/src/sys/pc98/pc98/canbus_if.m /usr/src/sys/isa/isa_if.m =
/usr/src/sys/xen/xenbus/xenbusb_if.m /usr/src/sys/xen/xenbus/xenbus_if.m =
/usr/src/sys/xen/xenmem/xenmem_if.m /usr/src/sys/net/ifdi_if.m =
/usr/src/sys/geom/raid/g_raid_tr_if.m =
/usr/src/sys/geom/raid/g_raid_md_if.m /usr/src/sys/geom/part/g_part_if.m =
/usr/src/sys/dev/usb/controller/generic_usb_if.m =
/usr/src/sys/dev/usb/usb_if.m =
/usr/src/sys/dev/virtio/mmio/virtio_mmio_if.m =
/usr/src/sys/dev/virtio/virtio_bus_if.m =
/usr/src/sys/dev/virtio/virtio_if.m /usr/src/sys/dev/spibus/spibus_if.m =
/usr/src/sys/dev/pccard/card_if.m /usr/src/sys/dev/pccard/power_if.m =
/usr/src/sys/dev/sdhci/sdhci_if.m /usr/src/sys/dev/sound/midi/mpu_if.m =
/usr/src/sys/dev/sound/midi/mpufoi_if.m =
/usr/src/sys/dev/sound/midi/synth_if.m =
/usr/src/sys/dev/sound/pci/hda/hdac_if.m =
/usr/src/sys/dev/sound/pcm/feeder_if.m =
/usr/src/sys/dev/sound/pcm/channel_if.m =
/usr/src/sys/dev/sound/pcm/mixer_if.m =
/usr/src/sys/dev/sound/pcm/ac97_if.m /usr/src/sys/dev/scc/scc_if.m =
/usr/src/sys/dev/hyperv/vmbus/vmbus_if.m =
/usr/src/sys/dev/bhnd/cores/chipc/bhnd_chipc_if.m =
/usr/src/sys/dev/bhnd/bhndb/bhndb_if.m =
/usr/src/sys/dev/bhnd/bhndb/bhndb_bus_if.m =
/usr/src/sys/dev/bhnd/bhnd_bus_if.m =
/usr/src/sys/dev/bhnd/nvram/bhnd_nvram_if.m =
/usr/src/sys/dev/eisa/eisa_if.m /usr/src/sys/dev/adb/adb_hb_if.m =
/usr/src/sys/dev/adb/adb_if.m /usr/src/sys/dev/mbox/mbox_if.m =
/usr/src/sys/dev/altera/pio/pio_if.m =
/usr/src/sys/dev/iscsi/icl_conn_if.m /usr/src/sys/dev/agp/agp_if.m =
/usr/src/sys/dev/mmc/mmcbus_if.m /usr/src/sys/dev/mmc/mmcbr_if.m =
/usr/src/sys/dev/ata/ata_if.m /usr/src/sys/dev/pci/pci_if.m =
/usr/src/sys/dev/pci/pcib_if.m /usr/src/sys/dev/pci/pci_iov_if.m =
/usr/src/sys/dev/cxgbe/t4_if.m /usr/src/sys/dev/gpio/gpiobus_if.m =
/usr/src/sys/dev/gpio/gpio_if.m /usr/src/sys/dev/ow/owll_if.m =
/usr/src/sys/dev/ow/own_if.m /usr/src/sys/dev/fdt/fdt_clock_if.m =
/usr/src/sys/dev/fdt/fdt_pinctrl_if.m /usr/src/sys/dev/acpica/acpi_if.m =
/usr/src/sys/dev/fb/fb_if.m /usr/src/sys/dev/vnic/lmac_if.m =
/usr/src/sys/dev/mdio/mdio_if.m /usr/src/sys/dev/dwc/if_dwc_if.m =
/usr/src/sys/dev/mii/miibus_if.m /usr/src/sys/dev/smbus/smbus_if.m =
/usr/src/sys/dev/iicbus/iicbus_if.m /usr/src/sys/dev/iicbus/iicbb_if.m =
/usr/src/sys/dev/ofw/ofw_bus_if.m /usr/src/sys/dev/ofw/ofw_if.m =
/usr/src/sys/dev/ntb/ntb_if.m =
/usr/src/sys/dev/acpi_support/acpi_wmi_if.m =
/usr/src/sys/dev/extres/clk/clknode_if.m =
/usr/src/sys/dev/extres/clk/clkdev_if.m =
/usr/src/sys/dev/extres/regulator/regdev_if.m =
/usr/src/sys/dev/extres/regulator/regnode_if.m =
/usr/src/sys/dev/extres/hwreset/hwreset_if.m =
/usr/src/sys/dev/extres/phy/phy_if.m =
/usr/src/sys/dev/etherswitch/etherswitch_if.m =
/usr/src/sys/dev/mvs/mvs_if.m /usr/src/sys/dev/ppbus/ppbus_if.m =
/usr/src/sys/dev/uart/uart_if.m /usr/src/sys/dev/nand/nand_if.m =
/usr/src/sys/dev/nand/nandbus_if.m /usr/src/sys/dev/nand/nfc_if.m =
/usr/src/sys/arm/arm/platform_if.m /usr/src/sys/arm/arm/hdmi_if.m =
/usr/src/sys/arm/ti/ti_gpio_if.m =
/usr/src/sys/arm/allwinner/sunxi_dma_if.m =
/usr/src/sys/arm/nvidia/tegra_soctherm_if.m =
/usr/src/sys/sparc64/pci/ofw_pci_if.m /usr/src/sys/mips/beri/fdt_ic_if.m =
/usr/src/sys/mips/mediatek/fdt_reset_if.m =
/usr/src/sys/libkern/iconv_converter_if.m =
/usr/src/sys/powerpc/aim/moea64_if.m =
/usr/src/sys/powerpc/powerpc/pic_if.m =
/usr/src/sys/powerpc/powerpc/platform_if.m =
/usr/src/sys/powerpc/powerpc/mmu_if.m =
/usr/src/sys/powerpc/powerpc/iommu_if.m =
/usr/src/sys/opencrypto/cryptodev_if.m /usr/src/sys/kern/msi_if.m =
/usr/src/sys/kern/pic_if.m /usr/src/sys/kern/device_if.m =
/usr/src/sys/kern/clock_if.m /usr/src/sys/kern/bus_if.m =
/usr/src/sys/kern/cpufreq_if.m /usr/src/sys/kern/linker_if.m =
/usr/src/sys/kern/serdev_if.m /usr/src/sys/kgssapi/kgss_if.m" =
KERNBUILDDIR=3D"/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG" =
SYSDIR=3D"/usr/src/sys" CONF_CFLAGS=3D"-march=3Darmv7a" WITH_CTF=3D"1" =
make  obj
> cd /usr/src/sys/modules; =
MAKEOBJDIRPREFIX=3D/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/mo=
dules KMODDIR=3D/boot/kernel MACHINE_CPUARCH=3Darm MACHINE=3Darm =
MACHINE_ARCH=3Darmv6 MODULES_EXTRA=3D"dtb/rpi rpi_ft5406" =
WITHOUT_MODULES=3D"" DEBUG_FLAGS=3D"-g" =
__MPATH=3D"/usr/src/sys/pc98/pc98/canbus_if.m /usr/src/sys/isa/isa_if.m =
/usr/src/sys/xen/xenbus/xenbusb_if.m /usr/src/sys/xen/xenbus/xenbus_if.m =
/usr/src/sys/xen/xenmem/xenmem_if.m /usr/src/sys/net/ifdi_if.m =
/usr/src/sys/geom/raid/g_raid_tr_if.m =
/usr/src/sys/geom/raid/g_raid_md_if.m /usr/src/sys/geom/part/g_part_if.m =
/usr/src/sys/dev/usb/controller/generic_usb_if.m =
/usr/src/sys/dev/usb/usb_if.m =
/usr/src/sys/dev/virtio/mmio/virtio_mmio_if.m =
/usr/src/sys/dev/virtio/virtio_bus_if.m =
/usr/src/sys/dev/virtio/virtio_if.m /usr/src/sys/dev/spibus/spibus_if.m =
/usr/src/sys/dev/pccard/card_if.m /usr/src/sys/dev/pccard/power_if.m =
/usr/src/sys/dev/sdhci/sdhci_if.m /usr/src/sys/dev/sound/midi/mpu_if.m =
/usr/src/sys/dev/sound/midi/mpufoi_if.m =
/usr/src/sys/dev/sound/midi/synth_if.m =
/usr/src/sys/dev/sound/pci/hda/hdac_if.m =
/usr/src/sys/dev/sound/pcm/feeder_if.m =
/usr/src/sys/dev/sound/pcm/channel_if.m =
/usr/src/sys/dev/sound/pcm/mixer_if.m =
/usr/src/sys/dev/sound/pcm/ac97_if.m /usr/src/sys/dev/scc/scc_if.m =
/usr/src/sys/dev/hyperv/vmbus/vmbus_if.m =
/usr/src/sys/dev/bhnd/cores/chipc/bhnd_chipc_if.m =
/usr/src/sys/dev/bhnd/bhndb/bhndb_if.m =
/usr/src/sys/dev/bhnd/bhndb/bhndb_bus_if.m =
/usr/src/sys/dev/bhnd/bhnd_bus_if.m =
/usr/src/sys/dev/bhnd/nvram/bhnd_nvram_if.m =
/usr/src/sys/dev/eisa/eisa_if.m /usr/src/sys/dev/adb/adb_hb_if.m =
/usr/src/sys/dev/adb/adb_if.m /usr/src/sys/dev/mbox/mbox_if.m =
/usr/src/sys/dev/altera/pio/pio_if.m =
/usr/src/sys/dev/iscsi/icl_conn_if.m /usr/src/sys/dev/agp/agp_if.m =
/usr/src/sys/dev/mmc/mmcbus_if.m /usr/src/sys/dev/mmc/mmcbr_if.m =
/usr/src/sys/dev/ata/ata_if.m /usr/src/sys/dev/pci/pci_if.m =
/usr/src/sys/dev/pci/pcib_if.m /usr/src/sys/dev/pci/pci_iov_if.m =
/usr/src/sys/dev/cxgbe/t4_if.m /usr/src/sys/dev/gpio/gpiobus_if.m =
/usr/src/sys/dev/gpio/gpio_if.m /usr/src/sys/dev/ow/owll_if.m =
/usr/src/sys/dev/ow/own_if.m /usr/src/sys/dev/fdt/fdt_clock_if.m =
/usr/src/sys/dev/fdt/fdt_pinctrl_if.m /usr/src/sys/dev/acpica/acpi_if.m =
/usr/src/sys/dev/fb/fb_if.m /usr/src/sys/dev/vnic/lmac_if.m =
/usr/src/sys/dev/mdio/mdio_if.m /usr/src/sys/dev/dwc/if_dwc_if.m =
/usr/src/sys/dev/mii/miibus_if.m /usr/src/sys/dev/smbus/smbus_if.m =
/usr/src/sys/dev/iicbus/iicbus_if.m /usr/src/sys/dev/iicbus/iicbb_if.m =
/usr/src/sys/dev/ofw/ofw_bus_if.m /usr/src/sys/dev/ofw/ofw_if.m =
/usr/src/sys/dev/ntb/ntb_if.m =
/usr/src/sys/dev/acpi_support/acpi_wmi_if.m =
/usr/src/sys/dev/extres/clk/clknode_if.m =
/usr/src/sys/dev/extres/clk/clkdev_if.m =
/usr/src/sys/dev/extres/regulator/regdev_if.m =
/usr/src/sys/dev/extres/regulator/regnode_if.m =
/usr/src/sys/dev/extres/hwreset/hwreset_if.m =
/usr/src/sys/dev/extres/phy/phy_if.m =
/usr/src/sys/dev/etherswitch/etherswitch_if.m =
/usr/src/sys/dev/mvs/mvs_if.m /usr/src/sys/dev/ppbus/ppbus_if.m =
/usr/src/sys/dev/uart/uart_if.m /usr/src/sys/dev/nand/nand_if.m =
/usr/src/sys/dev/nand/nandbus_if.m /usr/src/sys/dev/nand/nfc_if.m =
/usr/src/sys/arm/arm/platform_if.m /usr/src/sys/arm/arm/hdmi_if.m =
/usr/src/sys/arm/ti/ti_gpio_if.m =
/usr/src/sys/arm/allwinner/sunxi_dma_if.m =
/usr/src/sys/arm/nvidia/tegra_soctherm_if.m =
/usr/src/sys/sparc64/pci/ofw_pci_if.m /usr/src/sys/mips/beri/fdt_ic_if.m =
/usr/src/sys/mips/mediatek/fdt_reset_if.m =
/usr/src/sys/libkern/iconv_converter_if.m =
/usr/src/sys/powerpc/aim/moea64_if.m =
/usr/src/sys/powerpc/powerpc/pic_if.m =
/usr/src/sys/powerpc/powerpc/platform_if.m =
/usr/src/sys/powerpc/powerpc/mmu_if.m =
/usr/src/sys/powerpc/powerpc/iommu_if.m =
/usr/src/sys/opencrypto/cryptodev_if.m /usr/src/sys/kern/msi_if.m =
/usr/src/sys/kern/pic_if.m /usr/src/sys/kern/device_if.m =
/usr/src/sys/kern/clock_if.m /usr/src/sys/kern/bus_if.m =
/usr/src/sys/kern/cpufreq_if.m /usr/src/sys/kern/linker_if.m =
/usr/src/sys/kern/serdev_if.m /usr/src/sys/kgssapi/kgss_if.m" =
KERNBUILDDIR=3D"/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG" =
SYSDIR=3D"/usr/src/sys" CONF_CFLAGS=3D"-march=3Darmv7a" WITH_CTF=3D"1" =
make  all
> Building =
/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/mbox_if.c
> =
/usr/src/sys/modules/rpi_ft5406/../../arm/broadcom/bcm2835//bcm2835_ft5406=
.c:65:10: fatal error: 'mbox_if.h' file not found
> #include "mbox_if.h"
>=20
>=20
>=20
> # more /usr/src/sys/arm/conf/RPI2-NODBG=20
> #
> # RPI2 -- Custom configuration for the Raspberry Pi 2
> #
>=20
> include "RPI2"
>=20
> ident   RPI2-NODBG
>=20
> makeoptions     DEBUG=3D-g                # Build kernel with gdb(1) =
debug symbols
>=20
> options         ALT_BREAK_TO_DEBUGGER
>=20
> options         KDB                     # Enable kernel debugger =
support
>=20
> # For minimum debugger support (stable branch) use:
> options         KDB_TRACE               # Print a stack trace for a =
panic
> options         DDB                     # Enable the kernel debugger
> #options        VERBOSE_SYSINIT         # Enable verbose sysinit =
messages
> #options        BOOTVERBOSE=3D1
> #options        BOOTHOWTO=3DRB_VERBOSE
> #options        KTR
> #options        KTR_MASK=3DKTR_TRAP
> ##options       KTR_CPUMASK=3D0xF
> #options        KTR_VERBOSE
>=20
> # Disable any extra checking for. . .
> nooptions       DEADLKRES               # Enable the deadlock resolver
> nooptions       INVARIANTS              # Enable calls of extra sanity =
checking
> nooptions       INVARIANT_SUPPORT       # Extra sanity checks of =
internal structures, required by INVARIANTS
> nooptions       WITNESS                 # Enable checks to detect =
deadlocks and cycles
> nooptions       WITNESS_SKIPSPIN        # Don't run witness on =
spinlocks for speed
> nooptions       DIAGNOSTIC
> nooptions       MALLOC_DEBUG_MAXZONES   # Separate malloc(9) zones
>=20
>=20
> # more =
~/sys_build_scripts.amd64-host/make_rpi2_nodebug_clang_bootstrap-amd64-hos=
t.sh=20
> kldload -n filemon && \
> script =
~/sys_typescripts/typescript_make_rpi2_nodebug_clang_bootstrap-amd64-host-=
$(date +%Y-%m-%d:%H:%M:%S) \
> env __MAKE_CONF=3D"/root/src.configs/make.conf" =
SRC_ENV_CONF=3D"/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host=
" \
> WITH_META_MODE=3Dyes \
> MAKEOBJDIRPREFIX=3D"/usr/obj/rpi2_clang" \
> make $*
>=20
>=20
> # more ~/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host=20
> TO_TYPE=3Darmv6
> #
> KERNCONF=3DRPI2-NODBG
> TARGET=3Darm
> .if ${.MAKE.LEVEL} =3D=3D 0
> TARGET_ARCH=3D${TO_TYPE}
> .export TARGET_ARCH
> .endif
> #
> WITH_CROSS_COMPILER=3D
> WITHOUT_SYSTEM_COMPILER=3D
> #
> #CPUTYPE=3Dsoft
> WITH_LIBCPLUSPLUS=3D
> WITH_BINUTILS_BOOTSTRAP=3D
> WITH_CLANG_BOOTSTRAP=3D
> WITH_CLANG=3D
> WITH_CLANG_IS_CC=3D
> WITH_CLANG_FULL=3D
> WITH_CLANG_EXTRAS=3D
> WITH_LLDB=3D
> #
> WITH_BOOT=3D
> WITHOUT_LIB32=3D
> WITHOUT_LIBSOFT=3D
> #
> WITHOUT_ELFTOOLCHAIN_BOOTSTRAP=3D
> WITHOUT_GCC_BOOTSTRAP=3D
> WITHOUT_GCC=3D
> WITHOUT_GCC_IS_CC=3D
> WITHOUT_GNUCXX=3D
> #
> NO_WERROR=3D
> #WERROR=3D
> MALLOC_PRODUCTION=3D
> #
> WITH_DEBUG_FILES=3D
> #
> XCFLAGS+=3D -mcpu=3Dcortex-a7
> XCXXFLAGS+=3D -mcpu=3Dcortex-a7
> # There is no XCPPFLAGS but XCPP gets XCFLAGS content.
> #
>=20
> =3D=3D=3D
> Mark Millard
> markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8400BD9A-E08C-4578-8409-274B1BC30C98>