From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 013EC158041 for ; Tue, 12 Mar 2024 08:00:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FD62E29CA; Tue, 12 Mar 2024 08:00:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 95F9EE29CA for ; Tue, 12 Mar 2024 08:00:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 84CE1335D60 for ; Tue, 12 Mar 2024 08:00:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ABF3713DE for ; Tue, 12 Mar 2024 08:00:48 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1710230418.3b08335ec801c4736369fa57bce00c1c8669682d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/llvm/llvm-17.0.6.ebuild sys-devel/llvm/llvm-18.1.0.ebuild sys-devel/llvm/llvm-19.0.0.9999.ebuild sys-devel/llvm/llvm-19.0.0_pre20240302.ebuild sys-devel/llvm/llvm-19.0.0_pre20240309.ebuild X-VCS-Directories: sys-devel/llvm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3b08335ec801c4736369fa57bce00c1c8669682d X-VCS-Branch: master Date: Tue, 12 Mar 2024 08:00:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 584252f0-b140-41ff-9a8e-e5e1a13f5ffe X-Archives-Hash: e5383a8b494431996f4873670392a2e2 commit: 3b08335ec801c4736369fa57bce00c1c8669682d Author: Sam James gentoo org> AuthorDate: Tue Mar 12 07:57:41 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Mar 12 08:00:18 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b08335e sys-devel/llvm: filter LTO for GCC again These failures aren't GCC specific but only GCC has these warnings implemented and it's less likely that LLVM will miscompile itself because people will test it more, even if the issue is UB in LLVM. Filter to avoid people hitting roadblocks on a common package when using safe LTO flags (-Werror=...). Closes: https://bugs.gentoo.org/917536 Closes: https://bugs.gentoo.org/926529 Signed-off-by: Sam James gentoo.org> sys-devel/llvm/llvm-17.0.6.ebuild | 7 ++++++- sys-devel/llvm/llvm-18.1.0.ebuild | 7 ++++++- sys-devel/llvm/llvm-19.0.0.9999.ebuild | 7 ++++++- sys-devel/llvm/llvm-19.0.0_pre20240302.ebuild | 7 ++++++- sys-devel/llvm/llvm-19.0.0_pre20240309.ebuild | 7 ++++++- 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/sys-devel/llvm/llvm-17.0.6.ebuild b/sys-devel/llvm/llvm-17.0.6.ebuild index c5159086d72c..bb3bd996f1e3 100644 --- a/sys-devel/llvm/llvm-17.0.6.ebuild +++ b/sys-devel/llvm/llvm-17.0.6.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit cmake llvm.org multilib-minimal pax-utils python-any-r1 +inherit cmake flag-o-matic llvm.org multilib-minimal pax-utils python-any-r1 inherit toolchain-funcs DESCRIPTION="Low Level Virtual Machine" @@ -338,6 +338,11 @@ get_distribution_components() { } multilib_src_configure() { + # ODR violations (bug #917536, bug #926529). Just do it for GCC for now + # to avoid people grumbling. GCC is, anecdotally, more likely to miscompile + # LLVM with LTO anyway (which is not necessarily its fault). + tc-is-gcc && filter-lto + local ffi_cflags ffi_ldflags if use libffi; then ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi) diff --git a/sys-devel/llvm/llvm-18.1.0.ebuild b/sys-devel/llvm/llvm-18.1.0.ebuild index 4c955a46c3e0..af10d82f811a 100644 --- a/sys-devel/llvm/llvm-18.1.0.ebuild +++ b/sys-devel/llvm/llvm-18.1.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit cmake llvm.org multilib-minimal pax-utils python-any-r1 +inherit cmake flag-o-matic llvm.org multilib-minimal pax-utils python-any-r1 inherit toolchain-funcs DESCRIPTION="Low Level Virtual Machine" @@ -346,6 +346,11 @@ get_distribution_components() { } multilib_src_configure() { + # ODR violations (bug #917536, bug #926529). Just do it for GCC for now + # to avoid people grumbling. GCC is, anecdotally, more likely to miscompile + # LLVM with LTO anyway (which is not necessarily its fault). + tc-is-gcc && filter-lto + local ffi_cflags ffi_ldflags if use libffi; then ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi) diff --git a/sys-devel/llvm/llvm-19.0.0.9999.ebuild b/sys-devel/llvm/llvm-19.0.0.9999.ebuild index 5031f93dd455..b4633658a186 100644 --- a/sys-devel/llvm/llvm-19.0.0.9999.ebuild +++ b/sys-devel/llvm/llvm-19.0.0.9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit cmake llvm.org multilib-minimal pax-utils python-any-r1 +inherit cmake flag-o-matic llvm.org multilib-minimal pax-utils python-any-r1 inherit toolchain-funcs DESCRIPTION="Low Level Virtual Machine" @@ -345,6 +345,11 @@ get_distribution_components() { } multilib_src_configure() { + # ODR violations (bug #917536, bug #926529). Just do it for GCC for now + # to avoid people grumbling. GCC is, anecdotally, more likely to miscompile + # LLVM with LTO anyway (which is not necessarily its fault). + tc-is-gcc && filter-lto + local ffi_cflags ffi_ldflags if use libffi; then ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi) diff --git a/sys-devel/llvm/llvm-19.0.0_pre20240302.ebuild b/sys-devel/llvm/llvm-19.0.0_pre20240302.ebuild index 5031f93dd455..b4633658a186 100644 --- a/sys-devel/llvm/llvm-19.0.0_pre20240302.ebuild +++ b/sys-devel/llvm/llvm-19.0.0_pre20240302.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit cmake llvm.org multilib-minimal pax-utils python-any-r1 +inherit cmake flag-o-matic llvm.org multilib-minimal pax-utils python-any-r1 inherit toolchain-funcs DESCRIPTION="Low Level Virtual Machine" @@ -345,6 +345,11 @@ get_distribution_components() { } multilib_src_configure() { + # ODR violations (bug #917536, bug #926529). Just do it for GCC for now + # to avoid people grumbling. GCC is, anecdotally, more likely to miscompile + # LLVM with LTO anyway (which is not necessarily its fault). + tc-is-gcc && filter-lto + local ffi_cflags ffi_ldflags if use libffi; then ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi) diff --git a/sys-devel/llvm/llvm-19.0.0_pre20240309.ebuild b/sys-devel/llvm/llvm-19.0.0_pre20240309.ebuild index 5031f93dd455..b4633658a186 100644 --- a/sys-devel/llvm/llvm-19.0.0_pre20240309.ebuild +++ b/sys-devel/llvm/llvm-19.0.0_pre20240309.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit cmake llvm.org multilib-minimal pax-utils python-any-r1 +inherit cmake flag-o-matic llvm.org multilib-minimal pax-utils python-any-r1 inherit toolchain-funcs DESCRIPTION="Low Level Virtual Machine" @@ -345,6 +345,11 @@ get_distribution_components() { } multilib_src_configure() { + # ODR violations (bug #917536, bug #926529). Just do it for GCC for now + # to avoid people grumbling. GCC is, anecdotally, more likely to miscompile + # LLVM with LTO anyway (which is not necessarily its fault). + tc-is-gcc && filter-lto + local ffi_cflags ffi_ldflags if use libffi; then ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi)