Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1590986pxk; Fri, 4 Sep 2020 13:27:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymFaQi+DvVpbP2hYP01yHMa+KPP8djbPIdoqZgHMqWrNWDutw2YDy5VfzF44zY6asMw6Sz X-Received: by 2002:a17:906:4151:: with SMTP id l17mr10014844ejk.116.1599251249971; Fri, 04 Sep 2020 13:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599251249; cv=none; d=google.com; s=arc-20160816; b=voVTZ77I6ViougOdU8ycJvoxCfM/uONFkeZo2WzAFwlk0AhQwi2eMM/M+sNWZN/RCt uXBp1YmDGA3mL5WeN20xhhz9aiX1WhuBfSUt3Gg3q2FqV28VPRI98s6mt+bQ23nrxeNh 87O4XnW4aXRLXBRE0JeuGpaGYVFha08ZMXzyxwWTkdhzlJJgsmvpwbKpKVOoOC0oDXg+ P3Tex8zrjWzZIZw8KUYu4lR3ogAFaluBjjesGNUSfq7EWxRlrSePRUZK4xRsw+D2ONiu UOO9EAu4wO8lwHxphsGcODzFRO5lXtg81iFBpFK99Ex//foBpnw1jhcJZgKpHcsCe1Nt mtFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=tJXfWTLylskrccKp9NGPmCUlljOwfAEtpMVNyxoRQBI=; b=i02af/58DUbbsHef+XdH6qwOWZs/GcsB+ixB3E/Q+9E1EzgNDZmR97cICaSmhXfPPf /yL/8lD5R8GoA/4cxb8mlyeo9uxesrI60FQ8uRuYjlo2Eq5YEJGy6TY4mSaOyGE6F1Gb 0ePw29cb+orD5opGkgJp2beNSBVsOYqFfhYA5K4pbbWuguDpsJBB8GWLMM3ogo74ZPB9 27bNxy7eDvHuBQDvk0Z3PDXMZu/3IUJlMroRvRe5p4d/asHHlkEFn6v74n+ouQrsN96T tBPJcIF/A1pRv3U4qk8XCl2IO/OHO33rO7+DsP7JmAdyxHtw9nW9F2WgM/MRdqYj6M+G oR8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Cd3J5d4n; 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 s12si4891308ejc.338.2020.09.04.13.27.05; Fri, 04 Sep 2020 13:27:29 -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=Cd3J5d4n; 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 S1727112AbgIDU0O (ORCPT + 99 others); Fri, 4 Sep 2020 16:26:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:50190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbgIDU0N (ORCPT ); Fri, 4 Sep 2020 16:26:13 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1646F2084D; Fri, 4 Sep 2020 20:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599251173; bh=L1otYr9ZeSuuSzxTfilG3HB7h1F12CDCP/vsB46T2lA=; h=Date:From:To:Cc:Subject:From; b=Cd3J5d4nALeLfar9m7nBLo/1gM+TxTYxO/S47cRb6MJ7+kgtrizOW4ICSEjhxnmyB AmtCEtVT303Fwg1Q1Yk4CvggqPfKQy6hrLN7quxVxcCvip/dUdvrPHzZ0E7rAlBW3H SwdC6rEvdKz4epmP2gqx6XTad4ScR0qHeXdAhDZw= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 32DB140D3D; Fri, 4 Sep 2020 17:26:11 -0300 (-03) Date: Fri, 4 Sep 2020 17:26:11 -0300 From: Arnaldo Carvalho de Melo To: Alexey Budankov Cc: Adrian Hunter , Ian Rogers , Jiri Olsa , Namhyung Kim , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Subject: [PATCH] tools feature: Add missing -lzstd to the fast path feature detection Message-ID: <20200904202611.GJ3753976@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We were failing that due to GTK2+ and then for the ZSTD test, which made test-all.c, the fast path feature detection file to fail and thus trigger building all of the feature tests, slowing down the test. Eventually the ZSTD test would be built and would succeed, since it had the needed -lzstd, avoiding: $ cat /tmp/build/perf/feature/test-all.make.output /usr/bin/ld: /tmp/ccRRJQ4u.o: in function `main_test_libzstd': /home/acme/git/perf/tools/build/feature/test-libzstd.c:8: undefined reference to `ZSTD_createCStream' /usr/bin/ld: /home/acme/git/perf/tools/build/feature/test-libzstd.c:9: undefined reference to `ZSTD_freeCStream' collect2: error: ld returned 1 exit status $ Fix it by adding -lzstd to the test-all target. Now I need an entry to 'perf test' to make sure that /tmp/build/perf/feature/test-all.make.output is empty... Fixes: 3b1c5d9659718263 ("tools build: Implement libzstd feature check, LIBZSTD_DIR and NO_LIBZSTD defines") Cc: Adrian Hunter Cc: Alexey Budankov Cc: Ian Rogers Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index 977067e34dff064d..ec815ffc7777a02b 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -91,7 +91,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 + $(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 $(OUTPUT)test-hello.bin: $(BUILD)