akshaysu12 opened a new issue, #15071: URL: https://github.com/apache/arrow/issues/15071
### Describe the usage question you have. Please include as many useful details as possible. Trying to follow the python development guide to build arrow: https://arrow.apache.org/docs/developers/python.html And also the build steps here: https://arrow.apache.org/docs/developers/cpp/building.html#cpp-building-building Either way I try to build the c++ libraries I run into the error included at the end. For the python development guide I run into the error at the step: `make -j4` For the cpp-building guide I am trying to build the preset **ninja-debug-python-minimal** and run into the error at the build step: `cmake --build .` **Error**: `[160/439] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/compute/kernels/aggregate_basic.cc.o FAILED: src/arrow/CMakeFiles/arrow_objlib.dir/compute/kernels/aggregate_basic.cc.o /usr/local/bin/ccache /Library/Developer/CommandLineTools/usr/bin/c++ -DARROW_EXPORTING -DARROW_EXTRA_ERROR_CONTEXT -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_AVX512 -DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DARROW_WITH_BACKTRACE -DARROW_WITH_TIMING_TESTS -DURI_STATIC_BUILD -I/Users/asubramanian/workspace/arrow/cpp/src -I/Users/asubramanian/workspace/arrow/cpp/src/generated -isystem /Users/asubramanian/workspace/arrow/cpp/thirdparty/flatbuffers/include -isystem /Users/asubramanian/workspace/arrow/cpp/thirdparty/hadoop/include -isystem /usr/local/include -isystem /usr/local/Cellar/rapidjson/1.1.0/include -isystem /Users/asubramanian/workspace/arrow/cpp/jemalloc_ep-prefix/src -fno-aligned-new -Qunused-arguments -fcolor-diagnostics -ggdb -O0 -Wall -Wextra -Wdocumentation -Wshorten-64-to-32 -Wno-missing-braces -Wno-unused-parameter -Wno-constant-logical-operand -Wno-return-stack-address -Werror -Wno-unknown-warning-option -Wno-pass-failed -msse4. 2 -g -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -fPIC -std=c++17 -MD -MT src/arrow/CMakeFiles/arrow_objlib.dir/compute/kernels/aggregate_basic.cc.o -MF src/arrow/CMakeFiles/arrow_objlib.dir/compute/kernels/aggregate_basic.cc.o.d -o src/arrow/CMakeFiles/arrow_objlib.dir/compute/kernels/aggregate_basic.cc.o -c /Users/asubramanian/workspace/arrow/cpp/src/arrow/compute/kernels/aggregate_basic.cc In file included from /Users/asubramanian/workspace/arrow/cpp/src/arrow/compute/kernels/aggregate_basic.cc:24: /Users/asubramanian/workspace/arrow/cpp/src/arrow/util/hashing.h:587:24: error: loop variable 'other_val' is always a copy because the range of type 'const std::vector<bool>' does not return a reference [-Werror,-Wrange-loop-analysis] for (const Scalar& other_val : other_table.index_to_value_) { ^ /Users/asubramanian/workspace/arrow/cpp/src/arrow/compute/kernels/aggregate_basic.cc:163:38: note: in instantiation of member function 'arrow::internal::SmallScalarMemoTable<bool, HashTable>::MergeTable' requested here RETURN_NOT_OK(this->memo_table_->MergeTable(*(other_state.memo_table_))); ^ /Users/asubramanian/workspace/arrow/cpp/src/arrow/compute/kernels/aggregate_basic.cc:133:12: note: in instantiation of member function 'arrow::compute::internal::(anonymous namespace)::CountDistinctImpl<arrow::BooleanType, bool>::MergeFrom' requested here explicit CountDistinctImpl(MemoryPool* memory_pool, CountOptions options) ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3033:32: note: in instantiation of member function 'arrow::compute::internal::(anonymous namespace)::CountDistinctImpl<arrow::BooleanType, bool>::CountDistinctImpl' requested here return unique_ptr<_Tp>(new _Tp(_VSTD::forward<_Args>(__args)...)); ^ /Users/asubramanian/workspace/arrow/cpp/src/arrow/compute/kernels/aggregate_basic.cc:197:15: note: in instantiation of function template specialization 'std::__1::make_unique<arrow::compute::internal::(anonymous namespace)::CountDistinctImpl<arrow::BooleanType, bool>, arrow::MemoryPool *, const arrow::compute::CountOptions &>' requested here return std::make_unique<CountDistinctImpl<Type, VisitorArgType>>( ^ /Users/asubramanian/workspace/arrow/cpp/src/arrow/compute/kernels/aggregate_basic.cc:204:16: note: in instantiation of function template specialization 'arrow::compute::internal::(anonymous namespace)::CountDistinctInit<arrow::BooleanType, bool>' requested here CountDistinctInit<Type, VisitorArgType>, func); ^ /Users/asubramanian/workspace/arrow/cpp/src/arrow/compute/kernels/aggregate_basic.cc:209:3: note: in instantiation of function template specialization 'arrow::compute::internal::(anonymous namespace)::AddCountDistinctKernel<arrow::BooleanType, bool>' requested here AddCountDistinctKernel<BooleanType>(boolean(), func); ^ /Users/asubramanian/workspace/arrow/cpp/src/arrow/util/hashing.h:587:10: note: use non-reference type 'bool' for (const Scalar& other_val : other_table.index_to_value_) { ^~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. [173/439] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/compute/kernels/hash_aggregate.cc.o ninja: build stopped: subcommand failed.` ### Component(s) C++, Python -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
