From owner-freebsd-current@freebsd.org Tue Apr 18 21:44:18 2017 Return-Path: Delivered-To: freebsd-current@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 624F4D444F1 for ; Tue, 18 Apr 2017 21:44:18 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4EBCFF for ; Tue, 18 Apr 2017 21:44:18 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3EB47D444F0; Tue, 18 Apr 2017 21:44:18 +0000 (UTC) Delivered-To: current@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 3E5E2D444EF for ; Tue, 18 Apr 2017 21:44:18 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0DA8ACFE; Tue, 18 Apr 2017 21:44:18 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (unknown [127.0.1.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id F32E37F6E; Tue, 18 Apr 2017 21:44:16 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id A309954C0; Tue, 18 Apr 2017 21:44:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id wlkCXZjxYBSf; Tue, 18 Apr 2017 21:44:10 +0000 (UTC) Subject: Re: buildkernel broken for META_MODE DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 8497454BB To: "Simon J. Gerraty" References: <11023f9a-f057-4306-6d27-69194395de58@FreeBSD.org> <37722.1492551184@kaos.jnpr.net> Cc: "Ngie Cooper (yaneurabeya)" , FreeBSD Current From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <8a4e0cd6-c494-3222-f166-bc424d6d2873@FreeBSD.org> Date: Tue, 18 Apr 2017 14:44:11 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <37722.1492551184@kaos.jnpr.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jwqQOILEGx3liAivGtCPctceVE2DMldj3" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2017 21:44:18 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jwqQOILEGx3liAivGtCPctceVE2DMldj3 Content-Type: multipart/mixed; boundary="5PfUMkC6gFnOCa3HsfMxX6xs3QJJRkGpc"; protected-headers="v1" From: Bryan Drewery To: "Simon J. Gerraty" Cc: "Ngie Cooper (yaneurabeya)" , FreeBSD Current Message-ID: <8a4e0cd6-c494-3222-f166-bc424d6d2873@FreeBSD.org> Subject: Re: buildkernel broken for META_MODE References: <11023f9a-f057-4306-6d27-69194395de58@FreeBSD.org> <37722.1492551184@kaos.jnpr.net> In-Reply-To: <37722.1492551184@kaos.jnpr.net> --5PfUMkC6gFnOCa3HsfMxX6xs3QJJRkGpc Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 4/18/2017 2:33 PM, Simon J. Gerraty wrote: > Bryan Drewery wrote: >> Aha /usr/obj/usr/obj. >> >> That was in Renato's report as well. >> >> The bug is WITH_AUTO_OBJ. I just confirmed that. A bunch of errors occ= ur >> when doing the first build and the opt_*.h files are not generated in >> the "proper" place by config(8). >> >> WITH_AUTO_OBJ is not really workable yet in buildworld/buildkernel. I >> have patches that I will commit soon to add support for them (meaning = to >> work as it all does not but without a 'make obj' tree walk). >=20 > What is the issue above? diff? I don't know what the issue is with buildkernel specifically, I never looked into it. Buildworld had other issues like rescue/rescue not being AUTO_OBJ safe. That's fixed. I forget the details of buildworld as well. One of the simpler changes is to remove the 'make obj' treewalk and prefer .OBJDIR/OBJTOP over other ${CANONICALOBJDIR} ${OBJTREE} type hacks. My patches are quite mangled with the idea of moving to /usr/obj/CURDIR/TARGET.TARGET_ARCH/RELDIR and I need to split it all up still. >=20 > FWIW the latest version of auto.obj.mk deals with __objdir=3Dobj which = is > a corner case compared to any use of MAKEOJDIRPREFIX etc. >=20 It does not fix the issues. > -------------------------------------------------------------- >>>> stage 2.2: rebuilding the object tree > -------------------------------------------------------------- > cd /usr/obj/root/git/freebsd/sys/GENERIC; COMPILER_VERSION=3D40000 COM= PILER_FEATURES=3Dc++11 COMPILER_TYPE=3Dclang COMPILER_FREEBSD_VERSION=3D= 1200006 MAKEOBJDIRPREFIX=3D/usr/obj MACHINE_ARCH=3Damd64 MACHINE=3Damd6= 4 CPUTYPE=3D BUILD_TOOLS_META=3D.NOMETA GROFF_BIN_PATH=3D/usr/obj/root/g= it/freebsd/tmp/legacy/usr/bin GROFF_FONT_PATH > =3D/usr/obj/root/git/freebsd/tmp/legacy/usr/share/groff_font GROFF_TMA= C_PATH=3D/usr/obj/root/git/freebsd/tmp/legacy/usr/share/tmac CC=3D"/usr/l= ocal/bin/ccache cc -target x86_64-unknown-freebsd12.0 --sysroot=3D/usr/ob= j/root/git/freebsd/tmp -B/usr/obj/root/git/freebsd/tmp/usr/bin" CXX=3D"/u= sr/local/bin/ccache c++ -target x86_ > 64-unknown-freebsd12.0 --sysroot=3D/usr/obj/root/git/freebsd/tmp -B/usr= /obj/root/git/freebsd/tmp/usr/bin" CPP=3D"cpp -target x86_64-unknown-fre= ebsd12.0 --sysroot=3D/usr/obj/root/git/freebsd/tmp -B/usr/obj/root/git/fr= eebsd/tmp/usr/bin" AS=3D"as" AR=3D"ar" LD=3D"ld" LLVM_LINK=3D"" NM=3Dnm= OBJCOPY=3D"objcopy" RANLIB=3Dranlib STRINGS=3D > SIZE=3D"size" INSTALL=3D"sh /root/git/freebsd/tools/install.sh" PATH= =3D/usr/obj/root/git/freebsd/tmp/legacy/usr/sbin:/usr/obj/root/git/freebs= d/tmp/legacy/usr/bin:/usr/obj/root/git/freebsd/tmp/legacy/bin:/usr/obj/ro= ot/git/freebsd/tmp/usr/sbin:/usr/obj/root/git/freebsd/tmp/usr/bin:/sbin:/= bin:/usr/sbin:/usr/bin make -j 1 > 5 -D NO_FILEMON -d M -J 15,16 -m /root/git/freebsd/share/mk KERNEL=3Dk= ernel obj > [Creating objdir /usr/obj/usr/obj/root/git/freebsd/sys/GENERIC...] Wrong^ Note we have 'cd /usr/obj/....' and 'MAKEOBJDIRPREFIX=3D/usr/obj' in there, so we get a nested /usr/obj/.CURDIR problem of /usr/obj/usr/obj. > grep: opt_md.h: No such file or directory > grep: opt_ddb.h: No such file or directory > grep: opt_kdtrace.h: No such file or directory > grep: opt_hwpmc_hooks.h: No such file or directory Wrong^ I will look into this as part of my larger patch, but it's likely due to the first bug. --=20 Regards, Bryan Drewery --5PfUMkC6gFnOCa3HsfMxX6xs3QJJRkGpc-- --jwqQOILEGx3liAivGtCPctceVE2DMldj3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJY9oirAAoJEDXXcbtuRpfP7SAIAOC6QLJOI90X0s6gycdARqfz jLUfZlnh4V9xHOykAb3Yil38RXf7PRIlFRCMFYy3DL7Lv/1dICq7EsrZ9UIILLhj Clo9vFtomQowb1cwq64keg8k3w5+VKhuOREfsBtZffCAqvMUJZ9lTdffUFT8d6iZ EoTLpOpScPx6IJ2OIo3ThmPNf1/j0qRYFJ0K1sYRNRmqcVQclSA9twmRhSHCtF8s AlV1USvNx2WB+X2h0PVlQmI9/q+EylyP8xVxGPv04pTbJZv3CZzA7sH6tHzhfYGd O9+AEFn1ruOExHTGRFrXBmYWl9tWTArrIb8xBK0acPeTyO/QA0eUHFPSkBnuWT8= =E26g -----END PGP SIGNATURE----- --jwqQOILEGx3liAivGtCPctceVE2DMldj3--