Given the conditions listed in the post title, build fails with the following callstack (abreviated):
Your mono runtime and class libraries are out of sync.
The out of sync library is: /opt/unity/Editor/Data/MonoBleedingEdge/lib/mono/unityjit-linux/System.dll
When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you’re sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
Compressing using quality level 127
Compressing using quality level 127
mono_class_from_mono_type_internal: implement me 0x34
- Assertion: should not be reached at class.c:2214
Caught fatal signal - signo:6 code:-6 errno:0 addr:0x72
Obtained 42 stack frames.
#0 0x007fb50171e980 in funlockfile
#1 0x007fb501359e87 in gsignal
#2 0x007fb50135b7f1 in abort
#3 0x007fb3dc88a7c5 in monoeg_assert_abort
#4 0x007fb3dc873d06 in mono_dl_fallback_unregister
#5 0x007fb3dc88aadd in monoeg_g_logv
#6 0x007fb3dc88ac16 in monoeg_assertion_message
#7 0x007fb3dc88ac5c in mono_assertion_message_unreachable
#8 0x007fb3dc7a3e19 in mono_class_from_mono_type_internal
#9 0x007fb3dc83889d in mono_type_get_object
#10 0x007fb3dc83884b in mono_type_get_object
#11 0x0056177e7f5e86 in scripting_class_get_object(ScriptingClassPtr)
#12 0x0056177fd0c1e1 in AssetDatabase::CollectManagedImportDependencyGetters(AssetDatabase::AssetImporterSelection&, ArtifactKey const&)
#13 0x0056177fdb2187 in AssetImportManager::Import(core::hash_map<AssetDatabase::ImporterID, ImporterInfo, core::hashAssetDatabase::ImporterID, std::equal_toAssetDatabase::ImporterID > const&, dynamic_array<PostprocessorInfo, 0ul> const&, AssetResolver&, CategorizedAssets&, IImportProgress*, core::hash_set<UnityGUID, core::hash, std::equal_to > const&, ImportedAssetsReloadList*, core::hash_set<core::basic_string<char, core::StringStorageDefault >, core::hash<core::basic_string<char, core::StringStorageDefault > >, std::equal_to<core::basic_string<char, core::StringStorageDefault > > >&, CrashedAssetImportsDatabase&, OnDemandScheduler&, bool)
#14 0x0056177fdda4e4 in RefreshInternalV2(AssetDatabase::UpdateAssetOptions, ScanFilter const&, InternalRefreshFlagsV2)
#15 0x0056177fdb5bc5 in StopAssetImportingV2Internal(AssetDatabase::UpdateAssetOptions, InternalRefreshFlagsV2, ScanFilter const*, char const*)
#16 0x0056177fdb80ce in RefreshV2(AssetDatabase::UpdateAssetOptions)
#17 0x0056177fdc0df7 in VerifyAssetsForBuildTargetV2(AssetDatabase::CancelBehaviour, bool, bool)
…
Similar issue: Crash in Gitlab CI when making a Server Build on Linux 64 with Unity 2022.2.3f1