Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2473399pxy; Mon, 3 May 2021 00:15:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwuo+h1jyrO/O6sZUsbkGJRKAy39jaJWG2R0pd7YWC7fP4/B1R5BCbojEKtBSWSX1bBTqZ X-Received: by 2002:a17:90a:f2d3:: with SMTP id gt19mr29798457pjb.52.1620026121839; Mon, 03 May 2021 00:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620026121; cv=none; d=google.com; s=arc-20160816; b=TG1KCCzaaMh0pSZTj5GcoUd5C4ukWiRo+h4tOn3MEgKL7Ces+pNjaqMZqKPnsm2iXj v+t0Ulb1KP8sRT2GXkW7O4PlW3zmV3BOHXKkqGzra8A7xZ80WYGXLv05k6DiRPXXwjb+ DHvzKtPyi1HTqOSSDLykyK0K9p1hv0rRHGQ/W5gqYVAmO3N/K+/xrgC8Ml22b2RKfERx md4uw45Ak3nC8EHa6vxPzkY3uoBZDNn2k5DEJLdZpMrKBW0N5mX6obTXV9KZ0b8UdmTv 6nLtpGfzc1SztxUjaDYo7tqUkBmyPN35ulWZk+gV5peRB+HVg18aZjANY4P3I0cyFWzo Ahsg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+4PrYcT2GN3/UglQeHbWaNwbQIS5pLYxoEKFHjqGQZs=; b=QgpTLT8wH2Dq9TP7oOr8569MHMr/lyfpCIvUJbigm+N647NRQ0Ko+YLag1uolrRB5w gNAt6zy3yuzBovTJy7cjCIIsJ+YETpw46AwXR4EcfTS+mgWVBVhMEdbmmzMCdG1J6KXk Vj0ch6YUYQHXxgEdCOPjhxn5ljXHEooSbF5j2C6ANzsBGuH9y6Iy/bdvRkW1Pu8KeTzf o8EV9to3KkzX6a0IP5SaLVQ98d0C/RieZZ/TLR8OOqVtUfO1/Qy2FWULfLSb4AINFyZu 8nax6zjDHnGtlLvjt5GfW/0EL/3zEgnbEB8y4YhzabDc4Ay5BGHd6Pm78rT7XY/TZGLP A+JQ== 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 d10si13134174pgo.529.2021.05.03.00.15.09; Mon, 03 May 2021 00:15:21 -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 S232887AbhECHOT (ORCPT + 99 others); Mon, 3 May 2021 03:14:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:55218 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhECHOS (ORCPT ); Mon, 3 May 2021 03:14:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B87ADB048; Mon, 3 May 2021 07:13:24 +0000 (UTC) Date: Mon, 3 May 2021 09:13:18 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Jiri Slaby Cc: Jiri Olsa , Yonghong Song , linux-kernel@vger.kernel.org, Martin KaFai Lau , "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Song Liu , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org, Jiri Olsa , Jesper Dangaard Brouer Subject: Re: linux-next failing build due to missing cubictcp_state symbol Message-ID: <20210503071318.GJ6564@kitsune.suse.cz> References: <20210426113215.GM15381@kitsune.suse.cz> <20210426121220.GN15381@kitsune.suse.cz> <20210426121401.GO15381@kitsune.suse.cz> <49f84147-bf32-dc59-48e0-f89241cf6264@fb.com> <20210427121237.GK6564@kitsune.suse.cz> <20210430174723.GP15381@kitsune.suse.cz> <3d148516-0472-8f0a-085b-94d68c5cc0d5@suse.com> <6c14f3c8-7474-9f3f-b4a6-2966cb19e1ed@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6c14f3c8-7474-9f3f-b4a6-2966cb19e1ed@kernel.org> User-Agent: Mutt/1.11.3 (2019-02-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 03, 2021 at 08:11:50AM +0200, Jiri Slaby wrote: > On 01. 05. 21, 8:45, Jiri Slaby wrote: > > On 30. 04. 21, 19:47, Michal Such?nek wrote: > > > CC another Jiri > > > > > > On Tue, Apr 27, 2021 at 02:12:37PM +0200, Michal Such?nek wrote: > > > > On Mon, Apr 26, 2021 at 09:16:36PM +0200, Jiri Olsa wrote: > > > > > On Mon, Apr 26, 2021 at 06:03:19PM +0200, Jiri Olsa wrote: > > > > > > On Mon, Apr 26, 2021 at 08:41:49AM -0700, Yonghong Song wrote: > > > > > > > > > > > > > > > > > > > > > On 4/26/21 5:14 AM, Michal Such?nek wrote: > > > > > > > > On Mon, Apr 26, 2021 at 02:12:20PM +0200, Michal Such?nek wrote: > > > > > > > > > On Mon, Apr 26, 2021 at 01:32:15PM +0200, Michal Such?nek wrote: > > > > > > > > > > On Sun, Apr 25, 2021 at 01:15:45PM +0200, Michal Such?nek wrote: > > > > > > > > > > > On Fri, Apr 23, 2021 at 07:55:28PM +0200, Michal Such?nek wrote: > > > > > > > > > > > > On Fri, Apr 23, 2021 at 07:41:29AM -0700, Yonghong Song wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 4/23/21 6:05 AM, Michal Such?nek wrote: > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > > > > > > > > > > > I see this build error in linux-next (config attached). > > > > > > > > > > > > > > > > > > > > > > > > > > > > [ 4939s]?? LD????? vmlinux > > > > > > > > > > > > > > [ 4959s]?? BTFIDS? vmlinux > > > > > > > > > > > > > > [ 4959s] FAILED unresolved symbol cubictcp_state > > > > > > > > > > > > > > [ 4960s] make[1]: *** > > > > > > > > > > > > > > [/home/abuild/rpmbuild/BUILD/kernel-vanilla-5.12~rc8.next.20210422/linux-5.12-rc8-next-20210422/Makefile:1277: > > > > > > > > > > > > > > > > > > > > > > > > > > > > vmlinux] Error 255 > > > > > > > > > > > > > > [ 4960s] make: *** [../Makefile:222: __sub-make] Error 2 > > > > > > > > > > > > this one was reported by Jesper and was fixed by upgrading pahole > > > > > > that contains the new function generation fixes (v1.19) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Looks like you have > > > > > > > > > > > > > DYNAMIC_FTRACE config option > > > > > > > > > > > > > enabled already. > > > > > > > > > > > > > Could you try a later version of pahole? > > > > > > > > > > > > > > > > > > > > > > > > Is this requireent new? > > > > > > > > > > > > > > > > > > > > > > > > I have pahole 1.20, and master does build without problems. > > > > > > > > > > > > > > > > > > > > > > > > If newer version is needed can a check be added? > > > > > > > > > > > > > > > > > > > > > > With dwarves 1.21 some architectures > > > > > > > > > > > are fixed and some report other > > > > > > > > > > > missing symbol. Definitely an improvenent. > > > > > > > > > > > > > > > > > > > > > > I see some new type support was > > > > > > > > > > > added so it makes sense if that type > > > > > > > > > > > is > > > > > > > > > > > used the new dwarves are needed. > > > > > > > > > > > > > > > > > > > > Ok, here is the current failure with dwarves 1.21 on 5.12: > > > > > > > > > > > > > > > > > > > > [ 2548s]?? LD????? vmlinux > > > > > > > > > > [ 2557s]?? BTFIDS? vmlinux > > > > > > > > > > [ 2557s] FAILED unresolved symbol vfs_truncate > > > > > > > > > > [ 2558s] make[1]: *** > > > > > > > > > > [/home/abuild/rpmbuild/BUILD/kernel-kvmsmall-5.12.0/linux-5.12/Makefile:1213: > > > > > > > > > > > > > > > > > > > > vmlinux] Error 255 > > > > > > > > > > > > > > This is PPC64, from attached config: > > > > > > > ?? CONFIG_PPC64=y > > > > > > > I don't have environment to cross-compile for PPC64. > > > > > > > Jiri, could you take a look? Thanks! > > > > > > > > > > > > looks like vfs_truncate did not get into BTF data, > > > > > > I'll try to reproduce > > > > _None_ of the functions are generated by pahole -J from debuginfo on > > ppc64. debuginfo appears to be correct. Neither pahole -J fs/open.o > > works correctly. collect_functions in dwarves seems to be defunct on > > ppc64... "functions" array is bogus (so find_function -- the bsearch -- > > fails). > > It's not that bogus. I forgot an asterisk: > > #0 find_function (btfe=0x100269f80, name=0x10024631c "stream_open") at /usr/src/debug/dwarves-1.21-1.1.ppc64/btf_encoder.c:350 > > (gdb) p (*functions)@84 > > $5 = {{name = 0x7ffff68e0922 ".__se_compat_sys_ftruncate", addr = 75232, size = 72, sh_addr = 65536, generated = false}, { > > name = 0x7ffff68e019e ".__se_compat_sys_open", addr = 80592, size = 216, sh_addr = 65536, generated = false}, { > > name = 0x7ffff68e0076 ".__se_compat_sys_openat", addr = 80816, size = 232, sh_addr = 65536, generated = false}, { > > name = 0x7ffff68e0908 ".__se_compat_sys_truncate", addr = 74304, size = 100, sh_addr = 65536, generated = false}, { > ... > > name = 0x7ffff68e0808 ".stream_open", addr = 65824, size = 72, sh_addr = 65536, generated = false}, { > ... > > name = 0x7ffff68e0751 ".vfs_truncate", addr = 73392, size = 544, sh_addr = 65536, generated = false}} > > The dot makes the difference, of course. The question is why is it there? I > keep looking into it. Only if someone has an immediate idea... Thanks for looking into it. That's probably expected. I vaguely recall there is a mocro for adding a dot to assembly symbols depending on the ABI. Thanks Michal