Upstream commit https://github.com/MariaDB/server/commit/bddbef3573349b0565c43c27beba47c89358f39f introduces assemble code for stack pointer arithmetic but does only cover x86_64 and i686 cases, thus causing a "movq" operation on a type of mismatching size. /usr/bin/x86_64-pc-linux-gnux32-gcc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -Imysql_build/include -Imysql/include -Imysql/mysys -O2 -pipe -Wall -ggdb -std=gnu17 -fno-strict-aliasing -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -fno-omit-frame-pointer -DDBUG_OFF -Wall -Wdeclaration-after-statement -Wenum-compare -Wenum-conversion -Wextra -Wformat-security -Wmissing-braces -Wno-format-truncation -Wno-init-self -Wno-nonnull-compare -Wno-unused-parameter -Wvla -Wwrite-strings -std=gnu99 -fPIC -MD -MT mysys/CMakeFiles/mysys.dir/my_stack.c.o -MF mysys/CMakeFiles/mysys.dir/my_stack.c.o.d -o mysys/CMakeFiles/mysys.dir/my_stack.c.o -c mysql/mysys/my_stack.c mysql/include/my_stack_alloc.h: Assembler messages: mysql/include/my_stack_alloc.h:42: Error: operand type mismatch for `movq' Reproducible: Always
Created attachment 922971 [details, diff] Patch to fix X32 build
You should report the issue upstream.
https://jira.mariadb.org/browse/MDEV-36412
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e97d00c2296d746ebc8afed53d04a9d234adf949 commit e97d00c2296d746ebc8afed53d04a9d234adf949 Author: Petr Vaněk <arkamar@gentoo.org> AuthorDate: 2025-05-08 09:43:09 +0000 Commit: Petr Vaněk <arkamar@gentoo.org> CommitDate: 2025-05-08 13:28:25 +0000 dev-db/mariadb: add 10.6.22 Closes: https://bugs.gentoo.org/952109 Signed-off-by: Petr Vaněk <arkamar@gentoo.org> dev-db/mariadb/Manifest | 1 + dev-db/mariadb/mariadb-10.6.22.ebuild | 1345 +++++++++++++++++++++++++++++++++ 2 files changed, 1346 insertions(+)