You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "OldCrow (via GitHub)" <gi...@apache.org> on 2025/07/24 03:01:37 UTC
[I] Compilation Failure - SortAndMarkDuplicate lacks expected .Run() method [arrow]
OldCrow opened a new issue, #47180:
URL: https://github.com/apache/arrow/issues/47180
### Describe the bug, including details regarding any error messages, version, and platform.
Compiling on macOS 10.15 via Homebrew from source.
Compilation Environment
• Compiler: Clang 12.0.0 (from Xcode 12.4)
• Standard: C++17
• SDK: macOS 10.15 SDK
• Architecture: x86_64
The compilation failed on the file vector_rank.cc with this error:
```
/private/tmp/apache-arrow-20250723-46970-b96ya/apache-arrow-20.0.0/cpp/src/arrow/compute/kernels/vector_rank.cc:362:26: error: member reference base type 'SortAndMarkDuplicate' is not a structure or union
.Run());
^~~~
```
Nature of the Error
• This is a C++ syntax/semantics error, not a missing dependency or build configuration issue
• The error indicates that code is trying to call .Run() on something called SortAndMarkDuplicate that the compiler doesn't recognize as a struct/class with that method
• The error occurs within the ARROW_ASSIGN_OR_RAISE macro expansion
This is unlikely to be an issue with older macOS, or availability of C++ features in Apple Clang 12.0.0 per se, given that almost 50 targets successfully compiled before hitting this specific error.
Expected behaviour - successful compilation without errors.
### Component(s)
C++
--
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++] Compilation Failure - SortAndMarkDuplicate lacks expected .Run() method [arrow]
Posted by "OldCrow (via GitHub)" <gi...@apache.org>.
OldCrow commented on issue #47180:
URL: https://github.com/apache/arrow/issues/47180#issuecomment-3115379632
21.0.0 did not resolve the issue. Same problem - from vector_rank.cc at lines 361-363:
```
ARROW_ASSIGN_OR_RAISE(
auto sorted, SortAndMarkDuplicate(ctx, indices_begin, indices_end, input, order,
options.null_placement, needs_duplicates)
.Run());
```
SortAndMarkDuplicate is a template class
```
template <typename InputType>
class SortAndMarkDuplicate : public TypeVisitor {
```
but it appears the compiler can't deduce the template parameter InputType from the constructor arguments.
My system has never installed this program before - I get it as a dependency for glances - either glances has changed their dependencies or it was previously installed as a bottle, I'm not certain. In any case, something about apache-arrow and this compiler is failing. Given that Apple Clang 12.0.0 is not THAT old (2020) and fully supports C++17, and most of C++20 I might guess that apache-arrow requires C++20 and that this is failing specifically due to lack of support for class template argument deduction for alias tempaltes or aggregates.
There may need to be explicit template parameters needed:
`SortAndMarkDuplicate<decltype(input)>(...)`
or a helper function or compilation guards to support older Apple Clang
--
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++] Compilation Failure - SortAndMarkDuplicate lacks expected .Run() method [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #47180: [C++] Compilation Failure - SortAndMarkDuplicate lacks expected .Run() method
URL: https://github.com/apache/arrow/issues/47180
--
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++] Compilation Failure - SortAndMarkDuplicate lacks expected .Run() method [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #47180:
URL: https://github.com/apache/arrow/issues/47180#issuecomment-3116223262
Ah, you're using EOL macOS (10.15).
Sorry. We don't want to maintain EOL platforms.
--
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++] Compilation Failure - SortAndMarkDuplicate lacks expected .Run() method [arrow]
Posted by "OldCrow (via GitHub)" <gi...@apache.org>.
OldCrow commented on issue #47180:
URL: https://github.com/apache/arrow/issues/47180#issuecomment-3113136399
Sure, I can do that. It might take me a day or so to get to it, because I'll want to manually amend the Homebrew formula with the 21.0.0 download path and signature. So I'll have to find a block where I have a bit of extra time to do that tweaking.
--
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++] Compilation Failure - SortAndMarkDuplicate lacks expected .Run() method [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #47180:
URL: https://github.com/apache/arrow/issues/47180#issuecomment-3111892979
Could you try 21.0.0?
--
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