arrow: [C++][Python] Protobuf error building Arrow on macOS

Describe the bug, including details regarding any error messages, version, and platform.

I am trying to build arrow following the instructions here.

I have managed to create the conda environment and installed all the requirements but when running the command

cmake -S arrow/cpp -B arrow/cpp/build \
        -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
        --preset ninja-release-python

I get the error

CMake Error at /opt/homebrew/lib/cmake/protobuf/protobuf-targets.cmake:71 (set_target_properties):
  The link interface of target "protobuf::libprotobuf" contains:

    absl::absl_check

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /opt/homebrew/lib/cmake/protobuf/protobuf-config.cmake:16 (include)
  cmake_modules/FindProtobufAlt.cmake:31 (find_package)
  cmake_modules/ThirdpartyToolchain.cmake:313 (find_package)
  cmake_modules/ThirdpartyToolchain.cmake:1962 (resolve_dependency)
  CMakeLists.txt:546 (include)

This is on a Mac Book Pro M2

Component(s)

Python

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

I was able to tweak conda package versions around and get this build working correctly and I think a fix here is updating conda_env_cpp.

The issue was our pin of grpc-cpp<1.50.1 . I removed grpc-cpp, orc, libprotobuf (as they’re entangled) from the environment and reinstalled them which brought in newer versions. I was then able to build.

@raulcd the pin showed up in https://github.com/apache/arrow/issues/35089. What do you think about me submitting a PR and doing some testing in the PR to see what breaks?