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