ninja: Entering directory `out/gn'
[1/12] CXX stage2_unix/obj/compiler-rt/lib/tsan/rtl/rtl.tsan_interceptors_posix.o
FAILED: stage2_unix/obj/compiler-rt/lib/tsan/rtl/rtl.tsan_interceptors_posix.o 
./bin/clang++ -MMD -MF stage2_unix/obj/compiler-rt/lib/tsan/rtl/rtl.tsan_interceptors_posix.o.d -o stage2_unix/obj/compiler-rt/lib/tsan/rtl/rtl.tsan_interceptors_posix.o -c ../../compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp  -I../../compiler-rt/lib -fPIE -fblocks -arch arm64 -isysroot ../../sysroot/MacOSX.sdk -mmacos-version-min=12 -mmacos-version-min=12 -O3 -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wdelete-non-virtual-dtor -Wstring-conversion -no-canonical-prefixes -Werror=date-time -isysroot ../../sysroot/MacOSX.sdk -Wpoison-system-directories -Wcovered-switch-default -fno-builtin -gline-tables-only -fPIC -funwind-tables -fvisibility=hidden -Werror=thread-safety -Werror=thread-safety-reference -Werror=thread-safety-beta -std=c++17 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti
In file included from ../../compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:2588:
../../compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:10290:36: error: invalid application of 'sizeof' to an incomplete type '__sanitizer_servent'
 10290 |                                    sizeof(__sanitizer_servent));
       |                                    ^     ~~~~~~~~~~~~~~~~~~~~~
../../compiler-rt/lib/tsan/rtl/tsan_interceptors.h:118:69: note: expanded from macro 'COMMON_INTERCEPTOR_WRITE_RANGE'
  118 |                     ((TsanInterceptorContext *)ctx)->pc, (uptr)ptr, size, \
      |                                                                     ^~~~
../../compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:10283:32: note: forward declaration of '__sanitizer_servent'
 10283 |     void *ctx, int res, struct __sanitizer_servent *result_buf, char *buf,
       |                                ^
1 error generated.
[2/12] CXX stage2_unix/obj/compiler-rt/lib/asan/asan_shared_library.asan_interceptors.o
FAILED: stage2_unix/obj/compiler-rt/lib/asan/asan_shared_library.asan_interceptors.o 
./bin/clang++ -MMD -MF stage2_unix/obj/compiler-rt/lib/asan/asan_shared_library.asan_interceptors.o.d -o stage2_unix/obj/compiler-rt/lib/asan/asan_shared_library.asan_interceptors.o -c ../../compiler-rt/lib/asan/asan_interceptors.cpp -DASAN_DYNAMIC -I../../compiler-rt/lib -arch arm64 -isysroot ../../sysroot/MacOSX.sdk -mmacos-version-min=12 -mmacos-version-min=12 -O3 -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wdelete-non-virtual-dtor -Wstring-conversion -no-canonical-prefixes -Werror=date-time -isysroot ../../sysroot/MacOSX.sdk -Wpoison-system-directories -Wcovered-switch-default -fno-builtin -gline-tables-only -fPIC -funwind-tables -fvisibility=hidden -Werror=thread-safety -Werror=thread-safety-reference -Werror=thread-safety-beta -ftls-model=initial-exec -std=c++17 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti
In file included from ../../compiler-rt/lib/asan/asan_interceptors.cpp:204:
../../compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:10290:36: error: invalid application of 'sizeof' to an incomplete type '__sanitizer_servent'
 10290 |                                    sizeof(__sanitizer_servent));
       |                                    ^     ~~~~~~~~~~~~~~~~~~~~~
../../compiler-rt/lib/asan/asan_interceptors.cpp:96:30: note: expanded from macro 'COMMON_INTERCEPTOR_WRITE_RANGE'
   96 |   ASAN_WRITE_RANGE(ctx, ptr, size)
      |                              ^~~~
../../compiler-rt/lib/asan/asan_interceptors_memintrinsics.h:85:36: note: expanded from macro 'ASAN_WRITE_RANGE'
   85 |   ACCESS_MEMORY_RANGE(ctx, offset, size, true)
      |                                    ^~~~
../../compiler-rt/lib/asan/asan_interceptors_memintrinsics.h:58:26: note: expanded from macro 'ACCESS_MEMORY_RANGE'
   58 |     uptr __size = (uptr)(size);                                           \
      |                          ^~~~
../../compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:10283:32: note: forward declaration of '__sanitizer_servent'
 10283 |     void *ctx, int res, struct __sanitizer_servent *result_buf, char *buf,
       |                                ^
1 error generated.
ninja: build stopped: subcommand failed.
Command '['ninja', '-C', 'out/gn']' returned non-zero exit status 1.