thisisnic opened a new issue, #50987:
URL: https://github.com/apache/arrow/issues/50987

   (Written by Claude, message reviewed by @thisisnic before posting)
   
   Since #50785 was merged, Arrow C++ fails to compile in the R macOS CRAN 
nightly (`test-r-macos-as-cran`, `cran-release` config):
   
   
https://github.com/ursacomputing/crossbow/actions/runs/32845953430/job/97795549784
   
   ```
   cpp/src/arrow/util/bitmap_ops.cc:230:57: error: no template named 'identity' 
in namespace 'std'; did you mean '__identity'?
   ```
   
   The same error appears at lines 307 and 323 
(`MapBitmapUnary<std::identity>`):
   
https://github.com/apache/arrow/blob/577d3b9c4bd64ad1bdd12dcaaf115b88ac626e0e/cpp/src/arrow/util/bitmap_ops.cc#L230
   
   This job builds against the macOS 11.3 SDK to match CRAN's macOS builder. 
The libc++ headers in that SDK predate `std::identity` (added in libc++ 12 / 
macOS 12 SDK), so it is unavailable even with `-std=gnu++20`. The `cran-m1` 
config, which uses the current Xcode SDK, passes.
   
   This is the only use of `std::identity` in `cpp/src`, so replacing it with a 
local identity functor should be enough. Without a fix, the R package will fail 
to build on CRAN's macOS builder at the next release.
   


-- 
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