Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp229441imm; Tue, 5 Jun 2018 18:39:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIcRejD4UEyzhQ+x8Uh/gyI1FcpFgZYYKKZcWyFtyrbuXee7Cvy7znsAWCpp0qQErrYxZXD X-Received: by 2002:a63:735e:: with SMTP id d30-v6mr868324pgn.257.1528249175776; Tue, 05 Jun 2018 18:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528249175; cv=none; d=google.com; s=arc-20160816; b=xwBaYo+6VveXScmDx0dx0jhbvrtqQZQNE1JzdKLUhwUkLPWfdI3GkmxMBbE4qZ6WfB c+ajAADshJuXyl+WF44qw0L/6/tinNs83VjHfCjCuJk/vjU5LcRwSA2Bu9YnHWAzrHvT g7hweC0jQJJaRSilZ6pw3G1l2WgYOgSCy/a3OBIgly2YmMshrJFyV2u0EsNT9gyw1ABd TH0pnuNMhBkialEGgDTFWUo1eHHe6ltWE+8Z1IgKhjCKXtkeUXBDNf/Asdh1JlGb6WYh C4WGH6cydzH3dGeKy0/cr1+0e+OGlnIHGdtKdgHdRgYEWB+bSUjw5KiK18pdtyijCCys mO9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=Se4pKg+eFE8TVDFu2ioWe0FjC6ZHWIg5Y0dfJipmr9c=; b=um96e+259+Ol+teCLEChWs1uJZAa/XvHxNcYhCFlGKfUW4JgEA1PEVfy5JvZfoDZK5 veEkuzoqhiygxTwtt7bgVgCEFiOXipAlDQucegreerWuR1eKWr2YXL/lOeVm8LBCmCvf j/lpwIKTeu/P3uVygI6okoTbakVlB2pghNPmCj6o8nUWkRSbhGubM7HCOf0AKf5XJefX C/eh3gQxNG0DlrF43tLuAsxhg445+GnzcILO2XvHJS4SOzFj8QjP5bIVQY8a7gCxcAKu HHkSvX37fIOOMr6H4e4g9orS9AENELuR5QWZ1QV3d0kfXUDEq0FPxN9W5wXs5A+PMCvb I3AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ak+0UEB5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20-v6si47635543pfn.213.2018.06.05.18.39.21; Tue, 05 Jun 2018 18:39:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ak+0UEB5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752768AbeFFBi5 (ORCPT + 99 others); Tue, 5 Jun 2018 21:38:57 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:65424 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752718AbeFFBiy (ORCPT ); Tue, 5 Jun 2018 21:38:54 -0400 Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w561cVd4030989 for ; Wed, 6 Jun 2018 10:38:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w561cVd4030989 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1528249111; bh=Se4pKg+eFE8TVDFu2ioWe0FjC6ZHWIg5Y0dfJipmr9c=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=ak+0UEB5xAVJv1EdCsmkrl+Ck/2Jq3De576I0ddsHHdcyG6vgwuVH2TNwxpWvTlka 4+ubOl6d6DKQvuhJqmOZc99dzZbh9H6LQABNvQosyoVK0A/s70qdrJOSGTRujgFYvg RacKDtAe4CIhBrD3TjLb8j5YkTXrQXvNv2TeEJmydH7b/Hu38ZVGaMj5bsPAjXZfMT 1e1iTcvD4i6wHmr71E3aSoCgMegCLxNwAJQHFqz2Za/n3fsx6qaBW5FVGe2DdUQI8Z gY4iD5NBKF2whRH6L8FKn6OxMl8JOnwqEMAgF0XE4wXgPx4kgsqdCYPQGkwixt50fV e7rOqoZWkRHIA== X-Nifty-SrcIP: [209.85.213.54] Received: by mail-vk0-f54.google.com with SMTP id w8-v6so2698552vkh.4 for ; Tue, 05 Jun 2018 18:38:31 -0700 (PDT) X-Gm-Message-State: APt69E2xdOucfMKJk3+jgEjs0vz75tjdakDxPiznVMo4VcFJDHZ8jh4I qJcMMZf7uFKsJJ7pPyKON8qn5ScPWcNsI+cxfng= X-Received: by 2002:a1f:a945:: with SMTP id s66-v6mr733949vke.54.1528249110386; Tue, 05 Jun 2018 18:38:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:20ab:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 18:37:49 -0700 (PDT) In-Reply-To: References: <8f46ed9a-85c0-8df4-2d1e-d268cbc9d0e9@mageia.org> <7a5458da-4222-7480-00ed-a51bed2c1e39@mageia.org> From: Masahiro Yamada Date: Wed, 6 Jun 2018 10:37:49 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: building in 32bit chroot on x86_64 host broken To: Linus Torvalds Cc: tmb@mageia.org, Ulf Magnusson , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, Thomas, 2018-06-06 4:13 GMT+09:00 Linus Torvalds : > On Tue, Jun 5, 2018 at 11:50 AM Thomas Backlund wrote: >> > >> > but why do you care? >> >> Because without it running the build in the 32bit chroot will get the >> initial reported issue: > > Ahh. I can re-create that now. > > Yes, doing > > make ARCH=i386 allnoconfig > > followed by > > make oldconfig > > is broken. And doing a trivial "git bisect run" to pinpoint where > CONFIG_64BIT goes away gives us > > f467c5640c29ad258c3cd8186a776c82fc3b8057 is the first bad commit > > which does that > > "kconfig: only write '# CONFIG_FOO is not set' for visible symbols" > > and it turns out that CONFIG_64BIT is not a visible symbol on x86-32, > because that question is disabled when ARCH != "x86". > > bool "64-bit kernel" if ARCH = "x86" > > And the problem with that, is that *next* time around this config file > is used, because we don't have that > > # CONFIG_64BIT is not set > > line, we don't turn it into > > CONFIG_64BIT=n > > and then the "depends on" in X86_64 > > config X86_64 > def_bool y > depends on 64BIT > > no longer hides it. > > Hmm. Ulf, Masahiro, comments? > > Should we just revert that commit? Hmm. Was the v4.16 behavior intentional, or just something people found to work? IMHO, the current behavior in v4.17 is expected from the Kconfig point of view. "make ARCH=i386 allnoconfig" hides the prompt of 64BIT. Then, "make oldconfig" makes the prompt newly visible, so it is asking for user input. However, the previous behavior is desired, I think we can change the course. If a symbol is visible (i.e. there is no unmet direct dependency), '# CONFIG_... is not set' should be written out to the .config even if its prompt is invisible. For example, config FOO bool should write out "# CONFIG_FOO is not set" I think this will fix the reported problem, and Kconfig can still keep the grammatical consistency. Ulf, what do you think? > Thomas, can you verify that a > > git revert f467c5640c29ad258c3cd8186a776c82fc3b8057 > > fixes the problem for you? > > Linus -- Best Regards Masahiro Yamada