Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3562110rwb; Sun, 25 Sep 2022 08:33:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FsgJubtvKZ4gb5HMFpirtaVlamWBRMhjTWGfrEg/usZeUoIaWrhTZEaNwx1NATkg9BnQ3 X-Received: by 2002:a17:907:a43:b0:77b:ba98:d2f with SMTP id be3-20020a1709070a4300b0077bba980d2fmr15369242ejc.270.1664120026111; Sun, 25 Sep 2022 08:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664120026; cv=none; d=google.com; s=arc-20160816; b=LSGnyISeu/t1Oc2hTMY7jOpRXw87iuaTeXei5EgCnI3etb/mUGrE0WLugF8qH4pR+U hyt+51Cf2Ry6Nql1/sNKLMGbYMR0bBNsAe1UITTnDjkFOP0ud/Uc5iqaDekpL59nXeFN ZXA+d/+LS1xEnmlg5CHcDdyjqzbP0YePPkqrb1aPqVRls8AB2FTq4OFW4Kc7hjgZI7UI 7WkqtW6/RF2bu+5nPa4JQJ5pa9sVwsW486WD8WtJAb361ADgOPCWhPU5n7WQBAn5gB0y yU9Es3YbaGX2mb3OCg+RdvpqkOiXl3NSuIN6QFX2eh8oYDcj3OpK8LulXi6sqTTS+qna E2Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=eCI3fpiiW8A/hB4o1ebnarcUElG2uoiqSnTjiK6gsrE=; b=N72YNBdO/GUY23DS7s61VEuKcDozgDyManZCppZ6eyUsEAjf/Uq2bOPrAPdSmJoJKF IUDPy7k54nvsrR1W6enI0blAUkLEoto+U0SyTtvmx4eMoHM7TuUCZCfqfjOPF/mXrCDL Px2s/QgRwB9RO242ffa9MnpE3q2Vd7S6vMxIvTUtyZ0GCJvQ9mY7ENaCBHN+TL7Bu1GM vUzVKYguj/IzdedQOPHEVOVV88MSNvwKSfIMCtmrGTGxAa1ihVuTqFtEFiAlE9h8jV6m YlRvHgZ+pIT8PtDwFeM99//Mdvdv57xlpCHZBBkYF1v/x2cwhbL9IzLiju7v9574a3Tq Bn8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a50a68f000000b0044efa9938d5si12067978edc.583.2022.09.25.08.33.18; Sun, 25 Sep 2022 08:33:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230128AbiIYPV7 (ORCPT + 99 others); Sun, 25 Sep 2022 11:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230047AbiIYPV4 (ORCPT ); Sun, 25 Sep 2022 11:21:56 -0400 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE8632B268 for ; Sun, 25 Sep 2022 08:21:54 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 28PFLgxA013152; Sun, 25 Sep 2022 17:21:42 +0200 Date: Sun, 25 Sep 2022 17:21:42 +0200 From: Willy Tarreau To: Mikhail Gavrilov Cc: ast@kernel.org, yhs@fb.com, sean.wang@mediatek.com, Linux List Kernel Mailing Subject: Re: Unable bisect issue because kernel not building from old commits Message-ID: <20220925152142.GA13116@1wt.eu> References: <20220925042031.GA9845@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 25, 2022 at 07:02:39PM +0500, Mikhail Gavrilov wrote: > > > > Note that this looks more related to binutils here. Regardless, there > > are pre-built toolchains including compiler+binutils for various gcc > > versions from 4.9 and up here, for all supported architectures: > > > > https://mirrors.edge.kernel.org/pub/tools/crosstool/ > > > > These ones are sufficient to build a kernel and are likely easier to > > deal with than trying to port a patch over a bisect session. For example > > you could have luck with 7.5 which has been supported for a very long > > time and still is supported. > > I don't quite understand how to switch to the downloaded binutils > without breaking the distribution. > I am building the kernel with the following command: > $ make clean && make -j32 bzImage && make -j32 modules Just add: CROSS_COMPILE=/path/to/toolchain/bin/prefix- to your make command line and it will be fine. The makefile will append {gcc,ld,...} to this CROSS_COMPILE prefix to construct the full pathname to the binaries. Willy