akshaysu12 commented on issue #15071:
URL: https://github.com/apache/arrow/issues/15071#issuecomment-1366004651

   cloned into a clean directory. Output below is from running: `cmake .. 
--preset ninja-debug-python-minimal`
   I still see the same error when trying to run `cmake --build .` or `make 
-j4` after this. 
   
   `cmake .. --preset ninja-debug-python-minimal`
   ```
   Preset CMake variables:
   
     ARROW_BUILD_INTEGRATION="ON"
     ARROW_BUILD_STATIC="OFF"
     ARROW_BUILD_TESTS="ON"
     ARROW_COMPUTE="ON"
     ARROW_CSV="ON"
     ARROW_EXTRA_ERROR_CONTEXT="ON"
     ARROW_FILESYSTEM="ON"
     ARROW_JSON="ON"
     ARROW_WITH_RE2="OFF"
     ARROW_WITH_UTF8PROC="OFF"
     CMAKE_BUILD_TYPE="Debug"
   
   -- Building using CMake version: 3.25.1
   -- The C compiler identification is AppleClang 12.0.0.12000032
   -- The CXX compiler identification is AppleClang 12.0.0.12000032
   -- Detecting C compiler ABI info
   -- Detecting C compiler ABI info - done
   -- Check for working C compiler: 
/Library/Developer/CommandLineTools/usr/bin/cc - skipped
   -- Detecting C compile features
   -- Detecting C compile features - done
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: 
/Library/Developer/CommandLineTools/usr/bin/c++ - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Arrow version: 11.0.0 (full: '11.0.0-SNAPSHOT')
   -- Arrow SO version: 1100 (full: 1100.0.0)
   -- clang-tidy found at /usr/local/opt/llvm@14/bin/clang-tidy
   -- clang-format found, but version did not match "^clang-format version 14"
   -- clang-format 14 not found
   -- Could NOT find ClangTools (missing: CLANG_FORMAT_BIN) 
   -- infer not found
   -- Found Python3: /usr/local/bin/python3.11 (found version "3.11.0") found 
components: Interpreter 
   -- Using ccache: /usr/local/bin/ccache
   -- Found cpplint executable at 
/tmp/arrowtests/test3/arrow/cpp/build-support/cpplint.py
   -- System processor: x86_64
   -- Performing Test CXX_SUPPORTS_SSE4_2
   -- Performing Test CXX_SUPPORTS_SSE4_2 - Success
   -- Performing Test CXX_SUPPORTS_AVX2
   -- Performing Test CXX_SUPPORTS_AVX2 - Success
   -- Performing Test CXX_SUPPORTS_AVX512
   -- Performing Test CXX_SUPPORTS_AVX512 - Success
   -- Arrow build warning level: CHECKIN
   -- Build Type: DEBUG
   -- Performing Test CXX_LINKER_SUPPORTS_VERSION_SCRIPT
   -- Performing Test CXX_LINKER_SUPPORTS_VERSION_SCRIPT - Failed
   -- Using AUTO approach to find dependencies
   -- ARROW_ABSL_BUILD_VERSION: 20211102.0
   -- ARROW_ABSL_BUILD_SHA256_CHECKSUM: 
dcf71b9cba8dc0ca9940c4b316a0c796be8fab42b070bb6b7cab62b48f0e66c4
   -- ARROW_AWSSDK_BUILD_VERSION: 1.8.133
   -- ARROW_AWSSDK_BUILD_SHA256_CHECKSUM: 
d6c495bc06be5e21dac716571305d77437e7cfd62a2226b8fe48d9ab5785a8d6
   -- ARROW_AWS_CHECKSUMS_BUILD_VERSION: v0.1.12
   -- ARROW_AWS_CHECKSUMS_BUILD_SHA256_CHECKSUM: 
394723034b81cc7cd528401775bc7aca2b12c7471c92350c80a0e2fb9d2909fe
   -- ARROW_AWS_C_COMMON_BUILD_VERSION: v0.6.9
   -- ARROW_AWS_C_COMMON_BUILD_SHA256_CHECKSUM: 
928a3e36f24d1ee46f9eec360ec5cebfe8b9b8994fe39d4fa74ff51aebb12717
   -- ARROW_AWS_C_EVENT_STREAM_BUILD_VERSION: v0.1.5
   -- ARROW_AWS_C_EVENT_STREAM_BUILD_SHA256_CHECKSUM: 
f1b423a487b5d6dca118bfc0d0c6cc596dc476b282258a3228e73a8f730422d4
   -- ARROW_BOOST_BUILD_VERSION: 1.75.0
   -- ARROW_BOOST_BUILD_SHA256_CHECKSUM: 
267e04a7c0bfe85daf796dedc789c3a27a76707e1c968f0a2a87bb96331e2b61
   -- ARROW_BROTLI_BUILD_VERSION: v1.0.9
   -- ARROW_BROTLI_BUILD_SHA256_CHECKSUM: 
f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46
   -- ARROW_BZIP2_BUILD_VERSION: 1.0.8
   -- ARROW_BZIP2_BUILD_SHA256_CHECKSUM: 
ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
   -- ARROW_CARES_BUILD_VERSION: 1.17.2
   -- ARROW_CARES_BUILD_SHA256_CHECKSUM: 
4803c844ce20ce510ef0eb83f8ea41fa24ecaae9d280c468c582d2bb25b3913d
   -- ARROW_CRC32C_BUILD_VERSION: 1.1.2
   -- ARROW_CRC32C_BUILD_SHA256_CHECKSUM: 
ac07840513072b7fcebda6e821068aa04889018f24e10e46181068fb214d7e56
   -- ARROW_GBENCHMARK_BUILD_VERSION: v1.6.0
   -- ARROW_GBENCHMARK_BUILD_SHA256_CHECKSUM: 
1f71c72ce08d2c1310011ea6436b31e39ccab8c2db94186d26657d41747c85d6
   -- ARROW_GFLAGS_BUILD_VERSION: v2.2.2
   -- ARROW_GFLAGS_BUILD_SHA256_CHECKSUM: 
34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf
   -- ARROW_GLOG_BUILD_VERSION: v0.5.0
   -- ARROW_GLOG_BUILD_SHA256_CHECKSUM: 
eede71f28371bf39aa69b45de23b329d37214016e2055269b3b5e7cfd40b59f5
   -- ARROW_GOOGLE_CLOUD_CPP_BUILD_VERSION: v1.42.0
   -- ARROW_GOOGLE_CLOUD_CPP_BUILD_SHA256_CHECKSUM: 
c06ae9aededbb8aa217a6d2453754daa40b815f9a4004bc4f2d2d215c79828aa
   -- ARROW_GRPC_BUILD_VERSION: v1.46.3
   -- ARROW_GRPC_BUILD_SHA256_CHECKSUM: 
d6cbf22cb5007af71b61c6be316a79397469c58c82a942552a62e708bce60964
   -- ARROW_GTEST_BUILD_VERSION: 1.11.0
   -- ARROW_GTEST_BUILD_SHA256_CHECKSUM: 
b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5
   -- ARROW_JEMALLOC_BUILD_VERSION: 5.3.0
   -- ARROW_JEMALLOC_BUILD_SHA256_CHECKSUM: 
2db82d1e7119df3e71b7640219b6dfe84789bc0537983c3b7ac4f7189aecfeaa
   -- ARROW_LZ4_BUILD_VERSION: v1.9.4
   -- ARROW_LZ4_BUILD_SHA256_CHECKSUM: 
0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
   -- ARROW_MIMALLOC_BUILD_VERSION: v2.0.6
   -- ARROW_MIMALLOC_BUILD_SHA256_CHECKSUM: 
9f05c94cc2b017ed13698834ac2a3567b6339a8bde27640df5a1581d49d05ce5
   -- ARROW_NLOHMANN_JSON_BUILD_VERSION: v3.10.5
   -- ARROW_NLOHMANN_JSON_BUILD_SHA256_CHECKSUM: 
5daca6ca216495edf89d167f808d1d03c4a4d929cef7da5e10f135ae1540c7e4
   -- ARROW_OPENTELEMETRY_BUILD_VERSION: v1.4.1
   -- ARROW_OPENTELEMETRY_BUILD_SHA256_CHECKSUM: 
301b1ab74a664723560f46c29f228360aff1e2d63e930b963755ea077ae67524
   -- ARROW_OPENTELEMETRY_PROTO_BUILD_VERSION: v0.17.0
   -- ARROW_OPENTELEMETRY_PROTO_BUILD_SHA256_CHECKSUM: 
f269fbcb30e17b03caa1decd231ce826e59d7651c0f71c3b28eb5140b4bb5412
   -- ARROW_ORC_BUILD_VERSION: 1.8.1
   -- ARROW_ORC_BUILD_SHA256_CHECKSUM: 
ba5877bd737e1fbc69822d3861b8e84854640bf2439b7ddad536d6303dd3638d
   -- ARROW_PROTOBUF_BUILD_VERSION: v21.3
   -- ARROW_PROTOBUF_BUILD_SHA256_CHECKSUM: 
2f723218f6cb709ae4cdc4fb5ed56a5951fc5d466f0128ce4c946b8c78c8c49f
   -- ARROW_RAPIDJSON_BUILD_VERSION: 232389d4f1012dddec4ef84861face2d2ba85709
   -- ARROW_RAPIDJSON_BUILD_SHA256_CHECKSUM: 
b9290a9a6d444c8e049bd589ab804e0ccf2b05dc5984a19ed5ae75d090064806
   -- ARROW_RE2_BUILD_VERSION: 2022-06-01
   -- ARROW_RE2_BUILD_SHA256_CHECKSUM: 
f89c61410a072e5cbcf8c27e3a778da7d6fd2f2b5b1445cd4f4508bee946ab0f
   -- ARROW_SNAPPY_BUILD_VERSION: 1.1.9
   -- ARROW_SNAPPY_BUILD_SHA256_CHECKSUM: 
75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7
   -- ARROW_SUBSTRAIT_BUILD_VERSION: v0.20.0
   -- ARROW_SUBSTRAIT_BUILD_SHA256_CHECKSUM: 
5ceaa559ccef29a7825b5e5d4b5e7eed384830294f08bec913feecdd903a94cf
   -- ARROW_THRIFT_BUILD_VERSION: 0.16.0
   -- ARROW_THRIFT_BUILD_SHA256_CHECKSUM: 
f460b5c1ca30d8918ff95ea3eb6291b3951cf518553566088f3f2be8981f6209
   -- ARROW_UCX_BUILD_VERSION: 1.12.1
   -- ARROW_UCX_BUILD_SHA256_CHECKSUM: 
9bef31aed0e28bf1973d28d74d9ac4f8926c43ca3b7010bd22a084e164e31b71
   -- ARROW_UTF8PROC_BUILD_VERSION: v2.7.0
   -- ARROW_UTF8PROC_BUILD_SHA256_CHECKSUM: 
4bb121e297293c0fd55f08f83afab6d35d48f0af4ecc07523ad8ec99aa2b12a1
   -- ARROW_XSIMD_BUILD_VERSION: 9.0.1
   -- ARROW_XSIMD_BUILD_SHA256_CHECKSUM: 
b1bb5f92167fd3a4f25749db0be7e61ed37e0a5d943490f3accdcd2cd2918cc0
   -- ARROW_ZLIB_BUILD_VERSION: 1.2.13
   -- ARROW_ZLIB_BUILD_SHA256_CHECKSUM: 
b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30
   -- ARROW_ZSTD_BUILD_VERSION: v1.5.2
   -- ARROW_ZSTD_BUILD_SHA256_CHECKSUM: 
f7de13462f7a82c29ab865820149e778cbfe01087b3a55b5332707abf9db4a6e
   -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
   -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
   -- Found Threads: TRUE  
   -- Looking for _M_ARM64
   -- Looking for _M_ARM64 - not found
   -- Looking for __SIZEOF_INT128__
   -- Looking for __SIZEOF_INT128__ - found
   -- Found Boost: /usr/local/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found 
suitable version "1.80.0", minimum required is "1.64") found components: system 
filesystem 
   -- Boost include dir: /usr/local/include
   -- Building without OpenSSL support. Minimum OpenSSL version 1.0.2 required.
   -- Building jemalloc from source
   CMake Warning (dev) at 
/usr/local/Cellar/cmake/3.25.1/share/cmake/Modules/ExternalProject.cmake:3075 
(message):
     The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
     not set.  The policy's OLD behavior will be used.  When using a URL
     download, the timestamps of extracted files should preferably be that of
     the time of extraction, otherwise code that depends on the extracted
     contents might not be rebuilt if the URL changes.  The OLD behavior
     preserves the timestamps from the archive instead, but this is usually not
     what you want.  Update your project to the NEW behavior or specify the
     DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
     robustness issue.
   Call Stack (most recent call first):
     
/usr/local/Cellar/cmake/3.25.1/share/cmake/Modules/ExternalProject.cmake:4185 
(_ep_add_download_command)
     cmake_modules/ThirdpartyToolchain.cmake:1859 (externalproject_add)
     cmake_modules/ThirdpartyToolchain.cmake:175 (build_jemalloc)
     cmake_modules/ThirdpartyToolchain.cmake:278 (build_dependency)
     cmake_modules/ThirdpartyToolchain.cmake:1892 (resolve_dependency)
     CMakeLists.txt:498 (include)
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   -- Found GTest: /usr/local/lib/cmake/GTest/GTestConfig.cmake (found suitable 
version "1.12.1", minimum required is "1.10.0")  
   -- RapidJSON found. Headers: /usr/local/Cellar/rapidjson/1.1.0/include
   -- xsimd found. Headers: /usr/local/include
   -- Found hdfs.h at: 
/tmp/arrowtests/test3/arrow/cpp/thirdparty/hadoop/include/hdfs.h
   -- All bundled static libraries: jemalloc::jemalloc
   -- CMAKE_C_FLAGS:  -Qunused-arguments  -Wall -Wextra -Wdocumentation 
-Wshorten-64-to-32 -Wno-missing-braces -Wno-unused-parameter 
-Wno-constant-logical-operand -Wno-return-stack-address 
-Wno-unknown-warning-option -Wno-pass-failed -msse4.2 
   -- CMAKE_CXX_FLAGS:  -fno-aligned-new  -Qunused-arguments 
-fcolor-diagnostics  -Wall -Wextra -Wdocumentation -Wshorten-64-to-32 
-Wno-missing-braces -Wno-unused-parameter -Wno-constant-logical-operand 
-Wno-return-stack-address -Wno-unknown-warning-option -Wno-pass-failed -msse4.2 
   -- CMAKE_C_FLAGS_DEBUG: -g -Werror -O0 -ggdb
   -- CMAKE_CXX_FLAGS_DEBUG: -g -Werror -O0 -ggdb
   -- Looking for backtrace
   -- Looking for backtrace - found
   -- backtrace facility detected in default set of libraries
   -- Found Backtrace: 
/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include  
   -- ---------------------------------------------------------------------
   -- Arrow version:                                 11.0.0-SNAPSHOT
   -- 
   -- Build configuration summary:
   --   Generator: Ninja
   --   Build type: DEBUG
   --   Source directory: /tmp/arrowtests/test3/arrow/cpp
   --   Install prefix: /usr/local
   --   Compile commands: 
/tmp/arrowtests/test3/arrow/cpp/build/compile_commands.json
   -- 
   -- Compile and link options:
   -- 
   --   ARROW_CXXFLAGS="" [default=""]
   --       Compiler flags to append when compiling Arrow
   --   ARROW_BUILD_STATIC=OFF [default=ON]
   --       Build static libraries
   --   ARROW_BUILD_SHARED=ON [default=ON]
   --       Build shared libraries
   --   ARROW_PACKAGE_KIND="" [default=""]
   --       Arbitrary string that identifies the kind of package
   --       (for informational purposes)
   --   ARROW_GIT_ID=9ac425941722c07b61331cea1ea0170a936de8be [default=""]
   --       The Arrow git commit id (if any)
   --   ARROW_GIT_DESCRIPTION=apache-arrow-11.0.0.dev-329-g9ac425941 
[default=""]
   --       The Arrow git commit description (if any)
   --   ARROW_NO_DEPRECATED_API=OFF [default=OFF]
   --       Exclude deprecated APIs from build
   --   ARROW_POSITION_INDEPENDENT_CODE=ON [default=ON]
   --       Whether to create position-independent target
   --   ARROW_USE_CCACHE=ON [default=ON]
   --       Use ccache when compiling (if available)
   --   ARROW_USE_SCCACHE=ON [default=ON]
   --       Use sccache when compiling (if available),
   --       takes precedence over ccache if a storage backend is configured
   --   ARROW_USE_LD_GOLD=OFF [default=OFF]
   --       Use ld.gold for linking on Linux (if available)
   --   ARROW_USE_PRECOMPILED_HEADERS=OFF [default=OFF]
   --       Use precompiled headers when compiling
   --   ARROW_SIMD_LEVEL=SSE4_2 
[default=NONE|SSE4_2|AVX2|AVX512|NEON|SVE|SVE128|SVE256|SVE512|DEFAULT]
   --       Compile-time SIMD optimization level
   --   ARROW_RUNTIME_SIMD_LEVEL=MAX [default=NONE|SSE4_2|AVX2|AVX512|MAX]
   --       Max runtime SIMD optimization level
   --   ARROW_ALTIVEC=ON [default=ON]
   --       Build with Altivec if compiler has support
   --   ARROW_RPATH_ORIGIN=OFF [default=OFF]
   --       Build Arrow libraries with RATH set to $ORIGIN
   --   ARROW_INSTALL_NAME_RPATH=ON [default=ON]
   --       Build Arrow libraries with install_name set to @rpath
   --   ARROW_GGDB_DEBUG=ON [default=ON]
   --       Pass -ggdb flag to debug builds
   --   ARROW_WITH_MUSL=OFF [default=OFF]
   --       Whether the system libc is musl or not
   -- 
   -- Test and benchmark options:
   -- 
   --   ARROW_BUILD_EXAMPLES=OFF [default=OFF]
   --       Build the Arrow examples
   --   ARROW_BUILD_TESTS=ON [default=OFF]
   --       Build the Arrow googletest unit tests
   --   ARROW_ENABLE_TIMING_TESTS=ON [default=ON]
   --       Enable timing-sensitive tests
   --   ARROW_BUILD_INTEGRATION=ON [default=OFF]
   --       Build the Arrow integration test executables
   --   ARROW_BUILD_BENCHMARKS=OFF [default=OFF]
   --       Build the Arrow micro benchmarks
   --   ARROW_BUILD_BENCHMARKS_REFERENCE=OFF [default=OFF]
   --       Build the Arrow micro reference benchmarks
   --   ARROW_BUILD_OPENMP_BENCHMARKS=OFF [default=OFF]
   --       Build the Arrow benchmarks that rely on OpenMP
   --   ARROW_BUILD_DETAILED_BENCHMARKS=OFF [default=OFF]
   --       Build benchmarks that do a longer exploration of performance
   --   ARROW_TEST_LINKAGE=shared [default=shared|static]
   --       Linkage of Arrow libraries with unit tests executables.
   --   ARROW_FUZZING=OFF [default=OFF]
   --       Build Arrow Fuzzing executables
   --   ARROW_LARGE_MEMORY_TESTS=OFF [default=OFF]
   --       Enable unit tests which use large memory
   -- 
   -- Lint options:
   -- 
   --   ARROW_ONLY_LINT=OFF [default=OFF]
   --       Only define the lint and check-format targets
   --   ARROW_VERBOSE_LINT=OFF [default=OFF]
   --       If off, 'quiet' flags will be passed to linting tools
   --   ARROW_GENERATE_COVERAGE=OFF [default=OFF]
   --       Build with C++ code coverage enabled
   -- 
   -- Checks options:
   -- 
   --   ARROW_TEST_MEMCHECK=OFF [default=OFF]
   --       Run the test suite using valgrind --tool=memcheck
   --   ARROW_USE_ASAN=OFF [default=OFF]
   --       Enable Address Sanitizer checks
   --   ARROW_USE_TSAN=OFF [default=OFF]
   --       Enable Thread Sanitizer checks
   --   ARROW_USE_UBSAN=OFF [default=OFF]
   --       Enable Undefined Behavior sanitizer checks
   -- 
   -- Project component options:
   -- 
   --   ARROW_BUILD_UTILITIES=OFF [default=OFF]
   --       Build Arrow commandline utilities
   --   ARROW_COMPUTE=ON [default=OFF]
   --       Build the Arrow Compute Modules
   --   ARROW_CSV=ON [default=OFF]
   --       Build the Arrow CSV Parser Module
   --   ARROW_CUDA=OFF [default=OFF]
   --       Build the Arrow CUDA extensions (requires CUDA toolkit)
   --   ARROW_DATASET=OFF [default=OFF]
   --       Build the Arrow Dataset Modules
   --   ARROW_FILESYSTEM=ON [default=OFF]
   --       Build the Arrow Filesystem Layer
   --   ARROW_FLIGHT=OFF [default=OFF]
   --       Build the Arrow Flight RPC System (requires GRPC, Protocol Buffers)
   --   ARROW_FLIGHT_SQL=OFF [default=OFF]
   --       Build the Arrow Flight SQL extension
   --   ARROW_GANDIVA=OFF [default=OFF]
   --       Build the Gandiva libraries
   --   ARROW_GCS=OFF [default=OFF]
   --       Build Arrow with GCS support (requires the GCloud SDK for C++)
   --   ARROW_HDFS=OFF [default=OFF]
   --       Build the Arrow HDFS bridge
   --   ARROW_IPC=ON [default=ON]
   --       Build the Arrow IPC extensions
   --   ARROW_JEMALLOC=ON [default=ON]
   --       Build the Arrow jemalloc-based allocator
   --   ARROW_JSON=ON [default=OFF]
   --       Build Arrow with JSON support (requires RapidJSON)
   --   ARROW_MIMALLOC=OFF [default=OFF]
   --       Build the Arrow mimalloc-based allocator
   --   ARROW_PARQUET=OFF [default=OFF]
   --       Build the Parquet libraries
   --   ARROW_ORC=OFF [default=OFF]
   --       Build the Arrow ORC adapter
   --   ARROW_PLASMA=OFF [default=OFF]
   --       Build the plasma object store along with Arrow
   --   ARROW_PYTHON=OFF [default=OFF]
   --       Build some components needed by PyArrow.
   --       (This is a deprecated option. Use CMake presets instead.)
   --   ARROW_S3=OFF [default=OFF]
   --       Build Arrow with S3 support (requires the AWS SDK for C++)
   --   ARROW_SKYHOOK=OFF [default=OFF]
   --       Build the Skyhook libraries
   --   ARROW_SUBSTRAIT=OFF [default=OFF]
   --       Build the Arrow Substrait Consumer Module
   --   ARROW_TENSORFLOW=OFF [default=OFF]
   --       Build Arrow with TensorFlow support enabled
   --   ARROW_TESTING=ON [default=OFF]
   --       Build the Arrow testing libraries
   -- 
   -- Thirdparty toolchain options:
   -- 
   --   ARROW_DEPENDENCY_SOURCE=AUTO 
[default=AUTO|BUNDLED|SYSTEM|CONDA|VCPKG|BREW]
   --       Method to use for acquiring arrow's build dependencies
   --   ARROW_VERBOSE_THIRDPARTY_BUILD=OFF [default=OFF]
   --       Show output from ExternalProjects rather than just logging to files
   --   ARROW_DEPENDENCY_USE_SHARED=ON [default=ON]
   --       Link to shared libraries
   --   ARROW_BOOST_USE_SHARED=ON [default=ON]
   --       Rely on Boost shared libraries where relevant
   --   ARROW_BROTLI_USE_SHARED=ON [default=ON]
   --       Rely on Brotli shared libraries where relevant
   --   ARROW_BZ2_USE_SHARED=ON [default=ON]
   --       Rely on Bz2 shared libraries where relevant
   --   ARROW_GFLAGS_USE_SHARED=ON [default=ON]
   --       Rely on GFlags shared libraries where relevant
   --   ARROW_GRPC_USE_SHARED=ON [default=ON]
   --       Rely on gRPC shared libraries where relevant
   --   ARROW_JEMALLOC_USE_SHARED=OFF [default=ON]
   --       Rely on jemalloc shared libraries where relevant
   --   ARROW_LZ4_USE_SHARED=ON [default=ON]
   --       Rely on lz4 shared libraries where relevant
   --   ARROW_OPENSSL_USE_SHARED=ON [default=ON]
   --       Rely on OpenSSL shared libraries where relevant
   --   ARROW_PROTOBUF_USE_SHARED=ON [default=ON]
   --       Rely on Protocol Buffers shared libraries where relevant
   --   ARROW_SNAPPY_USE_SHARED=ON [default=ON]
   --       Rely on snappy shared libraries where relevant
   --   ARROW_THRIFT_USE_SHARED=ON [default=ON]
   --       Rely on thrift shared libraries where relevant
   --   ARROW_UTF8PROC_USE_SHARED=ON [default=ON]
   --       Rely on utf8proc shared libraries where relevant
   --   ARROW_ZSTD_USE_SHARED=ON [default=ON]
   --       Rely on zstd shared libraries where relevant
   --   ARROW_USE_GLOG=OFF [default=OFF]
   --       Build libraries with glog support for pluggable logging
   --   ARROW_WITH_BACKTRACE=ON [default=ON]
   --       Build with backtrace support
   --   ARROW_WITH_OPENTELEMETRY=OFF [default=OFF]
   --       Build libraries with OpenTelemetry support for distributed tracing
   --   ARROW_WITH_BROTLI=OFF [default=OFF]
   --       Build with Brotli compression
   --   ARROW_WITH_BZ2=OFF [default=OFF]
   --       Build with BZ2 compression
   --   ARROW_WITH_LZ4=OFF [default=OFF]
   --       Build with lz4 compression
   --   ARROW_WITH_SNAPPY=OFF [default=OFF]
   --       Build with Snappy compression
   --   ARROW_WITH_ZLIB=OFF [default=OFF]
   --       Build with zlib compression
   --   ARROW_WITH_ZSTD=OFF [default=OFF]
   --       Build with zstd compression
   --   ARROW_WITH_UCX=OFF [default=OFF]
   --       Build with UCX transport for Arrow Flight
   --       (only used if ARROW_FLIGHT is ON)
   --   ARROW_WITH_UTF8PROC=OFF [default=ON]
   --       Build with support for Unicode properties using the utf8proc library
   --       (only used if ARROW_COMPUTE is ON or ARROW_GANDIVA is ON)
   --   ARROW_WITH_RE2=OFF [default=ON]
   --       Build with support for regular expressions using the re2 library
   --       (only used if ARROW_COMPUTE or ARROW_GANDIVA is ON)
   -- 
   -- Parquet options:
   -- 
   --   PARQUET_MINIMAL_DEPENDENCY=OFF [default=OFF]
   --       Depend only on Thirdparty headers to build libparquet.
   --       Always OFF if building binaries
   --   PARQUET_BUILD_EXECUTABLES=OFF [default=OFF]
   --       Build the Parquet executable CLI tools. Requires static libraries 
to be built.
   --   PARQUET_BUILD_EXAMPLES=OFF [default=OFF]
   --       Build the Parquet examples. Requires static libraries to be built.
   --   PARQUET_REQUIRE_ENCRYPTION=OFF [default=OFF]
   --       Build support for encryption. Fail if OpenSSL is not found
   -- 
   -- Gandiva options:
   -- 
   --   ARROW_GANDIVA_STATIC_LIBSTDCPP=OFF [default=OFF]
   --       Include -static-libstdc++ -static-libgcc when linking with
   --       Gandiva static libraries
   --   ARROW_GANDIVA_PC_CXX_FLAGS="" [default=""]
   --       Compiler flags to append when pre-compiling Gandiva operations
   -- 
   -- Advanced developer options:
   -- 
   --   ARROW_EXTRA_ERROR_CONTEXT=ON [default=OFF]
   --       Compile with extra error context (line numbers, code)
   --   ARROW_OPTIONAL_INSTALL=OFF [default=OFF]
   --       If enabled install ONLY targets that have already been built. 
Please be
   --       advised that if this is enabled 'install' will fail silently on 
components
   --       that have not been built
   --   Outputting build configuration summary to 
/tmp/arrowtests/test3/arrow/cpp/build/cmake_summary.json
   -- Configuring done
   -- Generating done
   -- Build files have been written to: /tmp/arrowtests/test3/arrow/cpp/build
   ```
   
   `cmake --build .`
   ```
   [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/tmp/arrowtests/test3/arrow/cpp/build/src 
-I/tmp/arrowtests/test3/arrow/cpp/src 
-I/tmp/arrowtests/test3/arrow/cpp/src/generated -isystem 
/tmp/arrowtests/test3/arrow/cpp/thirdparty/flatbuffers/include -isystem 
/tmp/arrowtests/test3/arrow/cpp/thirdparty/hadoop/include -isystem 
/usr/local/include -isystem /usr/local/Cellar/rapidjson/1.1.0/include -isystem 
/tmp/arrowtests/test3/arrow/cpp/build/jemalloc_ep-prefix/src -fno-aligned-new  
-Qunused-arguments -fcolor-diagnostics  -Wall -Wextra -Wdocumentation 
-Wshorten-64-to-32 -Wno-missing-braces -Wno-unused-parameter 
-Wno-constant-logical-operand -Wno-return-stack-address 
-Wno-unknown-warning-option -Wno-pass-failed -msse4.2  -g -W
 error -O0 -ggdb -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 
/tmp/arrowtests/test3/arrow/cpp/src/arrow/compute/kernels/aggregate_basic.cc
   In file included from 
/tmp/arrowtests/test3/arrow/cpp/src/arrow/compute/kernels/aggregate_basic.cc:24:
   /tmp/arrowtests/test3/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_) {
                          ^
   
/tmp/arrowtests/test3/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_)));
                                        ^
   
/tmp/arrowtests/test3/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)...));
                                  ^
   
/tmp/arrowtests/test3/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>>(
                 ^
   
/tmp/arrowtests/test3/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);
                  ^
   
/tmp/arrowtests/test3/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);
     ^
   /tmp/arrowtests/test3/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.
   ```


-- 
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-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to