Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp267868pxx; Wed, 28 Oct 2020 04:34:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpxdGTL7rHQXqacQZjenPQX5AAeyD6LqzzLzAjnRGk/3bXJ/2XPDdOAEvDLMnOP0Gn+DQa X-Received: by 2002:a50:9e0b:: with SMTP id z11mr7515583ede.341.1603884842686; Wed, 28 Oct 2020 04:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603884842; cv=none; d=google.com; s=arc-20160816; b=LqmjWcdpoPD4ts1GsVEsQTjYb5pOHPYi2V77ADZx3GlbQWSgYnorPdglp09pRiE04V jzfDVraS1IO+PkI4aJ2WtFciiqWAw2+gXJOyWOoLlIJ/gVgUU1S25WMHEbogx2QksZU2 pbhS5XG2RpfteqOzKjFPtZt8qVYTyAkTXZdsWmmhIFlUkmS4bnwTiRUjuqHHp1Sg2OIe FzNOi6PniilRO93F7jY4PAR/ZQLLSzlVk3AGv9rdFjmeEY/Kv/PFnS12p5Z+sj/tKXaY Mw74H6zGKTCBLEqkIzqq6clPV+n4w7+dipFBiI1E2oOqmZTbvC6GBvaXTOxBrxzGM54t 1trw== 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=Tk8cwgDLvcfZ04cCSOAXexojLrGi8XaWlvsbC2Acink=; b=zpNuPPhvmhVZ6RmWsPUVsKgBeKwuoEefnSrMdTDxoDpWcpqRxzcBtoB/wGDilokWnv D3hNBfj50cRO+zA2NmvhoBvBMDnzwzimBOEZBDiDYztmBopm7aswwjhlY0RknrBE4JPd Ziuk1sWFrhXXGFoWPbAVWxqY3ccO7NCsYmPz1VYhPTBZPipIcyx12ZCocaxKmi3gYVqu 6wknZP465fszFvkmL7GmesGcwI2Vz2DAu4JcQOrZIz6n+onf0LRhv8x6oDGBCnQgelJP kdy9uHAIHLlpI5OVDK2nYE4MwlGidfO4RuBaECdIowcqYeHxYTKS1Dft/qNiAP5PExQz DH2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aZ21hE8+; 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=fail (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 p90si2749641edd.284.2020.10.28.04.33.40; Wed, 28 Oct 2020 04:34:02 -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=aZ21hE8+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1793815AbgJ0PI3 (ORCPT + 99 others); Tue, 27 Oct 2020 11:08:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:37806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754053AbgJ0PDZ (ORCPT ); Tue, 27 Oct 2020 11:03:25 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 01C962071A; Tue, 27 Oct 2020 15:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811003; bh=SS8yA/AMq4P5nDSdwrhci907TBVO1ZY4lZd06q5fy6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aZ21hE8+y/5SAgYlycB9F4SHb0GA/meOa1YLms6sAq2VYkblkdw3nrEqwsP1JTIgl 7xpG5BiYK5RQCOYxEU5TjVdt6jKUQvORAlGS+89zli5LwZ9/Hy7eAEvzxNDW6Q6/Xs cnw5R7fno9f0zdKS0AXU6/3CNk3Xu2nEf88g5VXM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexei Budankov , Namhyung Kim , Adrian Hunter , Ian Rogers , Jiri Olsa , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 5.8 339/633] tools feature: Add missing -lzstd to the fast path feature detection Date: Tue, 27 Oct 2020 14:51:22 +0100 Message-Id: <20201027135538.590056467@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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: Arnaldo Carvalho de Melo [ Upstream commit 6c014694b1d2702cdc736d17b60746e7b95ba664 ] 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") Reviewed-by: Alexei Budankov Acked-by: Namhyung Kim Cc: Adrian Hunter Cc: Ian Rogers Cc: Jiri Olsa Link: http://lore.kernel.org/lkml/20200904202611.GJ3753976@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 1796a09365f5d..85d341e25eaec 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -89,7 +89,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) -- 2.25.1