From owner-freebsd-arm@freebsd.org Tue Nov 15 03:48:05 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5899C42C5A for ; Tue, 15 Nov 2016 03:48:05 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-36.reflexion.net [208.70.210.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A62F72D1 for ; Tue, 15 Nov 2016 03:48:05 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 21622 invoked from network); 15 Nov 2016 03:49:03 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 15 Nov 2016 03:49:03 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.10.2) with SMTP; Mon, 14 Nov 2016 22:48:07 -0500 (EST) Received: (qmail 16124 invoked from network); 15 Nov 2016 03:48:07 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 15 Nov 2016 03:48:07 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id ED067EC7B30; Mon, 14 Nov 2016 19:48:02 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: stable/11 -r308135 Build for RPI2 failed for: . . ./bcm2835_ft5406.c:65:10: fatal error: 'mbox_if.h' file not found [Fixed] From: Mark Millard In-Reply-To: <8400BD9A-E08C-4578-8409-274B1BC30C98@dsl-only.net> Date: Mon, 14 Nov 2016 19:48:02 -0800 Cc: FreeBSD Toolchain , Bryan Drewery Content-Transfer-Encoding: quoted-printable Message-Id: <0DCE9672-3FD4-4CC0-9B2A-6E25A21F83ED@dsl-only.net> References: <8400BD9A-E08C-4578-8409-274B1BC30C98@dsl-only.net> To: freebsd-arm , FreeBSD-STABLE Mailing List X-Mailer: Apple Mail (2.3251) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2016 03:48:06 -0000 On 2016-Nov-2, at 12:16 PM, Mark Millard wrote: > Quick top post reporting that a build-order-race for -j use seems = likely: the clean-then-build sequence >=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 = 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 >=20 > that used -j 5 for buildworld buildkernel got the problem again. But = following that failure by doing just buildkernel without the -j 5: >=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 = buildkernel >=20 > completed the rest of the build just fine, creating the = previously-missing file before trying to use it. >=20 >=20 > =3D=3D=3D > Mark Millard > markmi at dsl-only.net >=20 > On 2016-Nov-2, at 3:13 AM, Mark Millard = wrote: >=20 >> 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 . . . Looks like stable/11 -r308655 fix this. (-r308581 for head.) : Author: gonzo Date: Mon Nov 14 22:39:33 2016 New Revision: 308655 URL:=20 https://svnweb.freebsd.org/changeset/base/308655 Log: MFC r308581: =20 [rpi_ft5406] Add missing dependency on mbox_if.h =20 Submitted by: hselasky Modified: stable/11/sys/modules/rpi_ft5406/Makefile Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/modules/rpi_ft5406/Makefile = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- stable/11/sys/modules/rpi_ft5406/Makefile Mon Nov 14 22:33:57 2016 = (r308654) +++ stable/11/sys/modules/rpi_ft5406/Makefile Mon Nov 14 22:39:33 2016 = (r308655) @@ -5,6 +5,6 @@ KMOD=3D rpi_ft5406 SRCS=3D bcm2835_ft5406.c =20 -SRCS+=3D bus_if.h device_if.h ofw_bus_if.h +SRCS+=3D bus_if.h device_if.h mbox_if.h ofw_bus_if.h =20 .include =3D=3D=3D Mark Millard markmi at dsl-only.net