Skip to content

GH-35987: [C++] Pin brew protobuf version to 21 - #36029

Merged
kou merged 2 commits into
apache:mainfrom
js8544:jinshang/brew_protobuf_21
Jun 11, 2023
Merged

kou merged 2 commits into
apache:mainfrom
js8544:jinshang/brew_protobuf_21

Conversation

@js8544

@js8544 js8544 commented Jun 11, 2023 •

Copy link
Copy Markdown
Contributor

Rationale for this change

A temporary workaround for link errors caused by protobuf 23.

What changes are included in this PR?

Pin brew protobuf version to 21 for now.

Are these changes tested?

To be tested by CI pipelines.

Are there any user-facing changes?

No

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #35987 has been automatically assigned in GitHub to PR creator.

@js8544

js8544 commented Jun 11, 2023

Copy link
Copy Markdown
Contributor Author

@kou CI looks good now :)

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Thanks!

I'll keep #35987 open because this is a workaround.

@ursabot

ursabot commented Jun 12, 2023

Copy link
Copy Markdown

Benchmark runs are scheduled for baseline = fe48403 and contender = 13a35ed. 13a35ed is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Finished ⬇️1.56% ⬆️0.0%] test-mac-arm
[Finished ⬇️0.33% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.48% ⬆️0.18%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] 13a35ed1 ec2-t3-xlarge-us-east-2
[Finished] 13a35ed1 test-mac-arm
[Finished] 13a35ed1 ursa-i9-9960x
[Finished] 13a35ed1 ursa-thinkcentre-m75q
[Finished] fe484036 ec2-t3-xlarge-us-east-2
[Finished] fe484036 test-mac-arm
[Finished] fe484036 ursa-i9-9960x
[Finished] fe484036 ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

@kou

kou commented Jun 14, 2023

Copy link
Copy Markdown
Member

Homebrew's Protobuf wasn't used with this change:
https://github.com/apache/arrow/actions/runs/5234018832/jobs/9449871713#step:9:245

-- Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR) (Required is at least version "3.0.0")

Bundled Protobuf was used. So the problem wasn't happen. (= -DProtobuf_SOURCE=BUNDLED approach)

I should have checked the log before I merge this...

@kou

kou commented Jun 14, 2023

Copy link
Copy Markdown
Member

It seems that protobuf@21 and [email protected] aren't linked from brew --prefix.
I confirmed that we can use them by specifying the paths of them explicitly: cmake ... -DCMAKE_PREFIX_PATH="$(brew --prefix protobuf@21);$(brew --prefix [email protected])"

Hmm. We may want to set these path implicitly like we did for LLVM:

if(APPLE)
find_program(BREW brew)
if(BREW)
string(REGEX REPLACE "^([0-9]+)(\\..+)?" "\\1" ARROW_LLVM_VERSION_MAJOR
"${ARROW_LLVM_VERSION}")
execute_process(COMMAND ${BREW} --prefix "llvm@${ARROW_LLVM_VERSION_MAJOR}"
OUTPUT_VARIABLE LLVM_BREW_PREFIX
OUTPUT_STRIP_TRAILING_WHITESPACE)
list(APPEND LLVM_HINTS ${LLVM_BREW_PREFIX})
endif()
endif()

kou added a commit to kou/arrow that referenced this pull request Jun 15, 2023
@kou

kou commented Jun 15, 2023

Copy link
Copy Markdown
Member

#36086

@js8544

js8544 commented Jun 15, 2023

Copy link
Copy Markdown
Contributor Author

Sorry! My bad for not checking this. No wonder why this check has been timing out a lot...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C++] Add support for Protobuf 23.2 on non-Windows

3 participants