Repository navigation
Conversation
…by making sure the non-debug version of Abseil is included
|
@github-actions crossbow submit test-conda-cpp |
|
Revision: ad4f4f5 Submitted crossbow builds: ursacomputing/crossbow @ actions-83cdd070cd
|
|
The CI failures is unrelated. I have seen it on a different PR too. I've opened the following issue to track it: |
|
Could we limit this workaround to configurations where Abseil was built with Tracing the Abseil 20240722.0 headers, it looks like a Debug example linked against Debug Abseil could still pick up the empty |
Is it from conda-forge's version of Abseil? Judging by the recipe, we should be getting version 20260817, not 20240722? |
|
@github-actions crossbow submit test-conda-cpp |
This comment was marked as outdated.
This comment was marked as outdated.
|
@github-actions crossbow submit test-conda-cpp |
…ibility by making sure the non-debug version of Abseil is included" This reverts commit ad4f4f5.
|
Revision: 5dd7ea4 Submitted crossbow builds: ursacomputing/crossbow @ actions-1d95cdfa1c
|
|
@pitrou @kou on this job: |
…tibility by making sure the non-debug version of Abseil is included" This reverts commit 5dd7ea4.
|
@github-actions crossbow submit test-conda-cpp |
|
Revision: 88f5dff Submitted crossbow builds: ursacomputing/crossbow @ actions-922dfcdd47
|
kou
left a comment
There was a problem hiding this comment.
+1
This workaround is still needed.
Hmm, judging by abseil/abseil-cpp@18ac608, this should have been fixed upstream? What do you think @h-vetinari ? |
Hm yeah, we set So I think the upstream fix is kinda incomplete, at least for the scenario that we're in (note as well that upstream abseil discourages binary distribution quite strongly, which is of course the core use-case of conda-forge, so this case may not even be what they consider supported). If it helps, I think we could consider building a debug variant (i.e. without |
Your link is pointing to the inline definition though? The out-of-line definition is here. If |
|
Ok, the problem is that |
| # Same issue as: | ||
| # https://github.com/apache/arrow/blob/d58f83f3131cb57ede40d99ac4d0978748d1a970/cpp/src/arrow/flight/transport/grpc/customize_grpc.h#L25-L59 | ||
| target_compile_options(flight-grpc-example | ||
| PRIVATE "SHELL:-include ${CMAKE_CURRENT_SOURCE_DIR}/absl_mutex_ndebug.h" |
There was a problem hiding this comment.
What does this CMake syntax do (the SHELL:-include thing)? Is there any documentation about this?
There was a problem hiding this comment.
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:
raulcd@limgrave:~/code/arrow (GH-55754) $ gcc "-include test.h" test.cc
<command-line>: fatal error: test.h: No such file or directory
compilation terminated.
raulcd@limgrave:~/code/arrow (GH-55754) $ gcc -include test.h test.cc
/usr/bin/x86_64-linux-gnu-ld.bfd: /usr/lib/gcc/x86_64-linux-gnu/16/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit statusI can add a comment to the CMake option.
There was a problem hiding this comment.
Hmm, I see. But then we're hard-coding -include which is a gcc option. Does this work on other compilers, such as MSVC?
There was a problem hiding this comment.
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.
Oops, sorry. Well, let's do this then. Sorry for delaying :)
There was a problem hiding this comment.
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.
Rationale for this change
test-conda-cpp is currently failing with
undefined symbol: absl::lts_20240722::Mutex::Dtor().This is related to:
See also:
arrow/cpp/src/arrow/flight/transport/grpc/customize_grpc.h
Lines 25 to 59 in d58f83f
What changes are included in this PR?
Force including
NDEBUGsymbols forabsl/synchronization/mutex.honflight-grpc-exampleAre these changes tested?
Yes via archery
Are there any user-facing changes?
No
Was AI used for this PR?
In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.
PR code and description written by:
Reviewed before submission by: