Skip to content

GH-34523: [C++] Avoid mixing bundled Abseil and system Abseil - #35387

Merged
kou merged 2 commits into
apache:mainfrom
kou:cpp-abseil-macos
May 3, 2023
Merged

kou merged 2 commits into
apache:mainfrom
kou:cpp-abseil-macos

Conversation

@kou

@kou kou commented May 2, 2023 •

Copy link
Copy Markdown
Member

Rationale for this change

If we use a CMake target that provides the same include path for system Abseil in advance of a CMake target for bundled Abseil, header files for system Abseil are used.

It causes a link error when system Abseil and bundled Abseil are incompatible.

What changes are included in this PR?

Use a CMake target for bundled Abseil as early as possible.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@kou
kou requested a review from lidavidm as a code owner May 2, 2023 15:28
@github-actions

github-actions Bot commented May 2, 2023

Copy link
Copy Markdown

@github-actions

github-actions Bot commented May 2, 2023

Copy link
Copy Markdown

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

@kou

kou commented May 2, 2023

Copy link
Copy Markdown
Member Author

@nealrichardson @paleolimbot Could you try this?

@paleolimbot

Copy link
Copy Markdown
Member

Thank you!

I can confirm that this builds and links successfully with GCS on (and results in an R package with GCS enabled). I also checked to make sure that I could replicate the original error without this PR (I can replicate the error without this PR).

@lidavidm lidavidm 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.

Wow, this seems quite fragile. Though I suppose we can't do much better.

Comment thread cpp/src/arrow/flight/CMakeLists.txt Resolved
Co-authored-by: David Li <li.davidm96@gmail.com>
@kou

kou commented May 3, 2023

Copy link
Copy Markdown
Member Author

Thanks for confirming this.

I'll merge this.

@kou
kou merged commit a77aab0 into apache:main May 3, 2023
@kou
kou deleted the cpp-abseil-macos branch May 3, 2023 06:46
@ursabot

ursabot commented May 3, 2023

Copy link
Copy Markdown

Benchmark runs are scheduled for baseline = f74d747 and contender = a77aab0. a77aab0 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.1% ⬆️0.06%] test-mac-arm
[Finished ⬇️0.0% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️1.32% ⬆️0.0%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] a77aab07 ec2-t3-xlarge-us-east-2
[Finished] a77aab07 test-mac-arm
[Finished] a77aab07 ursa-i9-9960x
[Finished] a77aab07 ursa-thinkcentre-m75q
[Finished] f74d7473 ec2-t3-xlarge-us-east-2
[Finished] f74d7473 test-mac-arm
[Finished] f74d7473 ursa-i9-9960x
[Finished] f74d7473 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

@ursabot

ursabot commented May 3, 2023

Copy link
Copy Markdown

['Python', 'R'] benchmarks have high level of regressions.
test-mac-arm

liujiacheng777 pushed a commit to LoongArch-Python/arrow that referenced this pull request May 11, 2023
…pache#35387)

### Rationale for this change

If we use a CMake target that provides the same include path for system Abseil in advance of a CMake target for bundled Abseil, header files for system Abseil are used.

It causes a link error when system Abseil and bundled Abseil are incompatible.  

### What changes are included in this PR?

Use a CMake target for bundled Abseil as early as possible.
 
### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* Closes: apache#34523

Lead-authored-by: Sutou Kouhei <kou@clear-code.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Co-authored-by: David Li <li.davidm96@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
ArgusLi pushed a commit to Bit-Quill/arrow that referenced this pull request May 15, 2023
…pache#35387)

### Rationale for this change

If we use a CMake target that provides the same include path for system Abseil in advance of a CMake target for bundled Abseil, header files for system Abseil are used.

It causes a link error when system Abseil and bundled Abseil are incompatible.  

### What changes are included in this PR?

Use a CMake target for bundled Abseil as early as possible.
 
### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* Closes: apache#34523

Lead-authored-by: Sutou Kouhei <kou@clear-code.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Co-authored-by: David Li <li.davidm96@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
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.

[R] Unable to compile R package with GCS on macOS M1

4 participants