Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2925258ybi; Mon, 10 Jun 2019 00:48:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqysdqc7nhzOrfaGdzE/+GNZ92wRi8wmxNjvn/rsaRaVyT9YzP7MXL8hLy1SZB/yb6jnfYT4 X-Received: by 2002:a17:90a:9b08:: with SMTP id f8mr20100984pjp.103.1560152896204; Mon, 10 Jun 2019 00:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560152896; cv=none; d=google.com; s=arc-20160816; b=PZXPAq74H2/1LLxERzbeC0Z3TEPCFaE4EpqqZno907hp2eqgkKPXp7+gv0RJ71xexD 5dH/EYd2qjSCsb+2HhBGVpT399MCwf3JXspUOqPJ6XvBE7KrCjxcIcOnmIVt7GxinhEb 1kFWdw8R8s80cqDrQSm2Afyy7Pd4exnRpaFZaXoakcccJRwvmYMkFjQmzf0FsUohIDm6 hNEIeaNnIjCkSEvWcJweKbgtrU5Hac5T9SNnGFz3oGXNlYhnD/g3BkjOVWdyCBcu41ND dcqsuoha2wy0hauGyaLXNaPdWLieEBi6gRbOXgV41jbJAquksl8v51lJBHCfHKjLfOac XbyQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xZHZap5N8g3zeKzSXifDfCmnMeCi6xZvvpVmQZryOg8=; b=vlVrcfNRBf9WV7sJKXEg3hJzaUUolL9JE0XvNPTgKE4CJleIim5zE3/ghHY1GdnH56 NT6M2nEO8Xk9lGdth9VIrxHiUYvxlg600d4H6DR5M1bWHwi7LLI38XvXruxLyOGUz7lW a/L15cKbmaO1wN2h/X71/a3elnUwcYeD5eYgK7OsQa7VRm4NxAHJF3vroVgJ/ZvQ1uBp e5mDbTw3OzmQgaiI+pGHt8S805SLHS5i4+GVWvW4ToQ+l8UnvS9TxnPZAGPDc8yls+RK VsAW64QMgGfn3bviZKy/LbZlnVSCBBUHH73Mmorxyya1+6IQ3mX4PKE12mBT32Gwpl9H styg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qFo+yHa1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u65si9803928pfu.87.2019.06.10.00.47.59; Mon, 10 Jun 2019 00:48:16 -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=@kernel.org header.s=default header.b=qFo+yHa1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388206AbfFJHpO (ORCPT + 99 others); Mon, 10 Jun 2019 03:45:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:32898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388071AbfFJHpN (ORCPT ); Mon, 10 Jun 2019 03:45:13 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 77EE4206E0; Mon, 10 Jun 2019 07:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560152713; bh=uABGjq1tt7z9R1C6KONZDeT1GQ0wkANWUseKVehYaAo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qFo+yHa1t0xvAH7g6BUH7Le35qZzZIy0eVkfbmPxDootfyIzXdpWCe/p+5kxGQshd YebDXyN6S4B/GpLjLxH4vtGQw0bGashUuWjY5U32L0vYlvEPovTileL5TeyyVDpMpd OtRJghmswIw0dtJHwqygGXJUCbJuCNzKGqcqCo2U= Date: Mon, 10 Jun 2019 09:45:10 +0200 From: Greg KH To: Ivan Babrou Cc: Arnaldo Carvalho de Melo , Miguel Ojeda , Peter Zijlstra , Josh Poimboeuf , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel , Linux Kbuild mailing list , kernel-team Subject: Re: Linux 4.19 and GCC 9 Message-ID: <20190610074510.GA24746@kroah.com> References: <20190517050931.GB32367@kroah.com> <20190517073813.GB2589@hirez.programming.kicks-ass.net> <20190517085126.GA3249@kroah.com> <20190517152200.GI8945@kernel.org> <4FE2D490-F379-4CAE-9784-9BF81B7FE258@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 10, 2019 at 12:21:51AM -0700, Ivan Babrou wrote: > Looks like 4.19.49 received some patches for GCC 9+, but unfortunately > perf still doesn't want to compile: > > [07:15:32]In file included from /usr/include/string.h:635, > [07:15:32] from util/debug.h:7, > [07:15:32] from builtin-help.c:15: > [07:15:32]In function 'strncpy', > [07:15:32] inlined from 'add_man_viewer' at builtin-help.c:192:2, > [07:15:32] inlined from 'perf_help_config' at builtin-help.c:284:3: > [07:15:32]/usr/include/x86_64-linux-gnu/bits/string3.h:126:10: error: > '__builtin_strncpy' output truncated before terminating nul copying as > many bytes from a string as its length [-Werror=stringop-truncation] > [07:15:32] 126 | return __builtin___strncpy_chk (__dest, __src, __len, > __bos (__dest)); > [07:15:32] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > [07:15:32]builtin-help.c: In function 'perf_help_config': > [07:15:32]builtin-help.c:187:15: note: length computed here > [07:15:32] 187 | size_t len = strlen(name); > [07:15:32] | ^~~~~~~~~~~~ > [07:15:32]cc1: all warnings being treated as errors Any chance in finding a patch in Linus's tree that resolves this? I don't have gcc9 on my systems here yet to test this. thanks, greg k-h