Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1954298pxk; Sat, 5 Sep 2020 03:45:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg6nBevNsNfrljV6jg+1783sNylc4Y22iwaSqaBKMwXEx1VsKlBZoVr/M4mc8vqX72Y9sW X-Received: by 2002:a50:f1cd:: with SMTP id y13mr12772200edl.358.1599302725512; Sat, 05 Sep 2020 03:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599302725; cv=none; d=google.com; s=arc-20160816; b=xL6dIiDXYaI3/P5h/uEwRGVLKrVXu1vZ/chPievqZg5NPZ+t9mY/P4RbFgBQx4/HaZ f8+Yi7dzLNeHjRXWfYrPioVD0j1J77Khxjrh9aseSY4G0xT3w/IweAPMZPwibzeDB2Aa hOfsklolifgtF5LBr3N3vnyTVcvVocE/DidgRiNCW7fo1jYus45rsdeamrYK62iGUTqQ tQwwjMU9yiSL7Dx/6F2W0z4hPiAXvTB1gqMMxKUkvyHR0fq8e2kgzq9YLB7W3SqkuI4P ge+jbQdzDjXJdv4tGi3ksIwoeu3F4sGXbjbRFsTCw9Y3RLLtje1aqi4JkrXISZ2VptBE aHlQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:ironport-sdr :ironport-sdr; bh=PIT1Km9qFMvVG6yLU1VCbPsOtl/PQKyHI/Wc/QKC5Kk=; b=RkOarGD4NnyOliMCCJTf33b1hT5giRo39z7WX+hFhYZg7V7ylX4BAOfGFsCAe5NKMS wp66AL6CzwdEsvx+XCjOm1UvWmXadkS6NsySEZXB5hE8UNde4kQ6kiKKZafM5TzZxY/N vovzqazuJkqH3xXw53MAdeI5zGfc2fU5i0pkeeoA11G3NYCG7RNFJOty4rUwMayA3K4y er9AHcPGoLo9x6PsbszeMoFtsRrBWCIzKDXMD4I4udD+fHBrCIRq8jsdpKQQWySccWo9 07pc0poGWXoiNyc7Xqd0/D3H5VltF1uHKHStGVnuFJV6ZtK7ZsHYGhYtVAHA21YSQBaJ S4KA== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc14si6451261ejb.8.2020.09.05.03.44.59; Sat, 05 Sep 2020 03:45:25 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728415AbgIEKoX (ORCPT + 99 others); Sat, 5 Sep 2020 06:44:23 -0400 Received: from mga17.intel.com ([192.55.52.151]:63247 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbgIEKoW (ORCPT ); Sat, 5 Sep 2020 06:44:22 -0400 IronPort-SDR: lb8bsR65bNWjALm+QHGar4cIUnmuKS4zIdGsNp0owKUTiuoOXhghnntDA7JGzMIFE41YU7FOtp 6WcHPtUKhC0A== X-IronPort-AV: E=McAfee;i="6000,8403,9734"; a="137903333" X-IronPort-AV: E=Sophos;i="5.76,393,1592895600"; d="scan'208";a="137903333" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2020 03:44:21 -0700 IronPort-SDR: Px5SDbItv/z3eUH8kE8V+gnKaXytGKj0rfuCIb8KsHy4of2z/ffufTZASb1KsrTUTkl2d4Xj4Y qPGAdCcHKunw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,393,1592895600"; d="scan'208";a="335303346" Received: from linux.intel.com ([10.54.29.200]) by fmsmga002.fm.intel.com with ESMTP; 05 Sep 2020 03:44:20 -0700 Received: from [10.249.229.135] (abudanko-mobl.ccr.corp.intel.com [10.249.229.135]) by linux.intel.com (Postfix) with ESMTP id 791AC580707; Sat, 5 Sep 2020 03:44:17 -0700 (PDT) Subject: Re: [PATCH] tools feature: Add missing -lzstd to the fast path feature detection To: Arnaldo Carvalho de Melo Cc: Adrian Hunter , Ian Rogers , Jiri Olsa , Namhyung Kim , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org References: <20200904202611.GJ3753976@kernel.org> From: Alexey Budankov Organization: Intel Corp. Message-ID: <2ddf68fc-3079-56eb-4214-e9176909f941@linux.intel.com> Date: Sat, 5 Sep 2020 13:44:16 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200904202611.GJ3753976@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04.09.2020 23:26, Arnaldo Carvalho de Melo wrote: > 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) > Reviewed-by: Alexei Budankov Thanks! Alexei