Mark Millard
2016-Nov-02 10:13 UTC
stable/11 -r308135 Build for RPI2 failed for: . . ./bcm2835_ft5406.c:65:10: fatal error: 'mbox_if.h' file not found
Lack of dependency? Race? (I've not isolated why this happened yet but I was using -j 5 for buildworld buildkernel .) This was a cross-build attempt from an amd64 context: # uname -apKU FreeBSD FreeBSDx64 11.0-STABLE FreeBSD 11.0-STABLE #1 r308135M: Tue Nov 1 23:48:47 PDT 2016 root at FreeBSDx64:/usr/obj/amd64_clang/amd64.amd64/usr/src/sys/GENERIC-NODBG amd64 amd64 1100506 1100506 # svnlite info /usr/src/ | grep "Re[lv]" Relative URL: ^/stable/11 Revision: 308135 Last Changed Rev: 308135 # 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 # find /usr/obj/rpi2_clang/arm.armv6/ -name mbox_if.h -print | more # (So no mbox_if.h file is present in the build tree.) # 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=/root/src.configs/make.conf SRC_ENV_CONF=/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host WITH_META_MODE=yes MAKEOBJDIRPREFIX=/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 make[4]: stopped in /usr/src/sys/modules/rpi_ft5406 .ERROR_TARGET='bcm2835_ft5406.o' .ERROR_META_FILE='/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/modules/rpi_ft5406/bcm2835_ft5406.o.meta' .MAKE.LEVEL='4' MAKEFILE='' .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose' .CURDIR='/usr/src/sys/modules/rpi_ft5406' .MAKE='make' .OBJDIR='/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/modules/rpi_ft5406' .TARGETS='all' DESTDIR='' LD_LIBRARY_PATH='' MACHINE='arm' MACHINE_ARCH='armv6' MAKEOBJDIRPREFIX='/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules' MAKESYSPATH='/usr/src/share/mk' MAKE_VERSION='20160606' PATH='/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.armv6/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/sbin:/usr/bin' SRCTOP='/usr/src' OBJTOP='/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src' .MAKE.MAKEFILES='/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='. /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 . . . # less /usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/modules/rpi_ft5406/bcm2835_ft5406.o.meta # Meta data file /usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/modules/rpi_ft5406/bcm2835_ft5406.o.meta CMD cc -mcpu=cortex-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=armv7a -ffreestanding -fwrapv -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__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=none -std=iso9899: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/modules/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 -- 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 # 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=/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules KMODDIR=/boot/kernel MACHINE_CPUARCH=arm MACHINE=arm MACHINE_ARCH=armv6 MODULES_EXTRA="dtb/rpi rpi_ft5406" WITHOUT_MODULES="" DEBUG_FLAGS="-g" __MPATH="/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="/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG" SYSDIR="/usr/src/sys" CONF_CFLAGS="-march=armv7a" WITH_CTF="1" make obj cd /usr/src/sys/modules; MAKEOBJDIRPREFIX=/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules KMODDIR=/boot/kernel MACHINE_CPUARCH=arm MACHINE=arm MACHINE_ARCH=armv6 MODULES_EXTRA="dtb/rpi rpi_ft5406" WITHOUT_MODULES="" DEBUG_FLAGS="-g" __MPATH="/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="/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG" SYSDIR="/usr/src/sys" CONF_CFLAGS="-march=armv7a" WITH_CTF="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" # more /usr/src/sys/arm/conf/RPI2-NODBG # # RPI2 -- Custom configuration for the Raspberry Pi 2 # include "RPI2" ident RPI2-NODBG makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options ALT_BREAK_TO_DEBUGGER options KDB # Enable kernel debugger support # 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=1 #options BOOTHOWTO=RB_VERBOSE #options KTR #options KTR_MASK=KTR_TRAP ##options KTR_CPUMASK=0xF #options KTR_VERBOSE # 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 # more ~/sys_build_scripts.amd64-host/make_rpi2_nodebug_clang_bootstrap-amd64-host.sh kldload -n filemon && \ script ~/sys_typescripts/typescript_make_rpi2_nodebug_clang_bootstrap-amd64-host-$(date +%Y-%m-%d:%H:%M:%S) \ env __MAKE_CONF="/root/src.configs/make.conf" SRC_ENV_CONF="/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host" \ WITH_META_MODE=yes \ MAKEOBJDIRPREFIX="/usr/obj/rpi2_clang" \ make $* # more ~/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host TO_TYPE=armv6 # KERNCONF=RPI2-NODBG TARGET=arm .if ${.MAKE.LEVEL} == 0 TARGET_ARCH=${TO_TYPE} .export TARGET_ARCH .endif # WITH_CROSS_COMPILERWITHOUT_SYSTEM_COMPILER# #CPUTYPE=soft WITH_LIBCPLUSPLUSWITH_BINUTILS_BOOTSTRAPWITH_CLANG_BOOTSTRAPWITH_CLANGWITH_CLANG_IS_CCWITH_CLANG_FULLWITH_CLANG_EXTRASWITH_LLDB# WITH_BOOTWITHOUT_LIB32WITHOUT_LIBSOFT# WITHOUT_ELFTOOLCHAIN_BOOTSTRAPWITHOUT_GCC_BOOTSTRAPWITHOUT_GCCWITHOUT_GCC_IS_CCWITHOUT_GNUCXX# NO_WERROR#WERRORMALLOC_PRODUCTION# WITH_DEBUG_FILES# XCFLAGS+= -mcpu=cortex-a7 XCXXFLAGS+= -mcpu=cortex-a7 # There is no XCPPFLAGS but XCPP gets XCFLAGS content. # ==Mark Millard markmi at dsl-only.net
Mark Millard
2016-Nov-02 19:16 UTC
stable/11 -r308135 Build for RPI2 failed for: . . ./bcm2835_ft5406.c:65:10: fatal error: 'mbox_if.h' file not found
Quick top post reporting that a build-order-race for -j use seems likely: the clean-then-build sequence> Command: env __MAKE_CONF=/root/src.configs/make.conf SRC_ENV_CONF=/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host WITH_META_MODE=yes MAKEOBJDIRPREFIX=/usr/obj/rpi2_clang make cleanworld > > Command: env __MAKE_CONF=/root/src.configs/make.conf SRC_ENV_CONF=/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host WITH_META_MODE=yes MAKEOBJDIRPREFIX=/usr/obj/rpi2_clang make -j 5 buildworld buildkernelthat 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=/root/src.configs/make.conf SRC_ENV_CONF=/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host WITH_META_MODE=yes MAKEOBJDIRPREFIX=/usr/obj/rpi2_clang make buildkernelcompleted the rest of the build just fine, creating the previously-missing file before trying to use it. ==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 .) > > This was a cross-build attempt from an amd64 context: > > # uname -apKU > FreeBSD FreeBSDx64 11.0-STABLE FreeBSD 11.0-STABLE #1 r308135M: Tue Nov 1 23:48:47 PDT 2016 root at FreeBSDx64:/usr/obj/amd64_clang/amd64.amd64/usr/src/sys/GENERIC-NODBG amd64 amd64 1100506 1100506 > > # svnlite info /usr/src/ | grep "Re[lv]" > Relative URL: ^/stable/11 > Revision: 308135 > Last Changed Rev: 308135 > > # 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 > > # find /usr/obj/rpi2_clang/arm.armv6/ -name mbox_if.h -print | more > # > > (So no mbox_if.h file is present in the build tree.) > > # 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=/root/src.configs/make.conf SRC_ENV_CONF=/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host WITH_META_MODE=yes MAKEOBJDIRPREFIX=/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 > > make[4]: stopped in /usr/src/sys/modules/rpi_ft5406 > .ERROR_TARGET='bcm2835_ft5406.o' > .ERROR_META_FILE='/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/modules/rpi_ft5406/bcm2835_ft5406.o.meta' > .MAKE.LEVEL='4' > MAKEFILE='' > .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose' > .CURDIR='/usr/src/sys/modules/rpi_ft5406' > .MAKE='make' > .OBJDIR='/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/modules/rpi_ft5406' > .TARGETS='all' > DESTDIR='' > LD_LIBRARY_PATH='' > MACHINE='arm' > MACHINE_ARCH='armv6' > MAKEOBJDIRPREFIX='/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules' > MAKESYSPATH='/usr/src/share/mk' > MAKE_VERSION='20160606' > PATH='/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.armv6/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/sbin:/usr/bin' > SRCTOP='/usr/src' > OBJTOP='/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src' > .MAKE.MAKEFILES='/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='. /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 > . . . > > # less /usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/modules/rpi_ft5406/bcm2835_ft5406.o.meta > # Meta data file /usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules/usr/src/sys/modules/rpi_ft5406/bcm2835_ft5406.o.meta > CMD cc -mcpu=cortex-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=armv7a -ffreestanding -fwrapv -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__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=none -std=iso9899: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/modules/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 > > -- 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 > > > # 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=/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules KMODDIR=/boot/kernel MACHINE_CPUARCH=arm MACHINE=arm MACHINE_ARCH=armv6 MODULES_EXTRA="dtb/rpi rpi_ft5406" WITHOUT_MODULES="" DEBUG_FLAGS="-g" __MPATH="/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="/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG" SYSDIR="/usr/src/sys" CONF_CFLAGS="-march=armv7a" WITH_CTF="1" make obj > cd /usr/src/sys/modules; MAKEOBJDIRPREFIX=/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG/modules KMODDIR=/boot/kernel MACHINE_CPUARCH=arm MACHINE=arm MACHINE_ARCH=armv6 MODULES_EXTRA="dtb/rpi rpi_ft5406" WITHOUT_MODULES="" DEBUG_FLAGS="-g" __MPATH="/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="/usr/obj/rpi2_clang/arm.armv6/usr/src/sys/RPI2-NODBG" SYSDIR="/usr/src/sys" CONF_CFLAGS="-march=armv7a" WITH_CTF="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" > > > > # more /usr/src/sys/arm/conf/RPI2-NODBG > # > # RPI2 -- Custom configuration for the Raspberry Pi 2 > # > > include "RPI2" > > ident RPI2-NODBG > > makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols > > options ALT_BREAK_TO_DEBUGGER > > options KDB # Enable kernel debugger support > > # 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=1 > #options BOOTHOWTO=RB_VERBOSE > #options KTR > #options KTR_MASK=KTR_TRAP > ##options KTR_CPUMASK=0xF > #options KTR_VERBOSE > > # 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 > > > # more ~/sys_build_scripts.amd64-host/make_rpi2_nodebug_clang_bootstrap-amd64-host.sh > kldload -n filemon && \ > script ~/sys_typescripts/typescript_make_rpi2_nodebug_clang_bootstrap-amd64-host-$(date +%Y-%m-%d:%H:%M:%S) \ > env __MAKE_CONF="/root/src.configs/make.conf" SRC_ENV_CONF="/root/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host" \ > WITH_META_MODE=yes \ > MAKEOBJDIRPREFIX="/usr/obj/rpi2_clang" \ > make $* > > > # more ~/src.configs/src.conf.rpi2-clang-bootstrap.amd64-host > TO_TYPE=armv6 > # > KERNCONF=RPI2-NODBG > TARGET=arm > .if ${.MAKE.LEVEL} == 0 > TARGET_ARCH=${TO_TYPE} > .export TARGET_ARCH > .endif > # > WITH_CROSS_COMPILER> WITHOUT_SYSTEM_COMPILER> # > #CPUTYPE=soft > WITH_LIBCPLUSPLUS> WITH_BINUTILS_BOOTSTRAP> WITH_CLANG_BOOTSTRAP> WITH_CLANG> WITH_CLANG_IS_CC> WITH_CLANG_FULL> WITH_CLANG_EXTRAS> WITH_LLDB> # > WITH_BOOT> WITHOUT_LIB32> WITHOUT_LIBSOFT> # > WITHOUT_ELFTOOLCHAIN_BOOTSTRAP> WITHOUT_GCC_BOOTSTRAP> WITHOUT_GCC> WITHOUT_GCC_IS_CC> WITHOUT_GNUCXX> # > NO_WERROR> #WERROR> MALLOC_PRODUCTION> # > WITH_DEBUG_FILES> # > XCFLAGS+= -mcpu=cortex-a7 > XCXXFLAGS+= -mcpu=cortex-a7 > # There is no XCPPFLAGS but XCPP gets XCFLAGS content. > # > > ==> Mark Millard > markmi at dsl-only.net