Repository navigation
Fix libcxx build - #2194
Fix libcxx build#2194aokblast wants to merge 1 commit into
Conversation
aokblast
commented
Nov 7, 2026
- Using malloc, free but doesn't include stdlib.h
- Using std::bad_alloc but doesn't include new
- Using exit but doesn't include stdlib.h
- Using errno but doesn't include errno.h
1. Using malloc, free but doesn't include stdlib.h 2. Using std::bad_alloc but doesn't include new 3. Using exit but doesn't include stdlib.h 4. Using errno but doesn't include errno.h
|
The changes look theoretically reasonable, but I'm not understanding the connection to libcxx? Under what conditions are you getting issues here? |
I am unable to build. It only happens on libcxx (llvm's standard C++ implementation). libstdcxx (GNU's implementation) seems include those headers by other header. This is why it doesn't trigger on libstdcxx and why I mention libcxx in here. |
|
I see. I'm not getting those builds on macOS, though, where libcxx should be used. What platform are you testing on? |
I tested this on my customized Gentoo Linux build with libcxx23. This also not happen before libcxx23 (I think they delete some include header). MacOS doesn't happen for now as they haven't ship libcxx 23. |