From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751517AbdBONVx (ORCPT ); Wed, 15 Feb 2017 08:21:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:16499 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750931AbdBONVv (ORCPT ); Wed, 15 Feb 2017 08:21:51 -0500 Date: Wed, 15 Feb 2017 14:21:43 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Wang Nan , Linux Kernel Mailing List Subject: Re: perf build with clang, modulo libpython: Re: perf bison: clang points out: error: conflicting types for 'parse_events_error' always evaluate to 'true' Message-ID: <20170215132143.GB12677@krava> References: <20170214182435.GD4458@kernel.org> <20170215105056.GB8207@krava> <20170215124102.GA4020@kernel.org> <20170215125223.GA12677@krava> <20170215130605.GC4020@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170215130605.GC4020@kernel.org> User-Agent: Mutt/1.7.1 (2016-10-04) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 15 Feb 2017 13:21:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 15, 2017 at 10:06:05AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > clang-4.0: error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Werror,-Wunused-command-line-argument] > clang-4.0: error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Werror,-Wunused-command-line-argument] > error: command 'clang' failed with exit status 1 > cp: cannot stat '/tmp/build/perf/python_ext_build/lib/perf.so': No such file or directory > Makefile.perf:381: recipe for target '/tmp/build/perf/python/perf.so' failed > make[2]: *** [/tmp/build/perf/python/perf.so] Error 1 > make[2]: *** Waiting for unfinished jobs.... > > --------------------------------------------------- > > > diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y > index 3a5196380609..a14b47ab3879 100644 > --- a/tools/perf/util/parse-events.y > +++ b/tools/perf/util/parse-events.y > @@ -17,6 +17,8 @@ > #include "parse-events.h" > #include "parse-events-bison.h" > > +void parse_events_error(YYLTYPE *loc, void *data, void *scanner, char const *msg); > + > #define ABORT_ON(val) \ > do { \ > if (val) \ if that helps.. seems harmless ;-) ack jirka