Skip to content

GH-52022: [C++] Bump bundled xsimd to 14.3.0 - #52023

Open
jeroen wants to merge 1 commit into
apache:mainfrom
jeroen:GH-52022-bump-xsimd-14.3.0
Open

jeroen wants to merge 1 commit into
apache:mainfrom
jeroen:GH-52022-bump-xsimd-14.3.0

Conversation

@jeroen

@jeroen jeroen commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Rationale for this change

xsimd 14.2.0 includes the MSVC-only <arm64_neon.h> header whenever _WIN32 and NEON64 are defined:

#if defined(_WIN32) && XSIMD_WITH_NEON64
#include <arm64_neon.h>

_WIN32 is also defined by mingw-w64 toolchains (e.g. MSYS2 clangarm64, llvm-mingw), which do not provide <arm64_neon.h>, so building Arrow C++ for Windows aarch64 with such a toolchain fails on the missing header. xsimd 14.3.0 narrows the condition to defined(_MSC_VER) && !defined(__clang__), so mingw-w64 builds use <arm_neon.h>.

We currently work around this in the R Windows toolchain (https://github.com/r-windows/ucrt-libs) by patching versions.txt to 14.3.0 before building Arrow.

What changes are included in this PR?

Bump ARROW_XSIMD_BUILD_VERSION and ARROW_XSIMD_BUILD_SHA256_CHECKSUM in cpp/thirdparty/versions.txt to xsimd 14.3.0. I left the minimum required version for system xsimd (14.2.0 in ThirdpartyToolchain.cmake) unchanged, since the issue only affects the bundled build.

Are these changes tested?

Not run locally; relying on CI to verify that Arrow still builds and passes tests against xsimd 14.3.0. The checksum was computed from https://github.com/xtensor-stack/xsimd/archive/14.3.0.tar.gz.

Are there any user-facing changes?

No.

xsimd 14.2.0 includes the MSVC-only <arm64_neon.h> whenever _WIN32 is
defined, which breaks Windows aarch64 builds with mingw-w64 toolchains
that don't provide that header. xsimd 14.3.0 restricts it to MSVC.
Copilot AI balanced review requested due to automatic review settings October 7, 2026 09:23
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

⚠️ GitHub issue #52022 has been automatically assigned in GitHub to PR creator.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

No concrete defects were identified, but the archive checksum and Arrow build compatibility remain independently unverified.

Review effort: Balanced
Findings: None

What changed in this PR

Updates bundled xsimd to fix Windows ARM64 builds using mingw-w64 toolchains.

Changes:

  • Bumps bundled xsimd from 14.2.0 to 14.3.0 and updates its SHA256 checksum.
  • Leaves the minimum system xsimd version unchanged.
File Description
cpp/​thirdparty/​versions.txt Updates the bundled xsimd version and checksum.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants