jmao-denver commented on PR #40939:
URL: https://github.com/apache/arrow/pull/40939#issuecomment-2912712356
> > Congratulations on the merge!
> > Got an error when trying the build it on Mac M2.
> > ```shell
> > ~/git/arrow/cpp/build main *1 ?1 ❯ cmake .. --preset ninja-debug-maximal
> > ```
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ```
> > ...
> > Vcpkg integrate step - DONE.
> > -- Retrieving version from
/Users/jianfengmao/git/arrow/cpp/build/_deps/azure_sdk-src/sdk/tables/azure-data-tables/src/private/package_version.hpp
> > -- VERSION_MAJOR 1
> > -- VERSION_MINOR 0
> > -- VERSION_PATCH 0
> > -- VERSION_PRERELEASE beta.4
> > -- AZ_LIBRARY_VERSION
> > CMake Error at
/opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:227
(message):
> > Could NOT find ODBC (missing: ODBC_INCLUDE_DIR)
> > Call Stack (most recent call first):
> >
/opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:591
(_FPHSA_FAILURE_MESSAGE)
> > /opt/homebrew/share/cmake/Modules/FindODBC.cmake:200
(find_package_handle_standard_args)
> > cmake_modules/ThirdpartyToolchain.cmake:5584 (find_package)
> > CMakeLists.txt:618 (include)
> > ```
>
> Hi Jianfeng, installing the ODBC driver manager on your machine might help
with the issue.
Thanks Alina. Installing `unixodbc` got the build past the error but it ran
into another issue both on MacOS M2 and Ubuntu.
```
-- Retrieving version from
/home/jianfengmao/git/arrow/cpp/build/_deps/azure_sdk-src/sdk/tables/azure-data-tables/src/private/package_version.hpp
-- VERSION_MAJOR 1
-- VERSION_MINOR 0
-- VERSION_PATCH 0
-- VERSION_PRERELEASE beta.4
-- AZ_LIBRARY_VERSION
-- Found ODBC: /usr/lib/x86_64-linux-gnu/libodbc.so
-- All bundled static libraries:
gflags::gflags_static;substrait;mimalloc::mimalloc;Crc32c::crc32c;google-cloud-cpp::storage;google-cloud-cpp::rest-internal;google-cloud-cpp::common;orc::orc;aws-cpp-sdk-identity-management;aws-cpp-sdk-sts;aws-cpp-sdk-cognito-identity;aws-cpp-sdk-s3;aws-cpp-sdk-core;AWS::aws-crt-cpp;AWS::aws-c-s3;AWS::aws-c-auth;AWS::aws-c-mqtt;AWS::aws-c-http;AWS::aws-c-compression;AWS::aws-c-sdkutils;AWS::aws-c-event-stream;AWS::aws-c-io;AWS::aws-c-cal;AWS::aws-checksums;AWS::aws-c-common;AWS::s2n-tls;Azure::azure-core;Azure::azure-identity;Azure::azure-storage-blobs;Azure::azure-storage-common;Azure::azure-storage-files-datalake
-- CMAKE_C_FLAGS: -Wall -Wno-conversion -Wno-sign-conversion -Wdate-time
-Wimplicit-fallthrough -Wunused-result -fno-semantic-interposition -msse4.2
-- CMAKE_CXX_FLAGS: -Wredundant-move -Wno-noexcept-type -Wno-self-move
-fdiagnostics-color=always -Wall -Wno-conversion -Wno-sign-conversion
-Wdate-time -Wimplicit-fallthrough -Wunused-result -fno-semantic-interposition
-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: /usr/include
CMake Error at /usr/share/cmake-3.28/Modules/FindCUDAToolkit.cmake:855
(message):
Could not find nvcc, please set CUDAToolkit_ROOT.
Call Stack (most recent call first):
src/arrow/gpu/CMakeLists.txt:44 (find_package)
-- Configuring incomplete, errors occurred!
➜ build git:(main)
```
I am following the steps on
https://arrow.apache.org/docs/developers/cpp/building.html. Maybe I am missing
something very obvious?
--
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]