Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1178805

4.2-rc2 perf build error builtin-stat.c:346: error: declaration of ‘close’ shadows a global declaration

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Vinson Lee <vlee@twopensource.com>
Newsgroups linux.kernel
Subject 4.2-rc2 perf build error builtin-stat.c:346: error: declaration of ‘close’ shadows a global declaration
Date Tue, 07 Jul 2015 20:10:01 +0200
Message-ID <pJFtD-xb-3@gated-at.bofh.it> (permalink)
X-Original-To Peter Zijlstra <a.p.zijlstra@chello.nl>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Jiri Olsa <jolsa@kernel.org>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=hN46IMrGPTSoVur9jr80zt5eVuhjSxyr1hjq3zfS9QQ=; b=E40MW9ACIy7806E62AkoExyYvEvXLU3aXdo1qw9bBnFVwxxkQgCiw9K3CioFQbirH8 Pf4Xfmapw4qDHEXUyUOhwO3q4rSkmpjjrsxS0UnelSQr18BLTI6KRx20LewrMEqzt1yt IEDcBEhfuYjrDZ6MA3abBhtdgG+iQyAxwNTLIeYtaWKFp6i2ZLMRz4XdHNFF9zaur7pn bbHBAX9Chkg7s1TBiYmG0/AYAik5nOdoHS0s/uuJNICCnH5tu1d6dbwlPJSbjXacNqmV k0Y3SRcDqhw9wCu16BYDO/wECgEU4+QiSDQcVGgC4eBnwNBYiqG2AFahqkHZPCzF3dG2 /GzA==
X-Gm-Message-State ALoCoQnr42gA0Q+UtQzxO9mwJ4wM0H8qHNFcD4IkuoQdP3xGOfIxAzIrCVPSobEk6ZxZMW4dfc5k
MIME-Version 1.0
X-Received by 10.152.7.7 with SMTP id f7mr5188982laa.106.1436292085490; Tue, 07 Jul 2015 11:01:25 -0700 (PDT)
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8BIT
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 21
Organization linux.* mail to news gateway
X-Original-Cc LKML <linux-kernel@vger.kernel.org>, linux-perf-users@vger.kernel.org
X-Original-Date Tue, 7 Jul 2015 11:01:25 -0700
X-Original-Message-ID <CAHTgTXWecD6LoDRt4a5gJ385GULuhyB6YaK6iMNh=YW9cCkiZg@mail.gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1178805

Show key headers only | View raw


Hi.

4.2-rc1 commit 106a94a0f8c207ef4113ce7e32f34a00b3b174e7 "perf stat:
Introduce read_counters function" introduced a build error with older
toolchains.

This is the build error on CentOS 6.

  CC       builtin-stat.o
cc1: warnings being treated as errors
builtin-stat.c: In function ‘read_counters’:
builtin-stat.c:346: error: declaration of ‘close’ shadows a global declaration
/usr/include/unistd.h:350: error: shadowed declaration is here

Cheers,
Vinson
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

4.2-rc2 perf build error builtin-stat.c:346: error: declaration of ‘close’ shadows a global declaration Vinson Lee <vlee@twopensource.com> - 2015-07-07 20:10 +0200

csiph-web