Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3226249pxa; Tue, 18 Aug 2020 09:38:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym2moJlDW9R4pTJEdB09k0+Q1fJH+flU+cruM7a07KrcHN61kAVdZhJYdk7xj76KcoiSD4 X-Received: by 2002:a17:906:4ec3:: with SMTP id i3mr20646773ejv.215.1597768722150; Tue, 18 Aug 2020 09:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597768722; cv=none; d=google.com; s=arc-20160816; b=gnhv/VdmryK4hs/d4LyiY671WC6fWREnjQ7TIGS4gKnzxZuPQrYjLt0ZnlyJqz412A /QRpl1cdXZAEqsI3S/U4hR2cSVvVUv6t1uGFg3W7I6aFLFpuAm/UI2Xz4XN7T3pruZc1 mwb9/JJkAIuPskeir3qx34uXp47C/sh3JKDEg29PNnwGtakfTKSkrZLc7GBl7Pgt8SPO /kVxoAs4CwhbkSHy7LKiFDNUZ39S9tutwZQ/3tlmyLNJnTy+9yW6WS9M1anji0bRB/8t 73wZAOjLfnPhr1Xg0p+Pv0C8hzEPimB4pZuPr7lmIRjqi43i62M9BT/jumv317JJmBQD sSFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=5msNc8qKCzsD6V4bz+uWSdwzCCAzbNPjuKDpd5aaGms=; b=cefhTDkCplHzxN4VViFcUp82MHAYlqUObiTvdgIE2qXF7d/2VpPGPqpFbZw0Zwih8Y zZbgvGd93tEOy175a8fdJYptRo0BEP1doJQ3BniHwjXwpTvASah/EjmQ7o9GMNVkyX8e coZljRd/ugfD6SIQFSEZVsnuMw9/J5UtPSEvKRxVKsAwAAcnF0bYzwJLM7BOBdaPhANB b5VJoVdZR1dQomFkqi/3Te9IYjBzKwCg1qkhk3/XoR0tAmiffqdsw7wnqI9T7E8xaY9z Im27ch+LuIIzGlRQ5zXfBcu78woDYqOB+K3DygOh4uRycbcRgOSs24ieo7nkUvwXak7w xjgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FPOUy3aG; 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 bc2si13117262edb.424.2020.08.18.09.38.17; Tue, 18 Aug 2020 09:38:42 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FPOUy3aG; 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 S1727066AbgHRQds (ORCPT + 99 others); Tue, 18 Aug 2020 12:33:48 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:58489 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgHRQdg (ORCPT ); Tue, 18 Aug 2020 12:33:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597768414; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5msNc8qKCzsD6V4bz+uWSdwzCCAzbNPjuKDpd5aaGms=; b=FPOUy3aG+t+jXta2aQQHzD/FLO8ojriLKTFRPHUshjtlFsDpt2CBUVQ4SqMT93GL2TQvdN WfqjpTvNJqgnH5JZ5Ul8uzzcKQrswFUpKzHlmzsteLMdWlH9QOUm1ppwhB/JMRpmOATSOg qhmhv0xA6BxvIH+37tPKktUQU3vL5QI= 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-83-TCiH__iONaqb5ZgMjnDcaQ-1; Tue, 18 Aug 2020 12:33:29 -0400 X-MC-Unique: TCiH__iONaqb5ZgMjnDcaQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 332F51DDF4; Tue, 18 Aug 2020 16:33:28 +0000 (UTC) Received: from carbon (unknown [10.40.208.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id C8E027DFD7; Tue, 18 Aug 2020 16:33:19 +0000 (UTC) Date: Tue, 18 Aug 2020 18:33:18 +0200 From: Jesper Dangaard Brouer To: Jiri Olsa Cc: brouer@redhat.com, "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , sdf@google.com, andriin@fb.com, Mark Wielaard Subject: Re: Kernel build error on BTFIDS vmlinux Message-ID: <20200818183318.2c3fe4a2@carbon> In-Reply-To: <20200818134543.GD177896@krava> References: <20200818105555.51fc6d62@carbon> <20200818091404.GB177896@krava> <20200818105602.GC177896@krava> <20200818134543.GD177896@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Aug 2020 15:45:43 +0200 Jiri Olsa wrote: > On Tue, Aug 18, 2020 at 12:56:08PM +0200, Jiri Olsa wrote: > > On Tue, Aug 18, 2020 at 11:14:10AM +0200, Jiri Olsa wrote: > > > On Tue, Aug 18, 2020 at 10:55:55AM +0200, Jesper Dangaard Brouer wrote: > > > > > > > > On latest DaveM net-git tree (06a4ec1d9dc652), after linking (LD vmlinux) the > > > > "BTFIDS vmlinux" fails. Are anybody else experiencing this? Are there already a > > > > fix? (just returned from vacation so not fully up-to-date on ML yet) > > > > > > > > The tool which is called and error message: > > > > ./tools/bpf/resolve_btfids/resolve_btfids vmlinux > > > > FAILED elf_update(WRITE): invalid section alignment > > > > > > hi, > > > could you send your .config as well? > > > > reproduced.. checking on fix > > I discussed this with Mark (cc-ed) it seems to be a problem > with linker when dealing with compressed debug info data, > which is enabled in your .config > > it works for me when I disable CONFIG_DEBUG_INFO_COMPRESSED option Thanks for finding this! I confirm that disabling CONFIG_DEBUG_INFO_COMPRESSED fixed the issue. > Mark will fix this upstream, meanwhile he suggested workaround > we can do in resolve_btfids tool, that I'll try to send shortly Great! -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer