Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3102140pxb; Mon, 9 Nov 2020 02:36:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHCq5QJL6xEAXURWSDDZyCaBkleacbm0RBbrNS42hnnunx7cDnfb+DkPwmUTzYvvv2/0Ei X-Received: by 2002:a17:907:20c3:: with SMTP id qq3mr13869962ejb.274.1604918167442; Mon, 09 Nov 2020 02:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604918167; cv=none; d=google.com; s=arc-20160816; b=vh3UYVA6J1ryowe/2NSBoH8PvijFot0m/YObqQCylWXgFozW3V9St2Y+BCRFUuC1kp MYjC9xecT41NgYxzL7rqPRXD+qFmdhQAZBkh3Jtom7RAlgc+SkVRH97RuidmqLAFYGTS /Qx8mNPriBQnJz+kj8lGwrf4k4GfuRvowtDgzgqf+4dy9etDIwIIk9zRZe2dvg3uRUtw IWLCkV47pgypz8xrnyM22UDLfFIjeyaGhqaNc97bhVFYd6pYzydIcV1dy5TM+4xmoT7C rMvKN9WlSnO2PRUVJoT61ajM37uCvOaOwrMylivOjBKZPcBObhS9gJp0sUDFGJl/WKY7 h2lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ojDd9UbUlvSSIYtOEoN6+LDeXo037/LRDUQIzFlvMjA=; b=s3P0xE/SMnmqQZUKTQDKN8QIoXPTSDfNAL5WwVpmkhQzhZYTbqDGrGaHnAEeFNG3Ff QwAQW4E1POUdh66k6ARDzGEOno/c1AXzA9UFepoIPhbI2G6O5vtgNv7oOikigjpHsem2 am+XySm9geK/zQMtvbov7c1+ZHDDgTKaVHAq3TuuMHdyc8C3nNpLlefHp/nO8/LIp630 HlQ429M0sWwn+Z4j5wwRqgHSxePbtrSjr5nfPDucVp28f55ffR91wHIqEFqQF4keWDP0 KfwGNJR+oGE6g1BxcVkQ3asJKgnwstAskKOXsM4SlOpP5uE3eFaNkkpUC/d0HuhSWjI4 A7SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e8UIl67f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si6823301edv.237.2020.11.09.02.35.44; Mon, 09 Nov 2020 02:36:07 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e8UIl67f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728462AbgKIKc0 (ORCPT + 99 others); Mon, 9 Nov 2020 05:32:26 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:53190 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727774AbgKIKc0 (ORCPT ); Mon, 9 Nov 2020 05:32:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604917945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ojDd9UbUlvSSIYtOEoN6+LDeXo037/LRDUQIzFlvMjA=; b=e8UIl67f9fX2zXOh7nOjzpDiDvTyNzu5jhDm2UQHC8rNFBlYjqvflxkuHovN11SrZpAqvz tEu1D/3ClpyPMOLIKigCC+3xdgTGy1OhU1BlSgSPWZqzxwaRpsg8h1VFQL8RbdUuaUIE9q qjaC9vzDsnP24hpD6CRi3Zzk+ireY9k= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-283--2usXNnZPW6o9MPP-C--jg-1; Mon, 09 Nov 2020 05:32:19 -0500 X-MC-Unique: -2usXNnZPW6o9MPP-C--jg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9DE55107AFC7; Mon, 9 Nov 2020 10:32:17 +0000 (UTC) Received: from krava (unknown [10.40.195.171]) by smtp.corp.redhat.com (Postfix) with SMTP id BF7175C5AF; Mon, 9 Nov 2020 10:32:14 +0000 (UTC) Date: Mon, 9 Nov 2020 11:32:13 +0100 From: Jiri Olsa To: Ming Lei Cc: Amy Parker , linux-kbuild@vger.kernel.org, Linux Kernel Mailing List , masahiroy@kernel.org, michal.lkml@markovi.net, Linus Torvalds , Jiri Olsa , Alexei Starovoitov , Arnaldo Carvalho de Melo Subject: Re: 5.10 tree fails to build Message-ID: <20201109103213.GA324561@krava> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 09, 2020 at 05:57:37PM +0800, Ming Lei wrote: > On Thu, Nov 5, 2020 at 12:58 PM Amy Parker wrote: > > > > On all attempts to build the 5.10 tree (from either release candidate, > > Linus's tree, Greg's tree, etc), the build crashes on the BTFID vmlinux > > stage. I've tested this on several different devices with completely > > different hardware and kernel configs. The symbol for vfs_getattr > > appears to be missing. Compiles for all of these work on any compile > > on any 5.9 tree. I've tested all 4 5.9 dot-releases as well as the first > > two and last two release candidates and Greg's staging tree. > > > > The specific error is: > > BTFIDS vmlinux > > FAILED unresolved symbol vfs_getattr > > make: *** [Makefile:1164: vmlinux] Error 255 > > > > Any thoughts as to what's causing this? The main machine I'm > > compiling with is running kernel 5.8.17 with dwarves 1.17. My > > kernel config is attached as `kernel_config`. > > Turns out the issue is introduced in the following commit: > > commit 6e22ab9da79343532cd3cde39df25e5a5478c692 > Author: Jiri Olsa > Date: Tue Aug 25 21:21:20 2020 +0200 > > bpf: Add d_path helper > > The issue can be observed reliably when building kernel in Fedora 33 with > F33's kernel config. > > GCC: gcc version 10.2.1 20200826 (Red Hat 10.2.1-3) (GCC) hi, it's gcc dwarf issue tracked in here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97060 it's introduced by the gcc version 10.2.1 and we were told it will take some time to fix so we took steps to workaround that, the patchset just got acked and it's on its way to get merged: https://lore.kernel.org/bpf/20201106222512.52454-1-jolsa@kernel.org/ it's change for both dwarves/pahole and kernel the quick workaround is to disable CONFIG_DEBUG_INFO_BTF option jirka > > -- > Ming Lei >