Skip to content

Force alignment on arm32 #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

tianon
Copy link
Member

@tianon tianon commented Apr 1, 2025

This fixes our test failures on Debian-based arm32v7, and fixes most of our test failures on Alpine-based arm32v{6,7}, leaving the notable t/restart.t which we've had issues with prior (memcached/memcached#799).

See also memcached/memcached#1220 (comment) (and surrounding chatter).

@tianon
Copy link
Member Author

tianon commented Apr 1, 2025

Hmm, as-written this will technically hit arm32v5 too, which doesn't need it. 🤔

@tianon tianon force-pushed the arm32-alignment branch from a3a7f16 to 5e5608a Compare April 1, 2025 21:47
This fixes our test failures on Debian-based arm32v7, and fixes *most* of our test failures on Alpine-based arm32v{6,7}, leaving the notable `t/restart.t` which we've had issues with prior.
@tianon tianon force-pushed the arm32-alignment branch from 5e5608a to 1336cbc Compare April 1, 2025 21:50
@@ -91,6 +91,10 @@ RUN set -eux; \
cd /usr/src/memcached; \
\
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
# https://github.com/memcached/memcached/issues/1220#issuecomment-2770251664: on arm32, we need to override the upstream alignment check (which fails to detect the need for alignment on arm32v6+ on our hardware for some reason, which then causes us to fail the tests 😭)
case "$gnuArch" in \
arm-*abihf) export ac_cv_c_alignment=need ;; \
Copy link
Member Author

Choose a reason for hiding this comment

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

The two values we need to capture here are arm-linux-gnueabihf and arm-linux-musleabihf (vs arm-linux-gnueabi which we not want to match).

@yosifkit yosifkit merged commit d6fbe6b into docker-library:master Apr 1, 2025
6 checks passed
@yosifkit yosifkit deleted the arm32-alignment branch April 1, 2025 23:25
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Apr 1, 2025
Changes:

- docker-library/memcached@f8aa037: Merge pull request docker-library/memcached#104 from infosiftr/backport-extstore-test-fixes
- docker-library/memcached@d6fbe6b: Merge pull request docker-library/memcached#103 from infosiftr/arm32-alignment
- docker-library/memcached@f3f961a: Backport upstream extstore test improvements
- docker-library/memcached@1336cbc: Force alignment on arm32
- docker-library/memcached@9152f80: Add back arm32v6+v7 so we can try them again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants