o2-Root not compiling - MacOS Ventura

Hi everyone,

My old Mac died, so I got a semi-new replacement, it has OS Ventura 13.01, with Xcode 14.1, Intel Core.

I tried to build o2:

aliBuild build O2 --defaults o2

after solving some issues it gets to

==> Building ROOT@v6-26-04-patches-alice2
==> ROOT is being built (use --debug for full output): failed
ERROR: Error while executing /Users/ejgarcia/alice/sw/SPECS/osx_x86-64/ROOT/v6-26-04-patches-alice2-local1/build.sh on `Io’.
ERROR: Log can be found in /Users/ejgarcia/alice/sw/BUILD/ROOT-latest/log
ERROR: Please upload it to CERNBox/Dropbox if you intend to request support.
ERROR: Build directory is /Users/ejgarcia/alice/sw/BUILD/ROOT-latest/ROOT.

from the log

[ 76%] Generating G__Core.cxx, …/lib/Core.pcm
While building module ‘Core’:
While building module ‘std’ imported from input_line_1:1:
In file included from :17:
In file included from /usr/local/Cellar/llvm@13/13.0.1_2/include/c++/v1/math.h:308:
/usr/local/Cellar/llvm@13/13.0.1_2/include/c++/v1/stdlib.h:142:34: error: unknown type name ‘ldiv_t’
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
^
/usr/local/Cellar/llvm@13/13.0.1_2/include/c++/v1/stdlib.h:143:12: error: no member named ‘ldiv’ in the global namespace
return ::ldiv(__x, __y);
~~^
/usr/local/Cellar/llvm@13/13.0.1_2/include/c++/v1/stdlib.h:146:34: error: unknown type name ‘lldiv_t’
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
^
/usr/local/Cellar/llvm@13/13.0.1_2/include/c++/v1/stdlib.h:148:12: error: no member named ‘lldiv’ in the global namespace
return ::lldiv(__x, __y);

Any advice is welcome.

log.txt (1.1 MB)