Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3764908rwb; Sun, 25 Sep 2022 12:25:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4UFx0rsSrC1JdJc0UxayyShBC1V0G1ZHcijWz8Wsyibb3/2mFt9NEjEqEyibd7ZgiGyEKS X-Received: by 2002:a05:6402:c95:b0:457:37d4:c4c5 with SMTP id cm21-20020a0564020c9500b0045737d4c4c5mr3172944edb.267.1664133927117; Sun, 25 Sep 2022 12:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664133927; cv=none; d=google.com; s=arc-20160816; b=tSXyH5q8LHBJJi+OF7zUQuSqk1V4dfbRp4RZF2ZPwvVfm1/P1SHb/zTVnr+PG4YoRD wh/6qUQxNvlxRYfYNZC35pyBcORiLiIJrHbPig3C2VOH8XKVw71FekM0qMrs7tLtf1Yw SjfDqVPHeBzC/reGfPtEKcDzYe6+cdE7uxcsZ7853janYfciaCydE5Ik0uIWhx5ms/hd GJzYLk5WwmsNZd8EhzDoi8RuzJasWpnYPZaTiyD2BKQRp6+bV2xCvRRMicXxpqkX1heQ b7F90lEKu72SSNket0Wdm8ar0eXY+XIzP4MaSvQaiJRq/Unldin7gKzvooQjBdWSOiQ8 bgJA== 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=TOYZqRCvKi/Mz9vmVmBnFtKblNIiup4cEJjIKhqEdxs=; b=LxgWbNxe5Stw59Mcmw43OXzpleqjJVR6M3IfGPKWth4nXI+2F3SAMN2XGt1JaPPvDn gLGKLvIxUDNNi/z4610PL5s0YNfzl/4OePutzhRvz/Kym9sUwtgqADld1o/lxvrCTAm5 IYf8kw2wwNK+VtCG3Sc/whowng40P+Ab/HMMo3VVoCLpe1jd2kj1tAqmr4rPfEqjzBGT 3v3KixqaB3TE4vjh0hLvwcXQw5lKWe/xgArKjgeeym9D4T2U3BQI3bC1L0H/7F0tq85J aBz+3CAanvj+V4lW2owlLjyIWD4ko+GRLWiPZOqHPw09H6jS+3oOhKADgXMIyeWEoVbI k29A== 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 m10-20020a056402050a00b00456cab58382si7344205edv.242.2022.09.25.12.25.01; Sun, 25 Sep 2022 12:25:27 -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 S232645AbiIYSns (ORCPT + 99 others); Sun, 25 Sep 2022 14:43:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbiIYSnq (ORCPT ); Sun, 25 Sep 2022 14:43:46 -0400 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 675BE2B61E for ; Sun, 25 Sep 2022 11:43:45 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 28PIhXrm013995; Sun, 25 Sep 2022 20:43:33 +0200 Date: Sun, 25 Sep 2022 20:43:33 +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: <20220925184333.GA13967@1wt.eu> References: <20220925042031.GA9845@1wt.eu> <20220925152142.GA13116@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 09:13:13PM +0500, Mikhail Gavrilov wrote: > On Sun, Sep 25, 2022 at 8:21 PM Willy Tarreau wrote: > > 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. > > It works! > But I hit another build issue. > > $ make clean && > CROSS_COMPILE=~/Downloads/x86_64-gcc-7.5.0-nolibc-x86_64-linux/gcc-7.5.0-nolibc/x86_64-linux/bin/x86_64-linux- > make -j32 bzImage > *** > GEN modules.builtin > LD .tmp_vmlinux.btf > BTF .btf.vmlinux.bin.o > LD .tmp_vmlinux.kallsyms1 > KSYMS .tmp_vmlinux.kallsyms1.S > AS .tmp_vmlinux.kallsyms1.S > LD .tmp_vmlinux.kallsyms2 > KSYMS .tmp_vmlinux.kallsyms2.S > AS .tmp_vmlinux.kallsyms2.S > LD vmlinux > BTFIDS vmlinux > FAILED: load BTF from vmlinux: Invalid argument > make: *** [Makefile:1159: vmlinux] Error 255 > make: *** Deleting file 'vmlinux' This was reported and addressed a month ago: https://lore.kernel.org/bpf/20220825171620.cioobudss6ovyrkc@altlinux.org/t/#m24a9de4b8cc11eb9c3bbed022487d6de0d42ea4b In short if you don't need XDP you could possibly disable CONFIG_DEBUG_INFO_BTF, otherwise you may have to rebuild the latest pahole utility that seems to be involved in this. But I never faced this issue so I can only recommend hints about things to look at, and could be wrong. Willy