Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3532433pxb; Mon, 4 Apr 2022 20:10:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp1+KlPaaMTxhg87FZetiVEYGBJ0OA2J3HxScdat+RrInr7iGD4eCl/X15oVqZClxii54R X-Received: by 2002:aa7:9019:0:b0:4fa:7532:9551 with SMTP id m25-20020aa79019000000b004fa75329551mr1301483pfo.26.1649128251464; Mon, 04 Apr 2022 20:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649128251; cv=none; d=google.com; s=arc-20160816; b=yRBctIdme+SD5GqzbVWb+wnDNXecLHJr1vEuDa3HEr7GxV//OTMYnXqzCYjtERodnL DCaIY8aG2uLN7pDt61bWDwCIwIxA7r2z7lAYez2fidDjOuZKjlSvGNcCAsz7ajTEZNLC lanGRxZQEedMNG2OHJiyke3jC5fkFNeOK+OwpsLCzVJFLL3laxkg6f2gP1N/xNUkTUKS OHC+DcC5WfbW8F+1wSe/A4OIdffetFypX7VydeIdnFaFvp7eV16MYwYoiU/xXCxOHa/x XNJoO1KhAvoPk0jES/UK3gUfdFdGf4fCEIgprlylo1Ywbgiz2hFUJY+HOAikSO62t+l9 UnUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EVSv2EpHz9IJdpelrUcOzOC7X5v9bxPQsxseOyDztPE=; b=k8KRENwyIvdjipOi/+r1FDRI1k58ks0HOp+dqNQCpRdWvshdgM6qAggHjz9nLO+M8e PRW8tsibiusxspsOgVfSlk/dC8UElB7Ni6fNCVF9S8NAgJW68sHPUdpzLKElC/QJdDam EmFwDGOKlhKOmZeJp61bPk8E0MgIdLSczhv8F/fenEZglXWpDw+XD3h78YyWyoABAkg9 JkZELytTrjh5daMMA4KljAdFooq4EKSdl8Kh5XLmEK0bV/tupPiSpxtMKEn7yCh0W3yu enxDkzIsMvwXN6bSYVD9lpmrdGm/vnSUEm8OIHcq5UQmBbBKzp1iyivzNwOlFhoJOeG0 DPqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Zr5/W+/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v7-20020a63b647000000b003816043ef60si11621858pgt.341.2022.04.04.20.10.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 20:10:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Zr5/W+/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F3F96436694; Mon, 4 Apr 2022 18:11:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbiDDWm3 (ORCPT + 99 others); Mon, 4 Apr 2022 18:42:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235853AbiDDWkX (ORCPT ); Mon, 4 Apr 2022 18:40:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51DAABFA for ; Mon, 4 Apr 2022 14:53:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5800A61253 for ; Mon, 4 Apr 2022 21:53:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0309EC2BBE4; Mon, 4 Apr 2022 21:53:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649109206; bh=tdcZIeLkkc2cdYoh4y6wbTwTbo0xrYHCAQRon9I9GiM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zr5/W+/g/RhcpUNq/uOXaLPoIlxlPeMyuFkzLyt1vuwtBGIDAe3mMMK9uCEkylN9R 3+tXi433/98x/4udRMekGIYl3vgQqOmARyA2L94VY7xsfXq1HZE1h67Mgm+cs7DGlT XI6bWqszQeae/BjZhsd8HIiE1ubpdaI/WkPZAny4WwX+WzOsXr8ZLrput35++Fzhrl xWyA385O2LZZUMsbHPoF0EuJf4le/Zxr4SJ6XZGM/WJqE88qSepKjKtLZwN9NK3f3t K/sHCA6cJf8YUtdUuduncoR3Mh1yNwpT0066IzfVefmwmOPdVf9U+5AX9pimqsuFUG +F3AEs37iDJpQ== Date: Mon, 4 Apr 2022 14:53:24 -0700 From: Nathan Chancellor To: Arnaldo Carvalho de Melo Cc: Sedat Dilek , Adrian Hunter , Fangrui Song , Florian Fainelli , Ian Rogers , Jiri Olsa , John Keeping , Leo Yan , Michael Petlan , Namhyung Kim , Nick Desaulniers , Linux Kernel Mailing List Subject: Re: Build perf with clang, failure with libperf Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, On Mon, Apr 04, 2022 at 05:43:11PM -0300, Arnaldo Carvalho de Melo wrote: > Hi, > > Trying to apply Sedat's patch something changed in my system, > and that patch wasn't enough, so I had to first apply this one: > > commit 173b552663419f40bcd3cf9df4f68285cac72727 > Author: Arnaldo Carvalho de Melo > Date: Mon Apr 4 17:28:48 2022 -0300 > > tools build: Use $(shell ) instead of `` to get embedded libperl's ccopts > > Just like its done for ldopts and for both in tools/perf/Makefile.config. > > Using `` to initialize PERL_EMBED_CCOPTS somehow precludes using: > > $(filter-out SOMETHING_TO_FILTER,$(PERL_EMBED_CCOPTS)) > > And we need to do it to allow for building with versions of clang where > some gcc options selected by distros are not available. > > Cc: Adrian Hunter > Cc: Fangrui Song > Cc: Florian Fainelli > Cc: Ian Rogers > Cc: Jiri Olsa > Cc: John Keeping > Cc: Leo Yan > Cc: Michael Petlan > Cc: Namhyung Kim > Cc: Nathan Chancellor > Cc: Nick Desaulniers > Cc: Sedat Dilek > Signed-off-by: Arnaldo Carvalho de Melo > > diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile > index 1480910c792e2cb3..90774b60d31b2b8e 100644 > --- a/tools/build/feature/Makefile > +++ b/tools/build/feature/Makefile > @@ -217,7 +217,7 @@ strip-libs = $(filter-out -l%,$(1)) > PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null) > PERL_EMBED_LDFLAGS = $(call strip-libs,$(PERL_EMBED_LDOPTS)) > PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS)) > -PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null` > +PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null) > FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS) > > $(OUTPUT)test-libperl.bin: > > ----------------------------------------------------- 8< ------------------- > > After this I go on filtering out some of the gcc options that clang > doesn't grok: > > diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile > index 90774b60d31b2b8e..bbc5e263e02385ed 100644 > --- a/tools/build/feature/Makefile > +++ b/tools/build/feature/Makefile > @@ -215,9 +215,12 @@ grep-libs = $(filter -l%,$(1)) > strip-libs = $(filter-out -l%,$(1)) > > PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null) > +PERL_EMBED_LDOPTS := $(filter-out -specs=%,$(PERL_EMBED_LDOPTS)) > PERL_EMBED_LDFLAGS = $(call strip-libs,$(PERL_EMBED_LDOPTS)) > PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS)) > PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null) > +PERL_EMBED_CCOPTS := $(filter-out -ffat-lto-objects, $(PERL_EMBED_CCOPTS)) > +PERL_EMBED_CCOPTS := $(filter-out -specs=%,$(PERL_EMBED_CCOPTS)) > FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS) > > $(OUTPUT)test-libperl.bin: > > ----------------------------------------------------- 8< ------------------- > > And then get to the problems at the end of this message, which seem > similar to the problem described here: > > From Nathan Chancellor <> > Subject [PATCH] mwifiex: Remove unnecessary braces from HostCmd_SET_SEQ_NO_BSS_INFO > > https://lkml.org/lkml/2020/9/1/135 > > So perhaps in this case its better to disable that > -Werror,-Wcompound-token-split-by-macro when building with clang? Yes, I think that is probably the best solution. As far as I can tell, at least in this file and context, the warning appears harmless, as the "create a GNU C statement expression from two different macros" is very much intentional, based on the presence of PERL_USE_GCC_BRACE_GROUPS. The warning is fixed in upstream Perl by just avoiding creating GNU C statement expressions using STMT_START and STMT_END: https://github.com/Perl/perl5/issues/18780 https://github.com/Perl/perl5/pull/18984 If I am reading the source code correctly, an alternative to disabling the warning would be specifying -DPERL_GCC_BRACE_GROUPS_FORBIDDEN but it seems like that might end up impacting more than just this site, according to the issue discussion above. Cheers, Nathan > ----------------------------------------------------- 8< ------------------- > > ⬢[acme@toolbox perf]$ cat /tmp/build/perf/feature/test-libperl.make.output > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:150:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[0],0x9fade23b); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:38: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:150:5: note: '{' token is here > ZAPHOD32_SCRAMBLE32(state[0],0x9fade23b); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:49: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:150:5: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[0],0x9fade23b); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:87:41: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > v ^= (v>>23); \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:150:5: note: ')' token is here > ZAPHOD32_SCRAMBLE32(state[0],0x9fade23b); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:88:3: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > } STMT_END > ^~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:738:21: note: expanded from macro 'STMT_END' > # define STMT_END ) > ^ > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:151:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[1],0xaa6f908d); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:38: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:151:5: note: '{' token is here > ZAPHOD32_SCRAMBLE32(state[1],0xaa6f908d); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:49: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:151:5: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[1],0xaa6f908d); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:87:41: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > v ^= (v>>23); \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:151:5: note: ')' token is here > ZAPHOD32_SCRAMBLE32(state[1],0xaa6f908d); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:88:3: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > } STMT_END > ^~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:738:21: note: expanded from macro 'STMT_END' > # define STMT_END ) > ^ > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:152:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[2],0xcdf6b72d); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:38: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:152:5: note: '{' token is here > ZAPHOD32_SCRAMBLE32(state[2],0xcdf6b72d); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:49: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:152:5: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[2],0xcdf6b72d); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:87:41: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > v ^= (v>>23); \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:152:5: note: ')' token is here > ZAPHOD32_SCRAMBLE32(state[2],0xcdf6b72d); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:88:3: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > } STMT_END > ^~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:738:21: note: expanded from macro 'STMT_END' > # define STMT_END ) > ^ > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:156:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 1/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:116:37: note: expanded from macro 'ZAPHOD32_MIX' > #define ZAPHOD32_MIX(v0,v1,v2,text) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:156:5: note: '{' token is here > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 1/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:116:48: note: expanded from macro 'ZAPHOD32_MIX' > #define ZAPHOD32_MIX(v0,v1,v2,text) STMT_START { \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:156:5: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 1/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:124:32: note: expanded from macro 'ZAPHOD32_MIX' > v2 = ROTR32(v2, 7) ^ v0; \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:156:5: note: ')' token is here > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 1/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:125:3: note: expanded from macro 'ZAPHOD32_MIX' > } STMT_END > ^~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:738:21: note: expanded from macro 'STMT_END' > # define STMT_END ) > ^ > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:157:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 2/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:116:37: note: expanded from macro 'ZAPHOD32_MIX' > #define ZAPHOD32_MIX(v0,v1,v2,text) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:157:5: note: '{' token is here > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 2/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:116:48: note: expanded from macro 'ZAPHOD32_MIX' > #define ZAPHOD32_MIX(v0,v1,v2,text) STMT_START { \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:157:5: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 2/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:124:32: note: expanded from macro 'ZAPHOD32_MIX' > v2 = ROTR32(v2, 7) ^ v0; \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:157:5: note: ')' token is here > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 2/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:125:3: note: expanded from macro 'ZAPHOD32_MIX' > } STMT_END > ^~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:738:21: note: expanded from macro 'STMT_END' > # define STMT_END ) > ^ > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:158:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 3/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:116:37: note: expanded from macro 'ZAPHOD32_MIX' > #define ZAPHOD32_MIX(v0,v1,v2,text) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:158:5: note: '{' token is here > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 3/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:116:48: note: expanded from macro 'ZAPHOD32_MIX' > #define ZAPHOD32_MIX(v0,v1,v2,text) STMT_START { \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:158:5: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 3/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:124:32: note: expanded from macro 'ZAPHOD32_MIX' > v2 = ROTR32(v2, 7) ^ v0; \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:158:5: note: ')' token is here > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 3/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:125:3: note: expanded from macro 'ZAPHOD32_MIX' > } STMT_END > ^~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:738:21: note: expanded from macro 'STMT_END' > # define STMT_END ) > ^ > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:159:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 4/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:116:37: note: expanded from macro 'ZAPHOD32_MIX' > #define ZAPHOD32_MIX(v0,v1,v2,text) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:159:5: note: '{' token is here > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 4/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:116:48: note: expanded from macro 'ZAPHOD32_MIX' > #define ZAPHOD32_MIX(v0,v1,v2,text) STMT_START { \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:159:5: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 4/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:124:32: note: expanded from macro 'ZAPHOD32_MIX' > v2 = ROTR32(v2, 7) ^ v0; \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:159:5: note: ')' token is here > ZAPHOD32_MIX(state[0],state[1],state[2],"ZAPHOD32 SEED-STATE A 4/4"); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:125:3: note: expanded from macro 'ZAPHOD32_MIX' > } STMT_END > ^~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:738:21: note: expanded from macro 'STMT_END' > # define STMT_END ) > ^ > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:162:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[0],0xc95d22a9); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:38: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:162:5: note: '{' token is here > ZAPHOD32_SCRAMBLE32(state[0],0xc95d22a9); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:49: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:162:5: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[0],0xc95d22a9); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:87:41: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > v ^= (v>>23); \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:162:5: note: ')' token is here > ZAPHOD32_SCRAMBLE32(state[0],0xc95d22a9); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:88:3: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > } STMT_END > ^~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:738:21: note: expanded from macro 'STMT_END' > # define STMT_END ) > ^ > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:163:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[1],0x8497242b); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:38: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:163:5: note: '{' token is here > ZAPHOD32_SCRAMBLE32(state[1],0x8497242b); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:49: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:163:5: error: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[1],0x8497242b); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:87:41: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > v ^= (v>>23); \ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:163:5: note: ')' token is here > ZAPHOD32_SCRAMBLE32(state[1],0x8497242b); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:88:3: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > } STMT_END > ^~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:738:21: note: expanded from macro 'STMT_END' > # define STMT_END ) > ^ > In file included from test-libperl.c:3: > In file included from /usr/lib64/perl5/CORE/perl.h:4085: > In file included from /usr/lib64/perl5/CORE/hv.h:659: > In file included from /usr/lib64/perl5/CORE/hv_func.h:34: > In file included from /usr/lib64/perl5/CORE/sbox32_hash.h:4: > /usr/lib64/perl5/CORE/zaphod32_hash.h:164:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] > ZAPHOD32_SCRAMBLE32(state[2],0x9c5cc4e9); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:38: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^~~~~~~~~~ > /usr/lib64/perl5/CORE/perl.h:737:29: note: expanded from macro 'STMT_START' > # define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */ > ^ > /usr/lib64/perl5/CORE/zaphod32_hash.h:164:5: note: '{' token is here > ZAPHOD32_SCRAMBLE32(state[2],0x9c5cc4e9); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/lib64/perl5/CORE/zaphod32_hash.h:80:49: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' > #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ > ^ > fatal error: too many errors emitted, stopping now [-ferror-limit=] > 20 errors generated. > ⬢[acme@toolbox perf]$