From d72826a5df63d0f2a96a15845537a65ce12a04db Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 8 Aug 2025 09:18:49 +0100 Subject: dev-db/mariadb: workaround unaligned access Pass -fno-tree-vectorize with GCC 16 for now. I've reported it upstream to MariaDB and they've acknowledged the problem. Note that the "same" code is in MySQL but that was fixed quite some years back. Bug: https://jira.mariadb.org/browse/MDEV-37148 Closes: https://bugs.gentoo.org/959423 Signed-off-by: Sam James --- dev-db/mariadb/mariadb-10.6.22.ebuild | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dev-db/mariadb/mariadb-10.6.22.ebuild') diff --git a/dev-db/mariadb/mariadb-10.6.22.ebuild b/dev-db/mariadb/mariadb-10.6.22.ebuild index 7a90d25a4e6c..762f9c2b4679 100644 --- a/dev-db/mariadb/mariadb-10.6.22.ebuild +++ b/dev-db/mariadb/mariadb-10.6.22.ebuild @@ -315,6 +315,9 @@ src_configure() { # bug #283926, with GCC4.4, this is required to get correct behavior. append-flags -fno-strict-aliasing + # Workaround for bug #959423 (https://jira.mariadb.org/browse/MDEV-37148) + tc-is-gcc && [[ $(gcc-major-version) -eq 16 ]] && append-flags -fno-tree-vectorize + CMAKE_BUILD_TYPE="RelWithDebInfo" # debug hack wrt #497532 -- cgit v1.2.3