Repository navigation
GH-55693: [CI][C++] Workaround absl::Mutex ABI incompatibility by making sure the non-debug version of Abseil is included #55694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+54
−3
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ad4f4f5
GH-55693: [CI][C++] Workaround absl::Mutex ABI incompatibility by ma…
raulcd eaf6868
Remove ORC pin to try and bump protobuf and abseil on conda
raulcd f71d4f8
Minor fix for [[nodiscard]] on newer protobuf
raulcd 5dd7ea4
Revert "GH-55693: [CI][C++] Workaround absl::Mutex ABI incompatibili…
raulcd 88f5dff
Reapply "GH-55693: [CI][C++] Workaround absl::Mutex ABI incompatibil…
raulcd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,7 @@ make | |
| meson | ||
| ninja | ||
| nodejs>=16 | ||
| orc<2.1.0 | ||
| orc | ||
| pkg-config | ||
| python | ||
| rapidjson | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
|
|
||
| #pragma once | ||
|
|
||
| // Force-included into the flight-grpc-example sources (including the | ||
| // protoc-generated ones, which we can't edit). Same workaround as | ||
| // arrow/flight/transport/grpc/customize_grpc.h, added in GH-45885: | ||
| // Abseil built with NDEBUG (e.g. conda-forge) doesn't export | ||
| // Mutex::Dtor(), so debug TUs that inline ~Mutex() (via | ||
| // grpc::CompletionQueue) fail to link. | ||
| // See https://github.com/abseil/abseil-cpp/issues/1624 | ||
| // and https://github.com/conda-forge/abseil-cpp-feedstock/issues/104 | ||
| #if __has_include(<absl/synchronization/mutex.h>) | ||
| # ifndef NDEBUG | ||
| # define ARROW_EXAMPLE_NO_NDEBUG | ||
| # define NDEBUG | ||
| # endif | ||
| # include <absl/synchronization/mutex.h> | ||
| # ifdef ARROW_EXAMPLE_NO_NDEBUG | ||
| # undef NDEBUG | ||
| # undef ARROW_EXAMPLE_NO_NDEBUG | ||
| # endif | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this CMake syntax do (the
SHELL:-includething)? Is there any documentation about this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the option:
https://cmake.org/cmake/help/latest/command/target_compile_options.html#option-de-duplication
It tokenizes the command as if it would be a shell command using it as two arguments instead of a single quoted argument. Otherwise it fails, minor example:
I can add a comment to the CMake option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I see. But then we're hard-coding
-includewhich is a gcc option. Does this work on other compilers, such as MSVC?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is guarded with
if(NOT MSVC)and should work with GCC and Clang. I don't think this is required for MSVC (at least we haven't found the issue there).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, sorry. Well, let's do this then. Sorry for delaying :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not at all! Thanks for the careful review! I think with the increase of AI usage we should validate all those that are not so obvious carefully and ensure they are indeed necessary.