From owner-freebsd-stable@freebsd.org Mon Oct 5 14:48:52 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9391E426567 for ; Mon, 5 Oct 2020 14:48:52 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C4k4h3KVlz40q4; Mon, 5 Oct 2020 14:48:52 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 50AAF20BC3; Mon, 5 Oct 2020 14:48:52 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f175.google.com with SMTP id v123so12150023qkd.9; Mon, 05 Oct 2020 07:48:52 -0700 (PDT) X-Gm-Message-State: AOAM532rVoht7kQy54gpgr9oj2Bqx8zf5PEzr6wrhXo43xoNTrMCSot6 9URzIBE0rAZaFt4MPzdNXrXXVkuNBiV5Lv8ElDU= X-Google-Smtp-Source: ABdhPJxEBi8vOCPatdPLZ21ZbddtMbcIuM5VmPz+DEmxO7YVC91quLCzJ8DgdTnuPXC8hVjjCoySGmp5orYB4TjLa2A= X-Received: by 2002:a05:620a:4fb:: with SMTP id b27mr360691qkh.120.1601909331880; Mon, 05 Oct 2020 07:48:51 -0700 (PDT) MIME-Version: 1.0 References: <79727736-e586-fe94-f1f1-f4bf21acd17d@sentex.net> <51c92670-c056-7dfa-d449-de40e784ab3c@sentex.net> In-Reply-To: <51c92670-c056-7dfa-d449-de40e784ab3c@sentex.net> From: Kyle Evans Date: Mon, 5 Oct 2020 09:48:38 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: building releng11 on RELENG12 broken ? To: mike tancsa Cc: FreeBSD-STABLE Mailing List , Bryan Drewery Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2020 14:48:52 -0000 On Mon, Oct 5, 2020 at 5:13 AM mike tancsa wrote: > > On 10/4/2020 8:21 PM, Kyle Evans wrote: > > On Sun, Oct 4, 2020 at 7:02 PM mike tancsa wrote: > >> Not sure exactly when, but it seems building RELENG_11 seems to be > >> broken on releng12. I am trying to buildworld on a RELENG12 image with > >> -j4 (12.2-STABLE r366088) and it fails with the errors below > >> > > Hi, > > > > I've been battling this one for a couple days, but I really haven't > > decided how to move forward. The TL;DR version is that crunchgen is > > getting the OBJDIR wrong when building WITHOUT_AUTO_OBJ by assuming > > objects will be built in-tree, but the reality is that it's more > > complicated than that- it may still use out-of-tree OBJDIR if some > > circumstances are hit. > > > > This is reproducible on -HEAD and stable/12, too, but it's effectively > > mitigated by the fact that those branches default to WITH_AUTO_OBJ. > > > > CC'ing Bryan, because he probably has a better idea of how to fix it. > > I almost smacked it with a "shell out for each utility and just ask > > what the OBJDIR is" hammer, but I don't want to get smacked. =) > > Thanks, is it merely defining > > WITH_AUTO_OBJ > > to allow things to build ? Would that have just build consequences or > would it cause installation issues too ? We crossbuild on a releng12 box > and then mount over nfs to do an installworld on some servers. > Yes, I suspect this is sufficient -- you'd need to make sure the rescue build is clean, so either a not-no-clean build or make -C rescue/rescue clean prior so that it rebuilds the rescue.mk inside your .OBJDIR (probably better to just do a full clean build). Note that I don't know what kind of behavior may be present that leaves it off-by-default in 11; Bryan put a lot of work into the build system between 11 and 12. Thanks, Kyle Evans