Repository navigation
libcxxabi: Include <sys/random.h> for getentropy on Darwin - #157
Merged
Merged
Conversation
macOS declares `getentropy` in `<sys/random.h>`, not in `<unistd.h>`, so the thread_local destructor secret from #155 did not compile there. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=109239&sha=59f88c278ff1593e4a17d69a24474ce2ecbf84b6&name_0=PR&name_1=Build%20%28arm_darwin%29 Related: #155 Related: ClickHouse/ClickHouse#109239 Co-Authored-By: Claude Opus 5.5 <[email protected]>
thevar1able
added a commit
to ClickHouse/ClickHouse
that referenced
this pull request
Nov 16, 2026
…atexit.cpp` The previous bump used `getentropy` from `<unistd.h>`, which macOS declares in `<sys/random.h>` instead. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=109239&sha=59f88c278ff1593e4a17d69a24474ce2ecbf84b6&name_0=PR&name_1=Build%20%28arm_darwin%29 Related: ClickHouse/llvm-project#157 Co-Authored-By: Claude Opus 5.5 <[email protected]>
alexey-milovidov
added a commit
to ClickHouse/ClickHouse
that referenced
this pull request
Nov 16, 2026
… fix for illumos Advances the submodule to the tip of `ClickHouse/release-23.x`, which initializes the secret with `getentropy` on non-Linux platforms (ClickHouse/llvm-project#155, ClickHouse/llvm-project#157) and includes an `InstCombine` fix (ClickHouse/llvm-project#156). Co-Authored-By: Claude Opus 5.5 <[email protected]>
alexey-milovidov
added a commit
to ClickHouse/ClickHouse
that referenced
this pull request
Nov 17, 2026
The previous bump pulled in the `thread_local` destructor secret change in `libcxxabi`, which calls `getentropy` without including `<sys/random.h>` on macOS. Move to the tip of `ClickHouse/release-23.x`, which adds that include (ClickHouse/llvm-project#157). CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=132041&sha=dbd91ed5a46a8ceaaaafc6c0c0075458f86e5cad&name_0=PR&name_1=Build%20%28arm_darwin%29 Related: #132041 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#155 seeds the
thread_localdestructor secret withgetentropyoutside Linux and gets it from<unistd.h>. macOS declaresgetentropyin<sys/random.h>instead, socxa_thread_atexit.cppno longer compiles there:use of undeclared identifier 'getentropy'. Include<sys/random.h>on__APPLE__.Checked by compiling the same include block for
arm64-apple-macos11,x86_64-pc-freebsd13andx86_64-pc-solaris2.11against their sysroots.CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=109239&sha=59f88c278ff1593e4a17d69a24474ce2ecbf84b6&name_0=PR&name_1=Build%20%28arm_darwin%29
Related: #155
Related: ClickHouse/ClickHouse#109239
🤖 Generated with Claude Code