From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A14CC04A95 for ; Sun, 25 Sep 2022 04:20:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbiIYEUz (ORCPT ); Sun, 25 Sep 2022 00:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbiIYEUw (ORCPT ); Sun, 25 Sep 2022 00:20:52 -0400 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 929123B96F for ; Sat, 24 Sep 2022 21:20:50 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 28P4KVjR009882; Sun, 25 Sep 2022 06:20:31 +0200 Date: Sun, 25 Sep 2022 06:20:31 +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: <20220925042031.GA9845@1wt.eu> References: 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 25, 2022 at 03:22:10AM +0500, Mikhail Gavrilov wrote: > Hi! > I want to make bisect between commits fdaf9a5840ac and babf0bb978e3, > because after commit babf0bb978e3 Wi-Fi (mt7921e) upload speed became > limited to 170Mbps. On commit fdaf9a5840ac upload speed was 784Mbps. > > But I ran into a problem that the gcc-12.2.1 compiler on my > distribution (Fedora) can't build the kernel from old commits. The > build fails with the following error: > ld: warning: arch/x86/power/hibernate_asm_64.o: missing > .note.GNU-stack section implies executable stack (...) 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. Hoping this helps, Willy