Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3440408pxk; Mon, 28 Sep 2020 18:32:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBJYnaN3G26eQCdfspknrAOBnLDqXbUxQAovvuDKByGmb/i6r6FobfOmtCcHNkuweCYmdW X-Received: by 2002:a17:906:bcfc:: with SMTP id op28mr1572581ejb.248.1601343154456; Mon, 28 Sep 2020 18:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601343154; cv=none; d=google.com; s=arc-20160816; b=1IT92pY8kWfHVGmBBqE8P+y1RUXqkjTn/DZTpvTioOa8Ye8WVQxeMIlHpvdCESE9Lw 1MCalRUV5S1EXYbnZI+acGx1QSijx9iEK6LxJN7yQjTCC1d83o3zQBmHKclY4WDcfNnY o7StlhIqg4XGgQojl4aGKS+v98oDXmZHO3jigy7gdLAIQu3QLJlNAyw2QaG9HxyKx6Rh Gt9L5rKKwirgUGSUv/xtj8TnjiLevlQmWiir6Dgf8GdNNkCfYZeirfnJfVkr80mviSLb jEhKbTaEcbSjzuu6akbs4DfXKg7IdHqG2AH6s8hKvW2I8T6WYbG+TLL6RLVdvZ5+30F2 sQ0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PbH7lkO8/ND248H4AGPSgtIYC/gGfKaKL903yUWz33o=; b=j2s+80xFy0UVX1lR14f35gRNo6ov0MI9OtLrjBLGqQxH3t9Q90ZDIXIxmp+pKDYcJR g3HAHMb2uTDfvKogDbbUrJi2IrkrgF4KAJueEm2cd3GNH8puamqm2NmT4KnioeDEg2ri l9M7e5npe6uJjE24zh3NrKwQfs8jU+Z9AHctR2WLBLz4/przK5Up7zo8dtHsUj9l8HoQ EEsASPQtpRuXWeN5LjvbimFna8ZtGnn27aXLrkcLfy/uny8a1Ce73XZRFW2rESiCSJdD berCTz/8Rmp+946UwUDFSaeJj07cWrFpsLi4idrh7y+eYe6T+PP/9FRvER5K7sPm6saD XrBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=I6+a91YM; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u16si1786800edo.487.2020.09.28.18.32.02; Mon, 28 Sep 2020 18:32:34 -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=@kernel.org header.s=default header.b=I6+a91YM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727325AbgI2Bag (ORCPT + 99 others); Mon, 28 Sep 2020 21:30:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:39400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727186AbgI2Bad (ORCPT ); Mon, 28 Sep 2020 21:30:33 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 89CFB2080A; Tue, 29 Sep 2020 01:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601343033; bh=Zq4MAkUNRAapzUbfhLqsFNJRbXU42khRWjBp5Tp/WM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I6+a91YMk25s3z8ZTCbrKDW5Z1AxqfafPuluHc2myDLaj7oDWI+0tZqFJA9xtJW3F S1ksUAbhhBa7busPHZlnFLFD9Or4NogpdhOUaaqP4OJFblAMngWrjToi0B4LFjRL8j NKbfxJvb76KMfdt4u4cjSJL8qkByWbDwdvCLQb/w= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Naveen N. Rao" , Vaidyanathan Srinivasan , Daniel Borkmann , Andrii Nakryiko , Sasha Levin , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH AUTOSEL 5.8 04/29] libbpf: Remove arch-specific include path in Makefile Date: Mon, 28 Sep 2020 21:30:01 -0400 Message-Id: <20200929013027.2406344-4-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200929013027.2406344-1-sashal@kernel.org> References: <20200929013027.2406344-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Naveen N. Rao" [ Upstream commit 21e9ba5373fc2cec608fd68301a1dbfd14df3172 ] Ubuntu mainline builds for ppc64le are failing with the below error (*): CALL /home/kernel/COD/linux/scripts/atomic/check-atomics.sh DESCEND bpf/resolve_btfids Auto-detecting system features: ... libelf: [ [32mon[m ] ... zlib: [ [32mon[m ] ... bpf: [ [31mOFF[m ] BPF API too old make[6]: *** [Makefile:295: bpfdep] Error 1 make[5]: *** [Makefile:54: /home/kernel/COD/linux/debian/build/build-generic/tools/bpf/resolve_btfids//libbpf.a] Error 2 make[4]: *** [Makefile:71: bpf/resolve_btfids] Error 2 make[3]: *** [/home/kernel/COD/linux/Makefile:1890: tools/bpf/resolve_btfids] Error 2 make[2]: *** [/home/kernel/COD/linux/Makefile:335: __build_one_by_one] Error 2 make[2]: Leaving directory '/home/kernel/COD/linux/debian/build/build-generic' make[1]: *** [Makefile:185: __sub-make] Error 2 make[1]: Leaving directory '/home/kernel/COD/linux' resolve_btfids needs to be build as a host binary and it needs libbpf. However, libbpf Makefile hardcodes an include path utilizing $(ARCH). This results in mixing of cross-architecture headers resulting in a build failure. The specific header include path doesn't seem necessary for a libbpf build. Hence, remove the same. (*) https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9-rc3/ppc64el/log Reported-by: Vaidyanathan Srinivasan Signed-off-by: Naveen N. Rao Signed-off-by: Daniel Borkmann Acked-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20200902084246.1513055-1-naveen.n.rao@linux.vnet.ibm.com Signed-off-by: Sasha Levin --- tools/lib/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index bf8ed134cb8a3..b78484e7a6089 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -59,7 +59,7 @@ FEATURE_USER = .libbpf FEATURE_TESTS = libelf libelf-mmap zlib bpf reallocarray FEATURE_DISPLAY = libelf zlib bpf -INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(ARCH)/include/uapi -I$(srctree)/tools/include/uapi +INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/tools/include/uapi FEATURE_CHECK_CFLAGS-bpf = $(INCLUDES) check_feat := 1 -- 2.25.1