Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1198969yba; Thu, 16 May 2019 16:29:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqx73GWn6nLTNxv4ntpTy0DQ3p+JyH8dJFAJtV/9BjTAVh90dBsPmjL670mmXiQT2jD4gQhJ X-Received: by 2002:a17:902:a40b:: with SMTP id p11mr25600560plq.306.1558049392188; Thu, 16 May 2019 16:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558049392; cv=none; d=google.com; s=arc-20160816; b=0JRgukJP1D0KvzOxVRY/5oN1JtgxKHUxdXrsuuCwLuCHGN8VvDBeIeF2jpNBYbeCpt TenQ7AkfHyVFSfXhrPzKbaDemj7T2bgVtyZeb8RN75HxqFhvvMojNcK+qHgdFjxftbJm HqePu+3h9Owky2s8O58soQIkCX5MKKojpDciU5RSheXhewhYKCH3YfKtHdhFaVlmvR3c KGfdsXL3Dzv/iNXqn7qIZ723rsLfeSXjTrcnzrmgDEq9aeljRNyG4J8nMJ/8tv/vuQ23 Pdz//TOmv7+O6ciYRK8WWoRR7O3dWfjK6nVahs8VvELhLstSse5XiQYMRXYxT9jqyJai 3TTQ== 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=iqCUFlS+Yjw8tPSXYr3TsbX6qnkjSzlez9AobiS2yvw=; b=t2E+JbmVPzI0Ll4u7Mu081gWsYiJVbJwJHl8LjshkjVdwLbl/1dxf85Rj6O61R+2mY BMLXIydY369kIjqinEcotxfqZJy5Zc2G+9Zb1Zn/LgiEcFbobIfEU01BE8+/jZFtMe1X DkLmOzrRla4qnvaZLH6nbgTZBl+cL+yLiCwryIhgfLROyweH2Fwx1veWrj2fDugVDMAf uU9pGI2VaQYf27SS7TswEF8CeeRXyfZ+l+CY02+EDjK6NMI9w+ef2WS6/axhxeEAHa4f xRTg18KOw64wf6MHl9vQP+jhn+cSe7Nws41x4vAFdJzZrQXsGiy1Q1N6ldTA1lEYiFJ0 RXjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MTJ2ON2k; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d21si5288560pgl.591.2019.05.16.16.29.36; Thu, 16 May 2019 16:29:52 -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=@gmail.com header.s=20161025 header.b=MTJ2ON2k; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728287AbfEPVVI (ORCPT + 99 others); Thu, 16 May 2019 17:21:08 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:41554 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727198AbfEPVVI (ORCPT ); Thu, 16 May 2019 17:21:08 -0400 Received: by mail-lf1-f68.google.com with SMTP id d8so3739978lfb.8; Thu, 16 May 2019 14:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iqCUFlS+Yjw8tPSXYr3TsbX6qnkjSzlez9AobiS2yvw=; b=MTJ2ON2kOqc8B763X/6RcOIqkSknfKdLZuyUQ2Vnv/7dQW+2eFD7Aq8qziD9K2qwDW QSXz8/0ZlIDhuBvqhiwvpbpX71Y2SVB3plRIUTd0kto92LMJOltJD3RwhiUZHU+16Ire YVVym49y9ToMsZC2DPz2oclt5zTeuZMD3ObXvXqyGyY95rnhCiTBznw7ExbrFbUxmjiQ cDySVbD3XFQnjwibldD8oX+UP+bZbs1NKekJIhAPJvAjuv7eaXsFoQgCrJmuG5ImmQRt +ObMIrwMP5RmdACigFz7XaD7iqloyibbam7n/JvgsH/RlEMMk+8AXaY/tLDBiIXeuBdS L5ng== 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=iqCUFlS+Yjw8tPSXYr3TsbX6qnkjSzlez9AobiS2yvw=; b=Hxh3gcGx/9gRhWGww2FH0u6qYiEgleCLZuIDwVdAX20+u1LP5GSXsqCINf/VK2zipo JSQUdsDCqQJUvksdQA0oaaPJNsCX5CuDKmNAyhZylSfDJ36S2Y11kYjms+amoejQ0YZ+ Z7UaFRO8jy6mNGH3ryD5tJ8EqXfuDwgAO4jbMTzoWcWJVMNbdSb4hrbzbC23CKG1clqK H0XCpwqcKjaTYxK1RNTjWerqIZ74KH/XuP43nU1PjHAWHvKIZzmeRN59iTZ/ABvyenew onPyg5g0k4d6Y8xXVKxH221G3NoVBraIaPuNtHFx4fsdrD3l5cH0M9e5evwp1CDvLNif Z3fA== X-Gm-Message-State: APjAAAWK576TSBaDBN4AZnO4KnKVE7Yv52IV8NV80YpU4i218il3qB2W PBBWYwr3KIB0d5zkuyZB62iyDgcw2R6KDzulKoM= X-Received: by 2002:ac2:4d0d:: with SMTP id r13mr236704lfi.30.1558041665385; Thu, 16 May 2019 14:21:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Miguel Ojeda Date: Thu, 16 May 2019 23:20:54 +0200 Message-ID: Subject: Re: Linux 4.19 and GCC 9 To: Ivan Babrou , Josh Poimboeuf , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel , Greg KH Cc: 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, On Thu, May 16, 2019 at 10:11 PM Ivan Babrou wrote: > > Hey Miguel, > > The first error is during perf build process (make -C tools/perf install): > > [17:38:21] In file included from /usr/include/string.h:635, > [17:38:21] from ui/tui/helpline.c:4: > [17:38:21] In function 'strncpy', > [17:38:21] inlined from 'tui_helpline__push' at ui/tui/helpline.c:27:2: > [17:38:21] /usr/include/x86_64-linux-gnu/bits/string3.h:126:10: error: > '__builtin_strncpy' specified bound 512 equals destination size > [-Werror=stringop-truncation] > [17:38:21] 126 | return __builtin___strncpy_chk (__dest, __src, > __len, __bos (__dest)); > [17:38:21] | > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > [17:38:21] cc1: all warnings being treated as errors > [17:38:21] /cfsetup_build/build/linux-4.19.43/tools/build/Makefile.build:96: > recipe for target '/cfsetup_build/build/amd64/perf/ui/tui/helpline.o' > failed > [17:38:21] mv: cannot stat > '/cfsetup_build/build/amd64/perf/ui/tui/.helpline.o.tmp': No such file > or directory > [17:38:21] make[6]: *** > [/cfsetup_build/build/amd64/perf/ui/tui/helpline.o] Error 1 > [17:38:21] make[5]: *** [tui] Error 2 > [17:38:21] make[4]: *** [ui] Error 2 > > I see that stringop-truncation is disabled in toplevel Makefile, but > not sure if perf is using it. Ah, alright -- CC'ing the perf maintainers then in case they want to chime in. > If I disable perf build, the next thing is warnings like these: > > mm/slub.o: warning: objtool: init_cache_random_seq()+0x36: sibling > call from callable instruction with modified stack frame > mm/slub.o: warning: objtool: slab_out_of_memory()+0x3b: sibling call > from callable instruction with modified stack frame > mm/slub.o: warning: objtool: slab_pad_check.part.0()+0x7c: sibling > call from callable instruction with modified stack frame > mm/slub.o: warning: objtool: check_slab()+0x1c: sibling call from > callable instruction with modified stack frame AFAIK those are non-critical, i.e. stack traces may be wrong (or not), but it does not mean the generated kernel itself is wrong. CC'ing the objtool maintainers too. > After patching that I see: > > In file included from /tmp/build/linux-4.19.43/arch/x86/crypto/aes_glue.c:6: > /tmp/build/linux-4.19.43/include/linux/module.h:133:6: warning: > 'init_module' specifies less restrictive attribute than its target > 'aes_init': 'cold' [-Wmissing-attributes] > 133 | int init_module(void) __attribute__((alias(#initfn))); > | ^~~~~~~~~~~ > /tmp/build/linux-4.19.43/arch/x86/crypto/aes_glue.c:64:1: note: in > expansion of macro 'module_init' > 64 | module_init(aes_init); > | ^~~~~~~~~~~ > /tmp/build/linux-4.19.43/arch/x86/crypto/aes_glue.c:54:19: note: > 'init_module' target declared here > 54 | static int __init aes_init(void) > | ^~~~~~~~ Ditto here, those can be ignored too (unless something has changed in GCC that I am not aware of). > I'm not really comfortable with all the warnings, so I stopped the > build, maybe it indeed compiles through the end. It does (on my GCC 9.1.1 compiled from source). I am not sure what is the policy on backporting (someone from the stable team can probably answer that; Greg?), but note that this kernel (and 4.20 and 5.0) was released before GCC 9 did -- and some (all?) of this was cleaned up before GCC 9 itself released, so we were ahead of it :-) Cheers, Miguel