Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952109 - dev-db/mariadb-10.6.20 fails to build on X32
Summary: dev-db/mariadb-10.6.20 fails to build on X32
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: x32
  Show dependency tree
 
Reported: 2025-03-26 19:42 UTC by Bruno
Modified: 2025-03-27 10:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix X32 build (mariadb-10.6.20-X32.patch,1.59 KB, patch)
2025-03-26 19:43 UTC, Bruno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno 2025-03-26 19:42:27 UTC
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
Comment 1 Bruno 2025-03-26 19:43:08 UTC
Created attachment 922971 [details, diff]
Patch to fix X32 build
Comment 2 Mike Gilbert gentoo-dev 2025-03-26 22:50:08 UTC
You should report the issue upstream.
Comment 3 Sergei Golubchik 2025-03-27 10:03:19 UTC
https://jira.mariadb.org/browse/MDEV-36412