Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp20756633ybl; Sun, 5 Jan 2020 10:30:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxiCwzM7Mb69d0jD7DHcsereDJR0IScLOHYo89lj7ACVExwllrxmrTLop2f/HfrmBybQXqq X-Received: by 2002:a9d:590d:: with SMTP id t13mr3159259oth.290.1578249024532; Sun, 05 Jan 2020 10:30:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578249024; cv=none; d=google.com; s=arc-20160816; b=QgvPmpxYyZgvQ11qfs9Swqw3LSgqAHFH2aWJOR1Fn6SKLopIO1nutm9yWH9d7VE111 Rv0shM9cCb5/oNGftluLg0YwrfNRiG19nhMlifxdXwIN7GencsMvg1tfwXRIr2ijDJig VZzlck0KTl8J2Wso2UvtLxIfHNO+BUUuqQhBAzsLmJtHA6io4ZOcH4gZOJZq4KxDaiDw BxEtAbwdJYj4DHvIfF3q3xiyrCB1JOrWbk06+TnD3LQf9/RLIxmNiceg1Dq0OasciA2y jGoXyWmPsnUvIcXVBgS8eRH9w0qlrk4Vq3ljBwgSVgFULCDqbSxoCE5UtOmNJl4GY//m nAUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HFmcCqBJTcmyMRN6hktk8slJgPJA4DzWNjlW2MqNxKw=; b=BnPH43XObVqTB7rmJMFXFSh2xphdw2Fa69q7jhOp3fQdIYmcBfIvTm6BDn7Cj2S0Yx ++LpL0CyMj+0vzL1MJc1vvPc7iwWOHi3SmQg3sGoGlHhCpbOBonWk/2O//tKt9J7pivh T6uPfUNAZYnyvi4PglRZsxzigHNCGq5erfLJJYSKF3vOQqz8KFvYAmKJtppksaEMZdTM u1an8I5ZcvnLoPUACRjYGExoQMgQua6Cs4Wi4xBL/6khn+5Lx/hUnld+f8z69JRCXycp 7sfTkwkcmkkRhxLC7kYNr/t8aCZTfFaDmumYQGHd4F9kvYOMGe3K4dOBMkcljH2eUwHp FmZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dYEfBqra; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si36602240otd.50.2020.01.05.10.30.12; Sun, 05 Jan 2020 10:30:24 -0800 (PST) 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=@kernel.org header.s=default header.b=dYEfBqra; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726494AbgAES3d (ORCPT + 99 others); Sun, 5 Jan 2020 13:29:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:47068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbgAES3d (ORCPT ); Sun, 5 Jan 2020 13:29:33 -0500 Received: from localhost (96-81-74-198-static.hfc.comcastbusiness.net [96.81.74.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3113620866; Sun, 5 Jan 2020 18:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578248971; bh=NM7rtwMdhq5AzVyVvFhwlCWu0V9S/cm1HP9t6rBm9rw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dYEfBqraDCieqlUCmkoFYnlujgSgO7eV4o8lepaGfv04cdg8XokRJUPGXVtRXfK+L mUw3tQu0L90NoYDzLsRP50oPzlSG9xCev+7VrzQPOdwvSvt555X6DrF9F3ULE5qUpt 0+JRdTSMbPxNE90zdHmt54hnMg2+d66JSnGbCgOU= Date: Sun, 5 Jan 2020 13:29:29 -0500 From: Sasha Levin To: Gordan Bobic Cc: stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: 4.9.208 regression in perf building Message-ID: <20200105182929.GA2530@sasha-vm> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 05, 2020 at 05:01:00PM +0000, Gordan Bobic wrote: >It looks like 4.9.208 introduces a build regression for perf: > >make -f /builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/build/Makefile.build >dir=. obj=perf > gcc -Wp,-MD,./.builtin-report.o.d,-MT,builtin-report.o >-Wbad-function-cast -Wdeclaration-after-statement -Wformat-security >-Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-prototypes >-Wnested-externs -Wno-system-headers -Wold-style-definition -Wpacked >-Wredundant-decls -Wshadow -Wstrict-aliasing=3 -Wstrict-prototypes >-Wswitch-default -Wswitch-enum -Wundef -Wwrite-strings -Wformat >-DHAVE_ARCH_X86_64_SUPPORT -DHAVE_SYSCALL_TABLE >-Iarch/x86/include/generated -DHAVE_PERF_REGS_SUPPORT >-DHAVE_ARCH_REGS_QUERY_REGISTER_OFFSET -O6 -fno-omit-frame-pointer >-ggdb3 -funwind-tables -Wall -Wextra -std=gnu99 -fstack-protector-all >-D_FORTIFY_SOURCE=2 >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/perf/util/include >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/perf/arch/x86/include >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/include/uapi >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/include/ >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/arch/x86/include/uapi >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/arch/x86/include/ >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/arch/x86/ >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/perf/util >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/perf >-I/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/lib/ >-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE >-DHAVE_SYNC_COMPARE_AND_SWAP_SUPPORT >-DHAVE_PTHREAD_ATTR_SETAFFINITY_NP -DHAVE_DWARF_GETLOCATIONS >-DHAVE_LIBELF_SUPPORT -DHAVE_LIBELF_MMAP_SUPPORT >-DHAVE_ELF_GETPHDRNUM_SUPPORT -DHAVE_GELF_GETNOTE_SUPPORT >-DHAVE_ELF_GETSHDRSTRNDX_SUPPORT -DHAVE_DWARF_SUPPORT >-DHAVE_LIBBPF_SUPPORT -DHAVE_BPF_PROLOGUE -DHAVE_SDT_EVENT >-DHAVE_JITDUMP -DHAVE_DWARF_UNWIND_SUPPORT -DHAVE_LIBAUDIT_SUPPORT >-DHAVE_LIBCRYPTO_SUPPORT -I/usr/include/slang -DHAVE_SLANG_SUPPORT >-DHAVE_TIMERFD_SUPPORT -DHAVE_LIBBFD_SUPPORT -DHAVE_ZLIB_SUPPORT >-DHAVE_LZMA_SUPPORT -DHAVE_BACKTRACE_SUPPORT -DHAVE_LIBNUMA_SUPPORT >-DHAVE_KVM_STAT_SUPPORT -DHAVE_AUXTRACE_SUPPORT -D"BUILD_STR(s)=#s" >-DTIPDIR="BUILD_STR(share/doc/perf-tip)" >-DDOCDIR="BUILD_STR(/builddir/build/BUILD/kernel-4.9.208/linux-4.9.208-1.el7.x86_64/tools/perf/Documentation)" > -c -o builtin-report.o builtin-report.c >builtin-report.c: In function ‘report__setup_sample_type’: >builtin-report.c:296:6: error: ‘dwarf_callchain_users’ undeclared >(first use in this function) > if (dwarf_callchain_users) { > ^ >builtin-report.c:296:6: note: each undeclared identifier is reported >only once for each function it appears in >mv: cannot stat ‘./.builtin-report.o.tmp’: No such file or directory >make[3]: *** [builtin-report.o] Error 1 >make[2]: *** [perf-in.o] Error 2 >make[1]: *** [sub-make] Error 2 >make: *** [all] Error 2 > >4,9.207 works fine. Looks like 59b706ce44db ("perf report: Add warning when libunwind not compiled in") depends on eabad8c6856f ("perf unwind: Do not look just at the global callchain_param.record_mode") which is tricky to backport. I'll just drop 59b706ce44db from 4.9 and 4.4. Thanks for the report! -- Thanks, Sasha