Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1778505pxk; Fri, 4 Sep 2020 20:29:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAtC0qhSSObSS85DjdM1y7mGukk7inUdZ0oGAtwdEA5KAeHMeLtnWZXLYk405ZKN8WUruG X-Received: by 2002:a17:906:328d:: with SMTP id 13mr11055073ejw.71.1599276555542; Fri, 04 Sep 2020 20:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599276555; cv=none; d=google.com; s=arc-20160816; b=M7dfmZ5PbiqhbDDQGSJ+RA0nIdIrnQyAyznzAo10OgzLzRjezMhoC7i9OCJ4QNa8Oa t2PXKYig0Oz/aPU0gNyewNM7tfHPKLHsqZvPhLWRqHtrFq/l3IJBRbPJZmF/GT7t9wrQ hUyg8zBekZSeDfYx367yJ4qj64mJJx9EBMhSp5BdfirI3sMOTvpoflncu2+oq+jrqx8H GqA5Roc33N1Rx4667GsX1Re6DEc63LB1XggUg/ROk4gRlsDXXyqWvy/VBfUTGZa0Ayge jd9D9cI4bYU3x4rTp2MRzYRpP5Uai6Qxl16SXpC5oqaSYIF0CxCiz4S5b+tDbwIuz9Bm 3YXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=cOkNEwPOi5SXJh6SoYsauM4+KcbahN2QQZ3aZqvPfME=; b=o8eOY8KEF3evUAOl6Ph++JYmc7RRJgUFS9VwupKlJ7Z3bqc6QpnlHVbR67+OLN2U57 f1nWR7693l19ruTlTuh51w/6bnwAb5LZ4QjpgkzdHCYv+wTargDJUVcXNm2ylaSzqZkH uRTWLcN0BMwclqAOBSYsN3fr5grJ2ateT29aBsDbiqBQWFgSOLjWI+vK8sHfSXQAOOK9 MXQ44Ziiomm/dWL4bhrBXRjhR897GPo9WJJJGGUoFyjizrcL+ZyHVg0brMFyXZsxf4ma GzzL3ErfbOZzPKD59QfaU4eLfWhnYE44hye2X4nwtP0Ub6POFGkJn05U0vGvZkW6jN5D RiAA== 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=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 pj4si5527647ejb.628.2020.09.04.20.28.32; Fri, 04 Sep 2020 20:29:15 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728257AbgIED0a (ORCPT + 99 others); Fri, 4 Sep 2020 23:26:30 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33758 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbgIED01 (ORCPT ); Fri, 4 Sep 2020 23:26:27 -0400 Received: by mail-wr1-f66.google.com with SMTP id m6so9337131wrn.0; Fri, 04 Sep 2020 20:26:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cOkNEwPOi5SXJh6SoYsauM4+KcbahN2QQZ3aZqvPfME=; b=JSQy0ljHAt8+IUt7Xlscr2+xsfXpc7s4KLv1LEWQMgmBJbk7U9RCo/i2cnq5PwujHE fIpXMvtXcPqRU3tjpyLGuQSxNeUrYY88iNUSwwuEf+DSn837EwUWkfxZ8MfTfT1hJIVz br5ooN3LT/vyogWolYeh1vcTPozwhNr/l09JU7vPX7efVOJJ5XVI632DEFWaVhlq1nkD mr5nYoe4fAsEdqeEFf8n/pzaO4+3a0iHIR6OH68ES3pKp8tONvI32Oaaty5sD39uFc8I f1bMhAGFP9CnSvzAwV3JdOkODTDbDN5QCRC+Ig4eJov9TeHX8RI17hbt08mIFsTnStcv nTLw== X-Gm-Message-State: AOAM533C3IQaOHNyAHIfY4Didw2jH9KOIK5sG34cldafsIVWHbe23218 NV9E4BgKLLnpQ+ho0KJDVMCT3UKx6eX2UOVhrbUO5J47qfLQOQ== X-Received: by 2002:adf:a3c9:: with SMTP id m9mr10411898wrb.80.1599276385714; Fri, 04 Sep 2020 20:26:25 -0700 (PDT) MIME-Version: 1.0 References: <20200904202611.GJ3753976@kernel.org> In-Reply-To: <20200904202611.GJ3753976@kernel.org> From: Namhyung Kim Date: Sat, 5 Sep 2020 12:26:14 +0900 Message-ID: Subject: Re: [PATCH] tools feature: Add missing -lzstd to the fast path feature detection To: Arnaldo Carvalho de Melo Cc: Alexey Budankov , Adrian Hunter , Ian Rogers , Jiri Olsa , Linux Kernel Mailing List , linux-perf-users Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 5, 2020 at 5:26 AM 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 Acked-by: Namhyung Kim Thanks Namhyung > > --- > > 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)