Skip to content

GH-50739: [C++] Make simdjson required for static linking - #50741

Merged
raulcd merged 1 commit into
apache:mainfrom
pitrou:gh50739-jni-simdjson
Jul 31, 2026
Merged

GH-50739: [C++] Make simdjson required for static linking#50741
raulcd merged 1 commit into
apache:mainfrom
pitrou:gh50739-jni-simdjson

Conversation

@pitrou

@pitrou pitrou commented Jul 30, 2026

Copy link
Copy Markdown
Member

Rationale for this change

Unlike RapidJSON, simdjson is not header-only and needs to be linked to explicitly when linking against libarrow.a.

This should fix the JNI builds on the C++ Extra workflow.

Are these changes tested?

Yes, by existing CI builds.

Are there any user-facing changes?

No.

@pitrou pitrou added the CI: Extra: C++ Run extra C++ CI label Jul 30, 2026
@github-actions

Copy link
Copy Markdown

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

Unlike RapidJSON, simdjson is not header-only and needs to be linked to explicitly when linking against libarrow.a.
@pitrou
pitrou force-pushed the gh50739-jni-simdjson branch from b75991f to a754a77 Compare July 30, 2026 12:44
@pitrou
pitrou marked this pull request as ready for review July 30, 2026 15:09
@pitrou
pitrou requested a review from kou July 30, 2026 15:09
Comment on lines +64 to +68
if(ARROW_WITH_SIMDJSON)
if(simdjson_SOURCE STREQUAL "SYSTEM")
list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS simdjson::simdjson)
endif()
endif()

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

FTR, it would be nice if we didn't have to add these declarations separately for Arrow static lib dependencies. @raulcd

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The best place would be to try and add something more automatic into resolve_dependency when using SYSTEM but target names are quite varied and sometimes not yet known when resolving the dependency, example ARROW_ZSTD_LIBZSTD. I'll open an issue maybe we can investigate further or try some things.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I've created #50753

@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Jul 30, 2026
@pitrou

pitrou commented Jul 30, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit -g cpp

@github-actions

Copy link
Copy Markdown

Revision: a754a77

Submitted crossbow builds: ursacomputing/crossbow @ actions-14f6111fc5

Task Status
example-cpp-minimal-build-static GitHub Actions
example-cpp-minimal-build-static-system-dependency GitHub Actions
example-cpp-tutorial GitHub Actions
test-build-cpp-fuzz GitHub Actions
test-conda-cpp GitHub Actions
test-conda-cpp-valgrind GitHub Actions
test-debian-13-cpp-amd64 GitHub Actions
test-debian-13-cpp-i386 GitHub Actions
test-debian-experimental-cpp-gcc-15 GitHub Actions
test-fedora-42-cpp GitHub Actions
test-ubuntu-22.04-cpp GitHub Actions
test-ubuntu-22.04-cpp-bundled GitHub Actions
test-ubuntu-22.04-cpp-emscripten GitHub Actions
test-ubuntu-22.04-cpp-no-threading GitHub Actions
test-ubuntu-24.04-cpp GitHub Actions
test-ubuntu-24.04-cpp-bundled-offline GitHub Actions
test-ubuntu-24.04-cpp-gcc-13-bundled GitHub Actions
test-ubuntu-24.04-cpp-gcc-14 GitHub Actions
test-ubuntu-24.04-cpp-minimal-with-formats GitHub Actions
test-ubuntu-24.04-cpp-thread-sanitizer GitHub Actions

@github-actions github-actions Bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Jul 31, 2026

@raulcd raulcd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Failures are unrelated

@raulcd
raulcd merged commit 43d5f8b into apache:main Jul 31, 2026
70 of 72 checks passed
@raulcd raulcd removed the awaiting changes Awaiting changes label Jul 31, 2026
@github-actions github-actions Bot added the awaiting merge Awaiting merge label Jul 31, 2026
@pitrou
pitrou deleted the gh50739-jni-simdjson branch July 31, 2026 07:56
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