Never Ending Build Errors

HI all,

I am trying to build a project for Android and just seem to encounter endless stream of errors. I’ve completely removed the editors, re-installed, updated and still the same issues. All builds for iOS ok and runs in the editor without issue, but I am getting at least 5 errors like this:

Building Library/Bee/artifacts/Android/d8kzr/9tat_ineModule1.o failed with output:
Stack dump:
0.    Program arguments: /Users/testuser/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -cc1 -triple aarch64-unknown-linux-android22 -emit-obj -mnoexecstack -disable-free -disable-llvm-verifier -discard-value-names -main-file-name UnityEngine.TextCoreTextEngineModule1.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs -mllvm -aarch64-fix-cortex-a53-835769=1 -fallow-half-arguments-and-returns -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -target-linker-version 305 -ffunction-sections -fdata-sections -coverage-notes-file /Volumes/Projects/Projects/TestProject/Library/Bee/artifacts/Android/d8kzr/9tat_ineModule1.gcno -resource-dir /Users/testuser/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8 -D __ANDROID_API__=22 -D ANDROID -D HAVE_INTTYPES_H -D BASELIB_INLINE_NAMESPACE=il2cpp_baselib -D IL2CPP_MONO_DEBUGGER_DISABLED -D RUNTIME_IL2CPP -D TARGET_ARM64 -D HAVE_BDWGC_GC -D NDEBUG -I . -I /Volumes/Projects/Projects/TestProject/Library/Bee/artifacts/Android/il2cppOutput/cpp -I /Applications/Unity/Hub/Editor/2021.3.8f1/Unity.app/Contents/il2cpp/libil2cpp/pch -I /Applications/Unity/Hub/Editor/2021.3.8f1/Unity.app/Contents/il2cpp/libil2cpp -I /Applications/Unity/Hub/Editor/2021.3.8f1/Unity.app/Contents/il2cpp/external/baselib/Include -I /Applications/Unity/Hub/Editor/2021.3.8f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/Android/Include -internal-isystem /Users/testuser/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/c++/v1 -internal-isystem /Users/testuser/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/local/include -internal-isystem /Users/testuser/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8/include -internal-externc-isystem /Users/testuser/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/aarch64-linux-android -internal-externc-isystem /Users/testuser/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/include -internal-externc-isystem /Users/testuser/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include -Os -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Volumes/Projects/Projects/TestProject -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fwrapv -stack-protector 1 -fno-rtti -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fdiagnostics-format msvc -fcolor-diagnostics -vectorize-loops -vectorize-slp -o Library/Bee/artifacts/Android/d8kzr/9tat_ineModule1.o -x c++ /Volumes/Projects/Projects/TestProject/Library/Bee/artifacts/Android/il2cppOutput/cpp/UnityEngine.TextCoreTextEngineModule1.cpp
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module '/Volumes/Projects/Projects/TestProject/Library/Bee/artifacts/Android/il2cppOutput/cpp/UnityEngine.TextCoreTextEngineModule1.cpp'.
4.    Running pass 'CodeGen Prepare' on function '@TextGenerator_SaveGlyphVertexInfo_m0CD6E1D45488FFC6675294AC64F40AC23C986A09'
0  clang++                  0x00000001033a9f98 void std::__1::__call_once_proxy<std::__1::tuple<void (&)()> >(void*) + 452872
1  clang++                  0x00000001033a8fd8 void std::__1::__call_once_proxy<std::__1::tuple<void (&)()> >(void*) + 448840
2  clang++                  0x00000001033aa5b9 void std::__1::__call_once_proxy<std::__1::tuple<void (&)()> >(void*) + 454441
3  libsystem_platform.dylib 0x00007ff808e84c1d _sigtramp + 29
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603370431493120
5  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603370431493120
6  clang++                  0x00000001029f4edf llvm::Pass* llvm::callDefaultCtor<llvm::BreakFalseDeps>() + 65087
7  clang++                  0x00000001029ecea2 llvm::Pass* llvm::callDefaultCtor<llvm::BreakFalseDeps>() + 32258
8  clang++                  0x0000000102dc86e1 llvm::SymbolTableListTraits<llvm::BasicBlock>::toPtr(llvm::ValueSymbolTable&) + 249473
9  clang++                  0x0000000102dc89e3 llvm::SymbolTableListTraits<llvm::BasicBlock>::toPtr(llvm::ValueSymbolTable&) + 250243
10 clang++                  0x0000000102dc8fd4 llvm::SymbolTableListTraits<llvm::BasicBlock>::toPtr(llvm::ValueSymbolTable&) + 251764
11 clang++                  0x000000010357a1cb void llvm::smile:omTreeBuilder::Calculate<llvm::smile:ominatorTreeBase<llvm::VPBlockBase, false> >(llvm::smile:ominatorTreeBase<llvm::VPBlockBase, false>&) + 559739
12 clang++                  0x00000001037bd70a void llvm::smile:omTreeBuilder::Calculate<llvm::smile:ominatorTreeBase<llvm::VPBlockBase, false> >(llvm::smile:ominatorTreeBase<llvm::VPBlockBase, false>&) + 2932666
13 clang++                  0x000000010470c763 llvm::RawInstrProfReader<unsigned long long>::getCounter(unsigned long long) const + 72083
14 clang++                  0x0000000103a8044a llvm::Registry<clang::PluginASTAction>::begin() + 16218
15 clang++                  0x0000000103a1ec30 void llvm::smile:omTreeBuilder::Calculate<llvm::smile:ominatorTreeBase<llvm::VPBlockBase, false> >(llvm::smile:ominatorTreeBase<llvm::VPBlockBase, false>&) + 5428448
16 clang++                  0x0000000103afe044 llvm::Registry<clang::PluginASTAction>::begin() + 531284
17 clang++                  0x00000001021df259
18 clang++                  0x00000001021dcfd9
19 dyld                     0x000000020642e310 start + 2432
clang++: error: unable to execute command: Segmentation fault: 11
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
Target: aarch64-unknown-linux-android22
Thread model: posix
InstalledDir: /Users/testuser/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /var/folders/5j/sbt09jjn3lz1ch1x_l5tlv5h0000gn/T/UnityEngine-b9806f.cpp
clang++: note: diagnostic msg: /var/folders/5j/sbt09jjn3lz1ch1x_l5tlv5h0000gn/T/UnityEngine-b9806f.sh
clang++: note: diagnostic msg: Crash backtrace is located in
clang++: note: diagnostic msg: /Users/testuser/Library/Logs/DiagnosticReports/clang++_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang++: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
clang++: note: diagnostic msg:

********************
UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions)
Google.Android.AppBundle.Editor.Internal.BuildTools.AndroidBuilder:Build (UnityEditor.BuildPlayerOptions) (at Assets/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/AndroidBuilder.cs:178)
Google.Android.AppBundle.Editor.Internal.BuildAndRunner:EmulateUnityBuildAndRun () (at Assets/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildAndRunner.cs:91)
Google.Android.AppBundle.Editor.Internal.BuildAndRunner:BuildAndRunDefault () (at Assets/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildAndRunner.cs:69)
Google.Android.AppBundle.Editor.Internal.BuildAndRunner:BuildAndRun () (at Assets/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildAndRunner.cs:53)
Google.Android.AppBundle.Editor.Internal.AppBundleEditorMenu:BuildAndRun () (at Assets/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/AppBundleEditorMenu.cs:72)

and just don’t know what to do to get Android builds working successfully.

Seems the only way I could get it to build and run was to eventually setup the build to export an Android Studio project, the use Android Studio to build and deploy