Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1240479imm; Tue, 5 Jun 2018 11:12:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLEdWAIpWrqw20hFZ490GgyuafnTjB60ZEfBJVWJWn0uBmmFDP5mJnoU2LQAq8YONpUT/x5 X-Received: by 2002:a62:d508:: with SMTP id d8-v6mr21490062pfg.128.1528222349398; Tue, 05 Jun 2018 11:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528222349; cv=none; d=google.com; s=arc-20160816; b=tYosccoTGGUC9U/SlKpEEGnaIaHn0zwwAFtbYUOS7HiNiBHk7GaT1BxMseE/E7/A6m e8606nRac/Za/yRidDUNrpbe6Xujbxdq6yM7ZrhQRKEgnyRUjoueLCUJVf553BxdbYuP 3avqqHc7JfBkBcAgCqTj2F0f0Fja4SrAa0wvf5K9HQpmMBrssO9nnrUkT+JbDSLxuHU9 SaUAavbcU0MdZIyLEVPvGLztBInNbIuatbqLdokc+L/4WiRfX5aJay6kkntG49UMJzBc lgcH1YnP17TqrLh5aRACtHMJObAY+yLcyPq94//asqCHTfvSk5QTX1UuXBHUfoDU/7R9 vqwA== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=vG2O7LRMDO/4xDIF75uTaYqm78xK+OBnLGW/nG1rM1g=; b=hmwiwwLtIVOYLTb9cbaRTHL2++keLwZO9kGfplncW3Eqzd3Z+Wsm9sHkhYIAyojqjH KA4Fz/hVCuoma+/cPDnaSg3MjKFzQ43pKZs3dw/zg+4RnqPpuibN/HHZ2zc82wYvFWk0 B3CkbQsfwGDAnnkybvHCsIO4OsqAtdkQPx1GXANrrwraPubCMeTLqJ8si8anQBY8bxue 9jWenQ8XwcX4+QJiS7fMFejoe40sHN8yEyPQatCsQRqShBVsUVOtCCKseKhGXU4O3JLm m/Ps2Ltqq5DzcwhlLLjgyBVVNYfPVxE4yGdEtCK01wGBfZYL7XYcDMlz18EpMErHtviZ gk7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XQ4lBFj8; 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 d10-v6si1079510pfh.119.2018.06.05.11.12.15; Tue, 05 Jun 2018 11:12:29 -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=@linux-foundation.org header.s=google header.b=XQ4lBFj8; 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 S1752003AbeFESLp (ORCPT + 99 others); Tue, 5 Jun 2018 14:11:45 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:38306 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751769AbeFESLo (ORCPT ); Tue, 5 Jun 2018 14:11:44 -0400 Received: by mail-it0-f68.google.com with SMTP id v83-v6so4559766itc.3 for ; Tue, 05 Jun 2018 11:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vG2O7LRMDO/4xDIF75uTaYqm78xK+OBnLGW/nG1rM1g=; b=XQ4lBFj8JxBYj1wBz87rkI4dfFo4B4eBed9nl+qXZghWJhIi+ghviQPR+TSsMxDO8l sLYDiW9jEeFpVIRSuRSlM9PBIp+Os/pN8TARkC3XAw3RjjOWuiFBDgPhaeTqOy+LUC8R 9tSpkmAA3ns+6RQpT3LQbLR5nespOqh+LqBQI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vG2O7LRMDO/4xDIF75uTaYqm78xK+OBnLGW/nG1rM1g=; b=s+x8OJDx11mVO8zUwEaN9k8MkIPRWYMFfZa3e0M+JtRobdvvnLFIO5NtF2B8awoEQV TNkNmYaldXRfMGYOnP+0eKfYVET24JYY2LSvdr2GvyNI9EFLR2iTn7lrcZK06ZKRinUe vbQY3PgZGh2euta/1q8EhakBGPzqv1hYvMLWXnS6O65/yq76DdTzgvJ37AoBrrM82wNh 0h9qpY4j9zPeQBbUH5dqAjZzOg5y98W+HApEfBBiEqeobCrjvGYAteLbNZ5tmwaYMNxV 1iAbTzbnsVHNioDwhSwLUgAfq5fFyBvqRCIvjeRkWJh4odqHK0lA21K9OKzGGaRVC+9m IKSg== X-Gm-Message-State: APt69E029BSWQ2XCkCpS5x5J5TWJjPW7QTZb5e1ikqslLsvYbohDvJM5 7XRX2K5M4yqRbywY658yyuPjMbJ7+2YsqLvAfas= X-Received: by 2002:a24:5b81:: with SMTP id g123-v6mr283513itb.1.1528222303723; Tue, 05 Jun 2018 11:11:43 -0700 (PDT) MIME-Version: 1.0 References: <8f46ed9a-85c0-8df4-2d1e-d268cbc9d0e9@mageia.org> In-Reply-To: <8f46ed9a-85c0-8df4-2d1e-d268cbc9d0e9@mageia.org> From: Linus Torvalds Date: Tue, 5 Jun 2018 11:11:32 -0700 Message-ID: Subject: Re: building in 32bit chroot on x86_64 host broken (was: Linux 4.17) To: tmb@mageia.org, Masahiro Yamada Cc: 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 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