Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1251806imm; Tue, 5 Jun 2018 11:23:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK2Px9Z4O3+uUYo4Zk3K360Ada0ZztZAVSBSYEyzzALc7MAkkVJzeIsnyNaz40B4+eWXfxK X-Received: by 2002:a62:5281:: with SMTP id g123-v6mr26616160pfb.22.1528223028745; Tue, 05 Jun 2018 11:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528223028; cv=none; d=google.com; s=arc-20160816; b=t/CJHtpXEGomkfb5FLF3YIfft97skKQ+aM1nTSeAmfS6I62+7kJW9oYgcnm+SWrQQo dxRH7lplzlb/goBA8dGMjTc6tSREpCEIPyOaPtEkqs9haZRpZ0ifO/1AvV+nxkKS4ybB YBLOlSg2ykg4OKmapl8v91cOFsPXldcYwcrvAljSv0mxSV1zdbO6SvQQEBfB7uZI3+nL 48xBfYzhLFkeSeedLD2Axg6U4fP8oTgKOykRbdBUIMB2tqHv8TRaWTDVEmuiomqvD5sa hsGmyqroJ984MX2ZXdvBX6SEmBNkspn7mssZwNnndNAX0q55VpvMOEo8XOzxvFTg+9vT 9+Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:date:message-id :from:references:cc:to:subject:arc-authentication-results; bh=CaMv9YDqMiNuO5AQnnClfmKFPj39NuEyDew5u2T9ojA=; b=oSsMDqw7D9PBxTd3Ab40U5LhJfXG4r5xWPVIG4IEpEWevFzdyZ6Ny8RgmG6gSYsC5n TDmkWdbJ5Opxk7FhZgXKI/E8EQ3PXDFz4GahIEOCoYCIb0YG6yRLgRUEUfS41RKxONLl ajqdcRJP3U6AElZgVDSOCuP8ZQV+9xezt2P+CBIM+KX5ZtLKZoNc7lfM3cV9xo/QpfAq 4IoamZ8ivZe4KjWmoE272cMhrtdeVV2yVerikoQPcaqDk9LIpaQF0H/BK5DMnxYle01Y +v/p2LQQ5n/Pp3hcG29nL0swWW7sxjF3lA9Ewq5cyOIulsRJFI5pU/pkEmT53nQijING kckg== ARC-Authentication-Results: i=1; mx.google.com; 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 e129-v6si50542675pfa.217.2018.06.05.11.23.34; Tue, 05 Jun 2018 11:23:48 -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; 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 S1751986AbeFESXJ (ORCPT + 99 others); Tue, 5 Jun 2018 14:23:09 -0400 Received: from mx2.yrkesakademin.fi ([85.134.45.195]:30035 "EHLO mx2.yrkesakademin.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751849AbeFESXI (ORCPT ); Tue, 5 Jun 2018 14:23:08 -0400 Subject: Re: building in 32bit chroot on x86_64 host broken To: Linus Torvalds , Masahiro Yamada CC: Linux Kernel Mailing List References: <8f46ed9a-85c0-8df4-2d1e-d268cbc9d0e9@mageia.org> From: Thomas Backlund Message-ID: <7a5458da-4222-7480-00ed-a51bed2c1e39@mageia.org> Date: Tue, 5 Jun 2018 21:23:19 +0259 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-WatchGuard-Spam-ID: str=0001.0A0C0204.5B16D50C.0022,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-WatchGuard-Spam-Score: 0, clean; 0, virus threat unknown X-WatchGuard-Mail-Client-IP: 85.134.45.195 X-WatchGuard-Mail-From: tmb@mageia.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 2018-06-05 kl. 21:11, skrev Linus Torvalds: > On Tue, Jun 5, 2018 at 10:51 AM Thomas Backlund wrote: >> Is this intentional ? If so, why ? If not, how can I fix it ? > It shouldn't be intentional. And I don't see anythin ghaving changed > in this area. We still have > > config 64BIT > bool "64-bit kernel" if ARCH = "x86" > default ARCH != "i386" > > which is what it was in 4.16 too. > > Of course, we also have (in the main Makefile) > > SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ > > and > > ARCH ?= $(SUBARCH) > > so if you don't set ARCH explicitly, it will always translate "i686" > into "x86", so it will default to 64-bit. > > None of this is new to 4.17, though. Are you sure you didn't use to > have an ARCH=i386 somewhere? > > Because this works for me: > > make ARCH=i386 oldconfig > > and it's how I have done cross-builds before (although honestly, I > don't do them very often). > > But adding Masahiro to the cc in case he sees something I've missed. > > Of course, doing a bisect on *when* it broke for you would be good > too. You don't need to actually build the kernel, you can just bisect > the configuration phase (and even automate it with "git bisect run" if > you want to). > > Linus Taking back the earlier " IGNORE " part... This happends on the 64bit host: # make ARCH=i386 oldconfig --- .config.old 2018-06-05 21:17:07.829954548 +0300 +++ .config     2018-06-05 21:17:43.367487580 +0300 @@ -1,8 +1,7 @@  #  # Automatically generated file; DO NOT EDIT. -# Linux/i386 4.16.12 Kernel Configuration +# Linux/i386 4.17.0 Kernel Configuration  # -# CONFIG_64BIT is not set So something _does_ strip away the needed config bit So any ideas, or should I start bisecting ? -- Thomas