Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9090946pxu; Mon, 28 Dec 2020 06:25:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0EZ7nqH+pPoClTSy6wm+Tq6wD4R5msRECH2wuY2zlpiZs92dw2gHYfyUk1zxaLJ0Pl6tn X-Received: by 2002:aa7:cdc3:: with SMTP id h3mr41812909edw.52.1609165500553; Mon, 28 Dec 2020 06:25:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165500; cv=none; d=google.com; s=arc-20160816; b=U5BAJT11CL4VrkemfQiQgTqVyVraYYneactcTIozYPnieanxOZhJBb7nKfhMw5ruyI iGAJzL57Vjj+JIO+BTH4K/RZX89SpWFMCrWKu4+ScIpMzQYixPzmT1ail2IfOA85/T0O FblnqBupj8r5sww87/vDcDaH19Aa5mDeuMrE8TOsN85dvJWJsKnPsKBgGR30CkaNyhg3 Q82WjsvOkk3l1LrLr3ew1DGLeYF1BzbO1UPz7rrh//93twv/4f+GeJr6J7QsWR+WmT4F kMcX81db4LOWcyma3TeshM+dcyQ80pOuEDx5TRXGeCAEt5k69JOnQ/TQkyNyxFcpHHaE 1hig== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wqyZsNt+c9StFTMtAN8tyhQmraH5tsV6uQhzA8JJ/M8=; b=J02I8eE5FmboRMLM6QVUP2+rxx0/lxM3DJOOUPP3EcRcocidB93gbtEkPk+JGyWyUv JnzXiES7mUG5RaBEECTGb+BU1c/uSoWrwxP57gcQAw9ExPKZuhgqslU0wOVG4eBlsXMj xLbXlVfGJBXkJKcQrh+pvxVuky/EZEAFJiTEuy9Z9N+tLOMOIqt8BbU7RfrNF2UW+nYp V1e0z1CZ2fC9pMtRjDNEHiNL/MCbxFBLZvUPfrM5basVVoCjwLL/sPBRWfoZlTib7vPK cKV1rMPHmcfRnMESdz91iZMHk8+rTx0jrWe1oAsjJcl3XsBgFu+0BRQ2A+x89udI/uzu S2WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hVlC91pF; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay25si20809736edb.8.2020.12.28.06.24.36; Mon, 28 Dec 2020 06:25:00 -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=@linuxfoundation.org header.s=korg header.b=hVlC91pF; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502652AbgL1OWZ (ORCPT + 99 others); Mon, 28 Dec 2020 09:22:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:57978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502626AbgL1OWU (ORCPT ); Mon, 28 Dec 2020 09:22:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 60954208B6; Mon, 28 Dec 2020 14:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165299; bh=Nw5CMUlX2uugcK8l6sq0exxNXT5hptZ93RPt4+Z22KQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hVlC91pFvtGF+OfILdWOmrPPivEk9ML7l0orNZc7nK9HfYW2+7nVz5QCZGce7P9Ay 1WMeziyhN/KXBYXJfvrjfrLgk42hqvaIkupWOjHhdCSiko9MHnn1P4eZokJBp2/7TW +9OQ0W/xqJlGXp85xDg8PmtpDNLVf6jS7SBBs+wg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Olsa , Alexander Shishkin , Ian Rogers , Igor Lubashev , Mark Rutland , Michael Petlan , Namhyung Kim , Peter Zijlstra , Stephane Eranian , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 5.10 484/717] tools build: Add missing libcap to test-all.bin target Date: Mon, 28 Dec 2020 13:48:02 +0100 Message-Id: <20201228125044.151227320@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Olsa [ Upstream commit 09d59c2f3465fb01e65a0c96698697b026ea8e79 ] We're missing -lcap in test-all.bin target, so in case it's the only library missing (if more are missing test-all.bin fails anyway), we will falsely claim that we detected it and fail build, like: $ make ... Auto-detecting system features: ... dwarf: [ on ] ... dwarf_getlocations: [ on ] ... glibc: [ on ] ... libbfd: [ on ] ... libbfd-buildid: [ on ] ... libcap: [ on ] ... libelf: [ on ] ... libnuma: [ on ] ... numa_num_possible_cpus: [ on ] ... libperl: [ on ] ... libpython: [ on ] ... libcrypto: [ on ] ... libunwind: [ on ] ... libdw-dwarf-unwind: [ on ] ... zlib: [ on ] ... lzma: [ on ] ... get_cpuid: [ on ] ... bpf: [ on ] ... libaio: [ on ] ... libzstd: [ on ] ... disassembler-four-args: [ on ] ... CC builtin-ftrace.o In file included from builtin-ftrace.c:29: util/cap.h:11:10: fatal error: sys/capability.h: No such file or directory 11 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. Fixes: 74d5f3d06f707eb5 ("tools build: Add capability-related feature detection") Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Ian Rogers Cc: Igor Lubashev Cc: Mark Rutland Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lore.kernel.org/lkml/20201203230836.3751981-1-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/build/feature/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index cdde783f3018b..89ba522e377dc 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -90,7 +90,7 @@ __BUILDXX = $(CXX) $(CXXFLAGS) -MD -Wall -Werror -o $@ $(patsubst %.bin,%.cpp,$( ############################### $(OUTPUT)test-all.bin: - $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -I/usr/include/slang -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd + $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -I/usr/include/slang -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd -lcap $(OUTPUT)test-hello.bin: $(BUILD) -- 2.27.0