ninja: Entering directory `out/gn' [1/6043] CXX obj/llvm/lib/Support/Support.SuffixTreeNode.o [2/6043] CXX obj/llvm/lib/Support/Support.ARMBuildAttrs.o [3/6043] CXX obj/llvm/lib/Support/Support.RWMutex.o FAILED: obj/llvm/lib/Support/Support.RWMutex.o ../../chromeclang/bin/clang++ -MMD -MF obj/llvm/lib/Support/Support.RWMutex.o.d -o obj/llvm/lib/Support/Support.RWMutex.o -c ../../llvm/lib/Support/RWMutex.cpp -I../../llvm/lib/Support/Unix -I../../llvm/lib/Support/Windows -I../../llvm/include -Igen/llvm/include -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 -fPIC -Wcovered-switch-default -std=c++17 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti ../../llvm/lib/Support/RWMutex.cpp:47:36: error: use of undeclared identifier 'safe_malloc' static_cast(safe_malloc(sizeof(pthread_rwlock_t))); ^ 1 error generated. [4/6043] CXX obj/llvm/lib/Support/Support.ConvertUTFWrapper.o [5/6043] CXX obj/llvm/lib/Support/Support.NativeFormatting.o [6/6043] CXX obj/llvm/lib/Support/Support.InitLLVM.o [7/6043] CXX obj/llvm/lib/Support/Support.MSP430AttributeParser.o [8/6043] CXX obj/llvm/lib/Support/Support.LockFileManager.o [9/6043] CXX obj/llvm/lib/Support/Support.MemoryBuffer.o [10/6043] CXX obj/llvm/lib/Support/Support.DAGDeltaAlgorithm.o [11/6043] CXX obj/llvm/lib/Support/Support.raw_ostream.o [12/6043] CXX obj/llvm/lib/Support/Support.YAMLTraits.o ninja: build stopped: subcommand failed. Command '['ninja', '-C', 'out/gn']' returned non-zero exit status 1.