github-actions[bot] commented on code in PR #68595:
URL: https://github.com/apache/doris/pull/68595#discussion_r4135156473
##########
env.sh:
##########
@@ -69,7 +69,13 @@ CELLARS=(
wget
pcre
maven
- llvm@20
+ # 22.1.8 is the first compiler-rt whose ASAN runtime survives macOS 26.4+:
+ # dyld reimplemented dyld_shared_cache_iterate_text in Swift there and its
+ # _Block_copy allocation re-enters ASAN init, so every -fsanitize=address
+ # binary built with llvm@20 deadlocks before main()
(llvm/llvm-project#182943,
+ # fixed in 22.1.8; no 20.x or 21.x backport exists). That is the BE's
compiler:
+ # thirdparty/build-thirdparty.sh keeps the third-party libraries on
llvm@20.
+ llvm@22
Review Comment:
[P2] Refresh existing CMake trees when switching to LLVM 22
On a Mac with `be/ut_build_ASAN` already configured under LLVM 20, changing
the compiler selected here does not change that build: `run-be-ut.sh` reuses
the directory by default, and [CMake caches the compiler after first
configuration](https://cmake.org/cmake/help/latest/envvar/CC.html) despite the
new `CC`/`CXX`. The same applies to `build.sh`'s existing BE tree. A developer
pulling this fix and rerunning the default ASAN tests can therefore still link
LLVM 20's runtime and hang before `main()` on macOS 26.4+. Detect and reset a
mismatched compiler cache, or include an explicit `--clean` migration step for
both BE and UT trees.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]