From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 842E116130D for ; Mon, 22 Jul 2024 12:01:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721649662; cv=none; b=AzcTqEfKzCy+fcHbcO0aIjCxEPhzbCLvR7Dg9VC9AKkWj81JPY9GcL9GCF64EbnKXHh2i2kyIJQS4laG60etytdPry+oYuiuTEOpiWsNkys3N5f/bVZBKjX0fZV6k8KPSH44KgTtKHk944EWPEIIuzOaUkIbYCUEh4GDxBflLQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721649662; c=relaxed/simple; bh=iAFffuOYJl0XAEmWv3iyoG8d1UQKByK+0vP6WASv5ts=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t3MGqSjeSdNh9CyzFesXhcfVFl2QPhkNJCz68CPCtVb8yOlkkGLnQJl6pYJUQdXlg/0mls0QuIAThfaJVjhOGNCEa9Hct+vNRAo81mtgYdV0CGc5jHGVw5h2Lg6amcABh3tgUg83LxPJPvPEXDtPY02zjQrfxNhgj2JcOCo1iOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jGFUQnYd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jGFUQnYd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD4E6C4AF0A; Mon, 22 Jul 2024 12:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721649662; bh=iAFffuOYJl0XAEmWv3iyoG8d1UQKByK+0vP6WASv5ts=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jGFUQnYdry7SEIAxq+1J5GOOnnPkbJlKBlfplPIJVRDWeYseA+vlCt35n9mHPjxTH gf7Y8mRNq82LGNRk2btzYIM5IKvZJyw/iVS0VWsMhIUsAdpkBySfd6CRD1g02ErQZw znhj4QcAaIxRwiH1vW0rw2yeVp2rcqxn3Ok7dHDs= Date: Mon, 22 Jul 2024 14:00:59 +0200 From: Greg KH To: Thomas Meyer Cc: stable@vger.kernel.org Subject: Re: 5.15.x: randomize_layout_plugin.c: 'last_stmt' was not declared in this scope? Message-ID: <2024072234-plaza-docile-7a4b@gregkh> References: <2024071653-glider-plated-0a61@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Jul 20, 2024 at 09:54:30PM +0200, Thomas Meyer wrote: > Am Tue, Jul 16, 2024 at 04:08:44PM +0200 schrieb Greg KH: > > On Sun, Jul 14, 2024 at 01:30:16PM +0200, Thomas Meyer wrote: > > > Good day, > > > > > > I wanted to upgrade my kernel to the latest 5.15.162 but it seems to fail with > > > this error message after upgrading to fedora 40, any ideas what could be the > > > problem? > > > > > > $ make > > > HOSTCXX scripts/gcc-plugins/randomize_layout_plugin.so > > > scripts/gcc-plugins/randomize_layout_plugin.c: In function 'bool dominated_by_is_err(const_tree, basic_block)': > > > scripts/gcc-plugins/randomize_layout_plugin.c:693:20: error: 'last_stmt' was not declared in this scope; did you mean 'call_stmt'? > > > 693 | dom_stmt = last_stmt(dom); > > > | ^~~~~~~~~ > > > | call_stmt > > > make[2]: *** [scripts/gcc-plugins/Makefile:48: scripts/gcc-plugins/randomize_layout_plugin.so] Error 1 > > > make[1]: *** [scripts/Makefile.build:552: scripts/gcc-plugins] Error 2 > > > make: *** [Makefile:1246: scripts] Error 2 > > > > > > Maybe a problem with gcc 14? > > This seems to fix the compiler error: > https://lore.kernel.org/all/20230811060545.never.564-kees@kernel.org/ Ah, this is a gcc14 issue. I'll backport this, but odds are you will have other problems using this compiler with such an old kernel tree. thanks, greg k-h