h-vetinari commented on PR #55694:
URL: https://github.com/apache/arrow/pull/55694#issuecomment-7122519099

   > Hmm, judging by 
https://github.com/abseil/abseil-cpp/commit/18ac60830796f7e7d4a92eec679877de3e44f13c,
 this should have been fixed upstream? What do you think @h-vetinari ?
   
   Hm yeah, we set `-DBUILD_SHARED_LIBS=ON`, which 
[sets](https://github.com/abseil/abseil-cpp/blob/20260817.0/absl/copts/AbseilConfigureCopts.cmake#L6-L11)
 `ABSL_BUILD_DLL` when compiling with msvc. But AFAICT, the 
[condition](https://github.com/abseil/abseil-cpp/blob/20260817.0/absl/synchronization/mutex.h#L1198-L1207)
 for the out-of-line definition never triggers in conda-forge, because we _do_ 
set NDEBUG when building our artefacts - and even if we didn't, we'd still 
stumble over `!defined(ABSL_BUILD_DLL)`.
   
   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](https://github.com/abseil/abseil-cpp/blob/master/FAQ.md#what-is-abi-and-why-dont-you-recommend-using-a-pre-compiled-version-of-abseil)
 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 `NDEBUG`) of `libabseil`. This would not be "mixable" with the release 
version though, but at least you could use it for your debug tasks...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to