Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2275247ybd; Mon, 24 Jun 2019 03:45:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwwlNOns0s3p+cIf0hTa9XIwz2dUjQ+yyUXaWo7Y5kN16x1cSjq3si8si1k4DhLWggEVmI X-Received: by 2002:a17:902:3103:: with SMTP id w3mr38057380plb.84.1561373134442; Mon, 24 Jun 2019 03:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561373134; cv=none; d=google.com; s=arc-20160816; b=BR9TeUSUQYoJ9PRunDqaTiVEKGSmFyiqboXMjpYwfc1qUoknRCgwFlODPkXolbBWl3 1mGNtVAZanrQEJ4oIu0cHd7AmDglqjJ3Kv2Ef2jDsisIn3nk3ir4ElyfOENKNi16e9HP nWfMGA7QVGjzaZpNxQ3fOoGtGiHXFQyzhEdw9DMAcqwRhUpOpFbe46NKO23tmS2urq3d r8I0lAZmUn4nzcRE0NoCaus7tf+eYGNAj7Yie2YFc3MkSq/3CGcFCicnk1A5+mzAPc/P 2GVjcL3PPB7Yi4lqkuI1wKy3IWF7j+hvkygRPnwBwk+pNGSVmo2hB5bGLBappCJAb0LB E+jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Q883E1TSKpw+8Z8/vLIrUQrvnvTA4vR/WV9GJinwpYU=; b=bZrTRJUsNg/ANCDHoeoZIAU0jnqWFf5PcqrK4BmZkOwCd4mUSVwdxG4hkllqKxZpon LrXr/bnMzt6ssglTM0L5Mk4cRiWDydCQiFmFYV4H0xJKxdjEoE5dpGl7++C4cXpS6Gq2 99zT3F183UJz6ENNf7YlglDyN7Z/p9csub4ALklcrrEn8RnE0XJ0Qv5zB9ODRcVeQpRS gSfYm3PzIncvDpybbuoLf+tPp2wYbRSZtaOe+AQes6oOWHMvD2hwz56TUq/edAb007C7 rbxVwz9wzmeHYNO8pL6tjx5aUg9pSFPoMULmVSSn3ALNXkM34Hw37XwWZkDt4lKdk9SZ 1mxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=Xaw+C38e; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si11028374pfc.237.2019.06.24.03.45.18; Mon, 24 Jun 2019 03:45:34 -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=@cloudflare.com header.s=google header.b=Xaw+C38e; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729411AbfFXKms (ORCPT + 99 others); Mon, 24 Jun 2019 06:42:48 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:38358 "EHLO mail-wm1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729397AbfFXKmr (ORCPT ); Mon, 24 Jun 2019 06:42:47 -0400 Received: by mail-wm1-f54.google.com with SMTP id s15so12831873wmj.3 for ; Mon, 24 Jun 2019 03:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q883E1TSKpw+8Z8/vLIrUQrvnvTA4vR/WV9GJinwpYU=; b=Xaw+C38e/CezApMz3QojV7i85dRjg5/G7ci9YV2sEkBDlquzKE3G7aYXfiODpMzR2n jENoHuyYNVLtcpuh4hVtnOmAG5Qe+hup+jI3lwgM1rGSyuS//JYi60L24r7bvaTHMz4N ZJFx1wysOiBWC5RsWFsGsQBdhf2yqXzJvTcv4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q883E1TSKpw+8Z8/vLIrUQrvnvTA4vR/WV9GJinwpYU=; b=lscfcvlf5qLy3s5QbzIaJfq20eatzUD5f2q8qYKLsYA/EuXlEMdkPfXs7XocYxAuEj o7FgH9MSi4qgp7KZMZqKisSzPf+9GO3fSUzqTEmUL878shaBUMNtnod46sZitdeFBafx syGXn40k/sAeZ2ZATR5YRGR5Zza/eAoN49EFl/o3khUkMwd9zwsL5ArnmIdlfjNV3I4s +0M5vtGXbq4Dh/gJnr53S3e3BYRnD1QbLXJ1gScMm6oh034APKLCfFtxLMRqAAJ6M6Gx tqBFkWqRmeolol9xIh2YWhAwXgq3hV0Og9pJpW3TOYQmQktRjmYfu5MOZzoFRQ13c7zQ aT2g== X-Gm-Message-State: APjAAAXQfJ2eZXmrK6l8YE14aky4gw8PZpz68pvpfxIY9mXTdhUDC4Bv IKgefWNgZQi74zJ1xeZDcLpR7s4QH2yZYpnMfOhidg== X-Received: by 2002:a1c:7d56:: with SMTP id y83mr15845237wmc.77.1561372964887; Mon, 24 Jun 2019 03:42:44 -0700 (PDT) MIME-Version: 1.0 References: <20190517073813.GB2589@hirez.programming.kicks-ass.net> <20190517085126.GA3249@kroah.com> <20190517152200.GI8945@kernel.org> <4FE2D490-F379-4CAE-9784-9BF81B7FE258@kernel.org> <20190610151407.GS21245@kernel.org> <20190610152542.GA4132@kroah.com> <20190610191417.GW21245@kernel.org> In-Reply-To: <20190610191417.GW21245@kernel.org> From: Ignat Korchagin Date: Mon, 24 Jun 2019 11:42:34 +0100 Message-ID: Subject: Re: Linux 4.19 and GCC 9 To: Greg KH Cc: Arnaldo Carvalho de Melo , Ivan Babrou , Miguel Ojeda , Peter Zijlstra , Josh Poimboeuf , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel , Linux Kbuild mailing list , kernel-team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, > > For us it seems applying the following 4 mainline patches makes 4.19.x > > branch perf compile with GCC-9: > > > > 4d0f16d059ddb91424480d88473f7392f24aebdc: perf ui helpline: Use > > strlcpy() as a shorter form of strncpy() + explicit set nul > > b6313899f4ed2e76b8375cf8069556f5b94fbff0: perf help: Remove needless > > use of strncpy() > > 5192bde7d98c99f2cd80225649e3c2e7493722f7: perf header: Fix unchecked > > usage of strncpy() > > 97acec7df172cd1e450f81f5e293c0aa145a2797: perf data: Fix 'strncat may > > truncate' build failure with recent gcc > > > > I also checked that 4.19.49 compiles fine with GCC 9, although with a > > lot of warnings, mostly from objtool, like "warning: objtool: > > sock_register()+0xd: sibling call from callable instruction with > > modified stack frame". But it's a start. > > > > Can we apply the above-mentioned patches, please? > I'll look into these after the next round of kernels are released. I Did you by any chance forget to queue these patches? :) (the build is still broken for GCC 9.1) > guess I'll go find a distro that has gcc9 on it to actually test > things... BTW, Arch already has GCC 9.1 package, so no need to compile your own anymore for testing: https://www.archlinux.org/packages/core/x86_64/gcc/ Regards, Ignat