You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "rok (via GitHub)" <gi...@apache.org> on 2026/07/25 11:12:43 UTC
[I] [C++][R] macOS 11.3 SDK fails to compile std::span iterator range in vector_sort [arrow]
rok opened a new issue, #50636:
URL: https://github.com/apache/arrow/issues/50636
### Describe the bug, including details regarding any error messages, version, and platform.
The `test-r-macos-as-cran` crossbow job fails when compiling `vector_sort.cc` against the macOS 11.3 SDK:
> error: cannot convert initializer list argument to 'std::span<uint64_t>'
This was introduced in #50248 https://github.com/apache/arrow/blob/bc9d1349e091dead2044ed200d3e3e867578b354/cpp/src/arrow/compute/kernels/vector_sort.cc#L234-L248
The macOS 11.3 libc++ implementation uses __wrap_iter for span iterators but only accepts raw pointers in this constructor. Using indices.data() for the internal range iteration, or constructing the range with subspan(), would likely retain the span interface and fix the issue.
```diff
diff --git a/cpp/src/arrow/compute/kernels/vector_sort.cc b/cpp/src/arrow/compute/kernels/vector_sort.cc
- auto range_start = indices.begin();
+ auto range_start = indices.data();
auto range_cur = range_start;
+ const auto range_end = range_start + indices.size();
auto last_value = GetView::LogicalValue(array.GetView(*range_cur - offset));
- while (++range_cur != indices.end()) {
+ while (++range_cur != range_end) {
```
Crossbow failure:
https://github.com/ursacomputing/crossbow/actions/runs/30154135424/job/89669316217#step:9:2303
### Component(s)
C++, R
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [C++][R] macOS 11.3 SDK fails to compile std::span iterator range in vector_sort [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #50636: [C++][R] macOS 11.3 SDK fails to compile std::span iterator range in vector_sort
URL: https://github.com/apache/arrow/issues/50636
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [C++][R] macOS 11.3 SDK fails to compile std::span iterator range in vector_sort [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #50636:
URL: https://github.com/apache/arrow/issues/50636#issuecomment-5127848193
Issue resolved by pull request 50705
https://github.com/apache/arrow/pull/50705
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [C++][R] macOS 11.3 SDK fails to compile std::span iterator range in vector_sort [arrow]
Posted by "KHARSHAVARDHAN-eng (via GitHub)" <gi...@apache.org>.
KHARSHAVARDHAN-eng commented on issue #50636:
URL: https://github.com/apache/arrow/issues/50636#issuecomment-5086976517
I'd like to work on this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org