This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new ca6845248b GH-49486: [CI][C++] Fix Meson build missing tensor
extension sources (#49487)
ca6845248b is described below
commit ca6845248b014db7131ba6dccec5f91b04b4543d
Author: William Ayd <[email protected]>
AuthorDate: Tue Mar 10 16:28:49 2026 -0400
GH-49486: [CI][C++] Fix Meson build missing tensor extension sources
(#49487)
## Summary
- Add `extension/tensor_internal.cc` and
`extension/variable_shape_tensor.cc` to the `arrow_json` sources in
`meson.build`
- Add `variable_shape_tensor.h` to installed headers in
`extension/meson.build`
- These files were present in `CMakeLists.txt` but missing from the Meson
build, causing undefined reference linker errors for `variable_shape_tensor()`,
`IsPermutationTrivial()`, `IsPermutationValid()`, `ComputeStrides()`, and
`SliceTensorBuffer()`
## Test plan
- [ ] Verify the Meson CI build passes without linker errors
* GitHub Issue: #49486
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Authored-by: Will Ayd <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
cpp/src/arrow/extension/meson.build | 1 +
cpp/src/arrow/meson.build | 2 ++
2 files changed, 3 insertions(+)
diff --git a/cpp/src/arrow/extension/meson.build
b/cpp/src/arrow/extension/meson.build
index d5fd9e5a2d..84dafe4bbe 100644
--- a/cpp/src/arrow/extension/meson.build
+++ b/cpp/src/arrow/extension/meson.build
@@ -39,5 +39,6 @@ install_headers(
'opaque.h',
'parquet_variant.h',
'uuid.h',
+ 'variable_shape_tensor.h',
],
)
diff --git a/cpp/src/arrow/meson.build b/cpp/src/arrow/meson.build
index cd113311c8..fe7f11af6f 100644
--- a/cpp/src/arrow/meson.build
+++ b/cpp/src/arrow/meson.build
@@ -507,6 +507,8 @@ if needs_json
'sources': [
'extension/fixed_shape_tensor.cc',
'extension/opaque.cc',
+ 'extension/tensor_internal.cc',
+ 'extension/variable_shape_tensor.cc',
'json/options.cc',
'json/chunked_builder.cc',
'json/chunker.cc',