Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6013432ybi; Wed, 12 Jun 2019 12:23:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIZksNaEmFXU4zUg4a8KRQGRdS5if9VAwc0J+t1brQiCKdteWn/DlzZh1AzTSzZ7kicI0c X-Received: by 2002:a17:90a:e397:: with SMTP id b23mr758721pjz.117.1560367418275; Wed, 12 Jun 2019 12:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560367418; cv=none; d=google.com; s=arc-20160816; b=jLwS8kSufaMmPvJM1Lb5RVukashEoef5fGFV4Xv707knRDUmECqgKNF2os0fVF7Lu7 x+/k5e34jJj6qBfVckJXrjT8oR6y6MVdJIvLOjw/MB3Vug1dHyNvtNiUEpzZhX5ZrNmd TmJwYAYeRxZW3JZPVMyVk5+UQdu/k1ZFPAj2176rH2J4KReqxvxsE4G4jivuJ6qS+xVW SIgG9/wIjDcdSVkMl6kGLuv/v89LnR1YePcCnbLD0kGUCfZpHgcrXHxV4jzKkkwI/3iU Vl9e2CgF0y+CdFzsbKLH3Bq+BI11RbPJYuaGe7Ym7d0Fh4ZH75xJeAttYrzDJwmlFKie /Cuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to; bh=jTgyXnqAA1RWkM9GuN0X0PVMrNnVGRWkQvCz1tb289s=; b=BXk+E38VLU80latCl0Kf0DKyPXp5qgIvmyC4X0ejScSXPR+JpDYo1InIBUOqjDhCpZ L037eFb45OYFsLdWUwXAYovvCT0tLE5rZnEAMq6qxcSqW0VZlUw0dB7XLQIC06tFXycp tupdp3xj+KQB5LirGQwWOuuXaTjq7y2G0qOZbcsw6Wyg3iUtbe23wpkUiRD3jHxv7ruD zjC7xPb7w/1jAWclQZwgvh19U9lOnu0MCD04Nd2mnRXbTqIRWrj7/kCd9wGpk5mahUVk vAbKRgoK1julrbYmQAHBZ1kV6KDIZOhfMRPtIowpJnJaCUZ4dbx7XMFhRoTq8d9CIqu7 4dSw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si460305pld.265.2019.06.12.12.23.23; Wed, 12 Jun 2019 12:23:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387604AbfFLTXQ (ORCPT + 99 others); Wed, 12 Jun 2019 15:23:16 -0400 Received: from mail-qt1-f176.google.com ([209.85.160.176]:41530 "EHLO mail-qt1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727920AbfFLTXQ (ORCPT ); Wed, 12 Jun 2019 15:23:16 -0400 Received: by mail-qt1-f176.google.com with SMTP id 33so11603694qtr.8 for ; Wed, 12 Jun 2019 12:23:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=jTgyXnqAA1RWkM9GuN0X0PVMrNnVGRWkQvCz1tb289s=; b=lBn+D/uQ1jpmz7pbLk1Rt4AVs/DB7RQqei79CZ7U21rMewZECXK98yhrlSk1hLxGUf x9BQGjjXGjj6EiVhq2kAY1qmygFuJl8hDRv2TY6SHGyuTNywqUJpPB+RRQfiJZgmbJgT poo7KX5MuTxW05EyCH+Ul22gdy+Xw8LVZmpvqRATkxLHuejSqRt5rh4EbKtVrAW0/v58 nNpK3KgblnhPCvb7UMdAGxddlHajfCM629Tzd/O19oVSYr7V6ksxfRgPJdaFwO/jDXcR nLYB/KPENp4HbUkN5crfZI4ejjZBwTpSxnK6n9AOnC9qfBgw/StIytaai8fhpOq9lar5 Ib+g== X-Gm-Message-State: APjAAAWUHtlahI5SKGq5bwA3g24WMpIw8bXGZ+sFFlHDaRctFLYXPvhH FkDab1hx3pDTxCUburUqJr118Zt5SGM= X-Received: by 2002:ac8:7652:: with SMTP id i18mr62832443qtr.10.1560367394552; Wed, 12 Jun 2019 12:23:14 -0700 (PDT) Received: from ?IPv6:2601:543:8101:1d87::fd60? ([2601:543:8101:1d87::fd60]) by smtp.gmail.com with ESMTPSA id j37sm323900qtb.76.2019.06.12.12.23.13 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jun 2019 12:23:13 -0700 (PDT) To: Jiri Olsa , Arnaldo Carvalho de Melo , Stephane Eranian Cc: Florian Weimer , Linux Kernel Mailing List From: Laura Abbott Subject: perf build failure with newer glibc headers Message-ID: <4c0a4264-7142-2e6d-540d-aa354700e0bb@redhat.com> Date: Wed, 12 Jun 2019 15:23:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, While doing some build experiments, I found a compile failure with perf and jvmti: BUILDSTDERR: gcc -Wp,-MD,./.xsk.o.d -Wp,-MT,xsk.o -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-jvmti/jvmti_agent.c:48:21: error: static declaration of 'gettid' follows non-static declaration BUILDSTDERR: 48 | static inline pid_t gettid(void) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from /usr/include/unistd.h:1170, BUILDSTDERR: from jvmti/jvmti_agent.c:33: BUILDSTDERR: /usr/include/bits/unistd_ext.h:40:16: note: previous declaration of 'gettid' was here BUILDSTDERR: 40 | extern __pid_t gettid (void) __THROW; BUILDSTDERR: | ^~~~~~ This is with the newer glibc headers that came into Fedora earlier this week (glibc-2.29.9000-27.fc31) It looks like the newer headers now define gettid so the in file gettid no longer works. Note this was a custom build with jvmti enabled as regular Fedora doesn't have it enabled which is why this wasn't reported elsewhere. I don't know enough about either the glibc headers or perf to make a suggestion on how to fix this but I'm happy to test. Thanks, Laura