Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1885161pxb; Mon, 13 Sep 2021 07:31:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2paUn4hv/mBgYQB7f/HHrJVG7lcMcYmqtBhiYaB84sbeo60en4WnFg+aONMtaXmTlPGU8 X-Received: by 2002:a17:906:d789:: with SMTP id pj9mr12629501ejb.134.1631543493183; Mon, 13 Sep 2021 07:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631543493; cv=none; d=google.com; s=arc-20160816; b=SZzpMArst5wLT7njb19eSJSIg6NbyOilRPYIvUV5fRqNAYWzqa7Hs6KIua5xZkq4c7 MotiKYk7WL9Hgg76VBpSHWRIuqct9/iQRytJrAQlI6RJQuqM+2HQWfyOp39yHAJEwI2f f/ZcsLXp1bygNKscP+rDWJhB8ilHhlO3kmi/hQlsmwVtU6KnITulXqMZMopL6qMIE7Uy LHrqWygns04UriqZb1fncSiTrN7yfotaBOkdI/M/xYM1L5RhY91jCwuMPiolUSkYQkz1 XsfmvI1nndNNjSn5dCNXSMJSZXI8A/q5FbyKdnWBkz78H0OqNZCl50N8j8nBvIIMuZGV KCAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :ironport-hdrordr:ironport-data; bh=kobpzhXVgrSlP7LePrkvAWpNWNMPpqlBzTqYZPQWMcc=; b=WiFiUUwJTvtSMR7QqMn5x99QIuXSE1xoJ/RqLJNoqk1GgJ1Ww6UWGvRYnfjUezFCc4 WJXzPWgXXulpdvPA+xqQax4hEy98YMyBWyJWzrvajLs3A6hL3l/ixow64L/Yh/4hsoSs u+H4bhorYoGDF7YaaMAbXxSob9JPurMk9tcys1ZyKyL1uKy9f2ECYYtMYcmpcm31j2jD R8Of/lxLFZnDow3CTlwC/jWOtesElEvv5JydP7GFb3teSlYe8tbM5EzAHavL8L6fV2bW hCCOv8SR1IrknAoGhN7H5fTbEC2Bv2m3jOwTKfGadsT3+oQsriOTrFggmFQdfYTyqATd IhaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz18si1604538edb.452.2021.09.13.07.31.06; Mon, 13 Sep 2021 07:31:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347017AbhIMOaE (ORCPT + 99 others); Mon, 13 Sep 2021 10:30:04 -0400 Received: from ipmail04.adl3.internode.on.net ([150.101.137.10]:61919 "EHLO ipmail04.adl3.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245713AbhIMOZt (ORCPT ); Mon, 13 Sep 2021 10:25:49 -0400 X-SMTP-MATCH: 1 IronPort-Data: =?us-ascii?q?A9a23=3AYgtL4KDyMLv7RxVW/xfhw5YqxClBgxIJ4kV8j?= =?us-ascii?q?S/XYbTApGwq0jYFy2oYWm2GO6qPYTajeNB1b9vi80JV6sXTnNc1HFFurC02R?= =?us-ascii?q?CwT8sTOD4zEfkr8bnyYIMDORRo+4s9GN9TpIZFvRBcwhD/0YuC79yUUOYJk5?= =?us-ascii?q?1bE5V2t1hlZHWeIdQ944f5ds75h6mJXqYDR7zOl4bsekuWHULOX82cc3lE8s?= =?us-ascii?q?8pvnChSUMHa41v0iLCficdj5zcyn1FNZH4WyDrYw3HQGuG4FcbiLwrPIS3Qw?= =?us-ascii?q?4/Xw/stIovNfrcXnKEIaueLbU7U0yMQCvXk2EMYzsAx+v9T2P40YF1LiyiT2?= =?us-ascii?q?dV40s5NnZ22VQozOKrAlaIaVV9eHj0W0ahuoeCWfibh4ZTCp6HBWyC0mKU0V?= =?us-ascii?q?hBe0Zcj0uJ2B3xesP8VMjYAajidiO+shrG2UO9hgoIkNsaDFJNP5FljwCvfA?= =?us-ascii?q?PJgRorMK5gmT/cwMCwY35keW6yHPoxINHw1N06oXvGGAX9PYLpWoQtiriOvG?= =?us-ascii?q?9GAlG+omA=3D=3D?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AqIhr/qnmbSRFQb4VRrmRXqFNuUPpDfI53D?= =?us-ascii?q?Abv31ZSRFFG/FwWfrOoB1p73DJYVEqKRQdcLG7Scu9qBznn6KdjbNwAV7AZm?= =?us-ascii?q?TbUQmTR72KhLGKqwEIcBeOldK1u50PT0EzMrHNMWQ=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CsBACqXj9h/+hf03ZagQkJgVCBHlg?= =?us-ascii?q?GgXyFM5ELnCOBaAsBTwECBAEBhANwgkUBJTcGDgECBBUBAQYBAQEBAQYEgSS?= =?us-ascii?q?FdYZsFUEYEA0CJgJsCAEBgm2DB60BgTEaAmWEaoMqgWOBECqONYFVRIEVJww?= =?us-ascii?q?Dh1xngkqCZASILjETTIElCHCgDF2LApFyLQeDLoExBgudCAYULINmkhIDAZE?= =?us-ascii?q?JhnmRQaUxgX4zGi6DL1COf28BCY0wNGgCBgsBAQMJhUEBHggTiXgBAQ?= Received: from unknown (HELO localhost) ([118.211.95.232]) by ipmail04.adl3.internode.on.net with ESMTP; 13 Sep 2021 23:54:18 +0930 Message-ID: <000ef85f-9326-706e-007b-4549901797d7@internode.on.net> Date: Mon, 13 Sep 2021 23:54:15 +0930 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:88.0) Gecko/20100101 Thunderbird/88.0 Content-Language: en-US To: x86@kernel.org Cc: Linux Kernel Mailing List , x86@kernel.org From: Arthur Marsh Subject: Cross-comilation from amd64 to i686 - issue with /usr/src/linux/arch/x86/boot/tools/build Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I had a problem when doing a Linux kernel cross compile from amd64 to i386/i686 a few days ago which I solved quickly, but wonder if the issue points to a problem: /usr/src/linux/arch/x86/boot/tools/build had (apparently) been compiled over a year earlier when I was running under amd64 without multilib support, when I installed the i386/i686 gcc-11 under amd64, and attempted to cross-compile the kernel for i386, I received an error about bzImage: BUILD arch/x86/boot/bzImage make[5]: *** [arch/x86/boot/Makefile:84: arch/x86/boot/bzImage] Error 139 make[5]: *** Deleting file 'arch/x86/boot/bzImage' make[4]: *** [arch/x86/Makefile:273: bzImage] Error 2 Once I removed the old /usr/src/linux/arch/x86/boot/tools/build binary and re-ran the kernel build, a new "build" binary was built and the kernel build process succeeded and the built kernels ran fine on my i386/i686 system. I'm not sure if running a cross-compile from amd64 to i386 for the first time or in fact any update of the host CC or cross-compiler CC should have triggered a recompilation of /usr/src/linux/arch/x86/boot/tools/build.c Kernel build command for the cross-compilation was: make ARCH=i386 CROSS_COMPILE=i686-linux-gnu- CC=i686-linux-gnu-gcc-11 -j6 menuconfig bindeb-pkg Arthur.