Skip to content

MDEV-34195 tests: avoid LP64 MYSQL size assert on x32#4962

Open
aquilamacedo wants to merge 1 commit intoMariaDB:10.11from
aquilamacedo:fixing-MDEV-34195
Open

MDEV-34195 tests: avoid LP64 MYSQL size assert on x32#4962
aquilamacedo wants to merge 1 commit intoMariaDB:10.11from
aquilamacedo:fixing-MDEV-34195

Conversation

@aquilamacedo
Copy link
Copy Markdown
Contributor

x32 defines __x86_64__ but uses the ILP32 ABI, so the LP64 sizeof(MYSQL) == 1272 compile-time assert is selected incorrectly for x32 builds and fails compilation.

Guard the x86_64 check with !defined(__ILP32__) so this assertion only
applies to real LP64 amd64 builds, while keeping the existing Windows amd64 and
i386 checks unchanged.

MDEV-34195

x32 defines __x86_64__ but uses the ILP32 ABI, so the LP64
sizeof(MYSQL) == 1272 compile-time assert is selected incorrectly
and breaks the build.

Guard the x86_64 check with !defined(__ILP32__) so the LP64 size assert
only applies to real amd64 LP64 builds, while leaving the existing
Windows amd64 and i386 checks unchanged.
@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Apr 21, 2026
Copy link
Copy Markdown
Member

@gkodinov gkodinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! This is a preliminary review.

LGTM. Please stand by for the final review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants