Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7398510yba; Thu, 2 May 2019 09:11:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/MTzAz6pj6MHTs/TXuplD87S2P1Q0EOHRL/LVPQuKZQMVEB1T1y/gIXqGyLxNYkf51rGh X-Received: by 2002:a63:5b4d:: with SMTP id l13mr4818330pgm.160.1556813479171; Thu, 02 May 2019 09:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556813479; cv=none; d=google.com; s=arc-20160816; b=bBhr4eGkB0A+wPGEK4N2UG/7Zfowgsf+U5fnKcidz8Fubx6pY6DjXUGbXf8m7SyPTz w+YF6xuLnTCe0V6TAFnnh/3+KaOaFREJH6GV8+cZHBNc18ZelrW2E75X/bIBMAXguSin x0Y0Fkftrwrvr9k00V4iJJKIaUmRl+AUxUrk8Qg/cGutYTBYkHJ3D/YKFrluERNhwS4j j9+w73pKfRYb4h8eYBH4Vb6KUPjhVBbgTy9JKvY207DeWgzFBcV2sNdvE554VaCBzJG9 sG+yOMa+XhSzfNfjMSQNPK/diVL9/kdROvBeHBRh5AQNtE6ujEZ4QyOAjtfBs6UXcPZB Etmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=EB/WOkWekBDwHg8rTyda4liCTms4eTvhRHNkclyOPiM=; b=Tu6th4uyyfCDsOB8ZS+kl8g7wqSOG0KqkWXQzFT4n/CJAN+U1WGbwA6qfiiJzirnv/ XEKyJwJV5jMVPOt0n0ZWg08tEY/UXUH4/sxrIQTwzHChZbafUpE0w66blNXCUM2wf+RL awX5I9QrQVzC8SLTmX2FtjmwclmMoVQktc+rUEqMp0cv1W0Uqp5s7SAqoOZQycLgKa4o mnTGHrVoYZtAcdT67aKduxPec1zHltunSQmzcJMXmpNdIVeZJ+N35MszjTrmvGuoPQMj fflLKGKyYTyrX8bzLv4O8izarOcyPjrND5ATQim7NKY+3MAJkfE7xChvw5tqYG29nOs5 evgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=fpRgyNol; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 29si24150644pgt.353.2019.05.02.09.11.04; Thu, 02 May 2019 09:11:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=fpRgyNol; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726561AbfEBQJq (ORCPT + 99 others); Thu, 2 May 2019 12:09:46 -0400 Received: from dc8-smtprelay2.synopsys.com ([198.182.47.102]:35930 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbfEBQJq (ORCPT ); Thu, 2 May 2019 12:09:46 -0400 Received: from mailhost.synopsys.com (dc2-mailhost2.synopsys.com [10.12.135.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 7320EC008E; Thu, 2 May 2019 16:09:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1556813387; bh=ZZLsxdALENIFAq/ZqpCY+bZ9XDVuO0IJPaRJlyuz5qA=; h=From:To:CC:Subject:Date:References:From; b=fpRgyNolEfVEsyjoHqH27Rg51l3txWxZEnqNXhoE4kcO/6wrKE6tRoQ5EELR6YICB Bm1a+Nt6pq2oDTSj2wsglm/HYH5bIqnToDRcFYAMRxsB57ml9fWtL4ERXmCfu4RF8F GMrjjEJ9pliBbYOE/tR4Ah2ZClCBUNscy72H9qjQj1anmx5E9JZQJuziOb01wCAiT+ wFyiZAxkWBfnJBuJUFlgVni7Syn9vtOOn6dC3gdfYseO+5llvxjEP5G5ai5b7fLRsk IBjxPovewoCbjKZFhvez2cjDbwQLV9qxB7BZtarBFfc4MmHh9LWNk5jqzeJJTfWzRn ajg0aiVTAkEPw== Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 4E8FEA00A5; Thu, 2 May 2019 16:09:44 +0000 (UTC) Received: from us01wembx1.internal.synopsys.com ([169.254.1.223]) by US01WXQAHTC1.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Thu, 2 May 2019 09:09:43 -0700 From: Vineet Gupta To: Arnaldo Carvalho de Melo CC: Arnd Bergmann , Rich Felker , "Arnaldo Carvalho de Melo" , lkml , "linux-perf-users@vger.kernel.org" , "Jiri Olsa" , Namhyung Kim , arcml Subject: Re: perf tools build broken after v5.1-rc1 Thread-Topic: perf tools build broken after v5.1-rc1 Thread-Index: AQHU9whSYuAYlq2eD0OAivz0M0d5Nw== Date: Thu, 2 May 2019 16:09:43 +0000 Message-ID: References: <20190422152027.GB11750@kernel.org> <20190501204115.GF21436@kernel.org> <20190502143618.GH21436@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.13.184.19] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/2/19 7:36 AM, Arnaldo Carvalho de Melo wrote:=0A= > Em Wed, May 01, 2019 at 09:17:52PM +0000, Vineet Gupta escreveu:=0A= >> On 5/1/19 1:41 PM, Arnaldo Carvalho de Melo wrote:=0A= >>>> The 1a787fc5ba18ac7 commit copied over the changes for arm64, but=0A= >>>> missed all the other architectures changed in c8ce48f06503 and the=0A= >>>> related commits.=0A= >>> Right, I have a patch copying the missing headers, and that fixed the= =0A= >>> build with the glibc-based toolchain, but then broke the uCLibc one :-\= =0A= > =0A= >> tools/perf/util/cloexec.c #includes which for glibc inc= ludes=0A= >> asm/unistd.h=0A= > =0A= >> uClibc OTOH #include containign#define _= _NR_*=0A= >> (generated by parsing kernel's unistd). This header does the right thing= by=0A= >> chekcing for redefs, but in the end we still collide with newly added=0A= >> tools/arc/arc/*/**/unistd.h which doesn't have conditional definitions. = I'm sure=0A= >> this is not an ARC problem, any uClibc build would be affected. Do you h= ave a arm=0A= >> uclibc toolchain to test ?=0A= > This solves it for fedora:29,=0A= > arc_gnu_2017.09-rc2_prebuilt_uclibc_le_arc700_linux_install,=0A= > arc_gnu_2019.03-rc1_prebuilt_uclibc_le_archs_linux_install and=0A= > arc_gnu_2019.03-rc1_prebuilt_glibc_le_archs_linux_install.=0A= >=0A= > Also ok with:=0A= >=0A= > make -C tools/perf build-test=0A= >=0A= > Now build testing with the full set of containers.=0A= >=0A= > - Arnaldo=0A= >=0A= > commit 1931594a680dba28e98b526192dd065430c850c0=0A= > Author: Arnaldo Carvalho de Melo =0A= > Date: Thu May 2 09:26:23 2019 -0400=0A= >=0A= > perf tools: Remove needless asm/unistd.h include fixing build in some= places=0A= > =0A= > We were including sys/syscall.h and asm/unistd.h, since sys/syscall.h= =0A= > includes asm/unistd.h, sometimes this leads to the redefinition of=0A= > defines, breaking the build.=0A= > =0A= > Noticed on ARC with uCLibc.=0A= =0A= Thx for this Arnaldo.=0A= =0A= While this takes care of immediate issues, for the long term, are you open = to idea=0A= of removing the header duplicity.=0A= We could use a "less evil" idiom of copying only the minimal bits (since th= e sync=0A= onus remains one way or the other)=0A= e.g. I spotted below in bpf code and also seen in other ah-hoc multi arch p= rojects=0A= =0A= #ifdef __NR_xx=0A= # if defined (__arch_y__)=0A= =0A= # elif defined (__arch_z__)=0A= =0A= # endif=0A= #endif=0A= =0A= =0A=