apache / apache/arrow

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

Open
#44,868 16 comments 0 reactions 0 assignees View on GitHub
Component: C++ Component: Python Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

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

I am trying to build arrow following the instructions [here](https://arrow.apache.org/docs/developers/python.html).

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.