ld.lld: error: undefined symbol: FMassFragmentBitSetStructTracker::StructTracker on Linux with UE5.2

My project relies on some engine plugins, such as MassEntity. When compiling the project editor on Linux, I couldn’t find some symbols in MassEntity during the final link stage. However, I noticed that MassEntity.so has already been linked in the previous step. How can I solve this problem?

[1027/1721] Link (lld) libUnrealEditor-StructUtils.so
[1505/1903] Link (lld) libUnrealEditor-MassEntity.so

[1709/1721] Link (lld) libUnrealEditor-DungeonTarkov.so
ld.lld: error: undefined symbol: FMassFragmentBitSetStructTracker::StructTracker

referenced by Array.h:786 (Runtime/Core/Public/Containers/Array.h:786)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassFragment, FMassFragmentBitSetStructTracker, UScriptStruct>::FBitArrayExt::SetAll(bool))
referenced by StructTypeBitSet.h:423 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:423)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassFragment, FMassFragmentBitSetStructTracker, UScriptStruct>::Add(UScriptStruct const&))
referenced by StructTypeBitSet.h:357 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:357)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassFragment, FMassFragmentBitSetStructTracker, UScriptStruct>::GetTypeIndex(UScriptStruct const&))
referenced 15 more times
ld.lld: error: undefined symbol: FMassFragment::StaticStruct()
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassFragment, FMassFragmentBitSetStructTracker, UScriptStruct>::Add(UScriptStruct const&))
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassFragment, FMassFragmentBitSetStructTracker, UScriptStruct>::GetBaseUStruct())
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassFragment, FMassFragmentBitSetStructTracker, UScriptStruct>::GetTypeIndex(UScriptStruct const&))
referenced 6 more times
ld.lld: error: undefined symbol: FMassTagBitSetStructTracker::StructTracker
referenced by Array.h:786 (Runtime/Core/Public/Containers/Array.h:786)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassTag, FMassTagBitSetStructTracker, UScriptStruct>::FBitArrayExt::SetAll(bool))
referenced by StructTypeBitSet.h:423 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:423)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassTag, FMassTagBitSetStructTracker, UScriptStruct>::Add(UScriptStruct const&))
referenced by StructTypeBitSet.h:357 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:357)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassTag, FMassTagBitSetStructTracker, UScriptStruct>::GetTypeIndex(UScriptStruct const&))
referenced 15 more times
ld.lld: error: undefined symbol: FMassTag::StaticStruct()
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassTag, FMassTagBitSetStructTracker, UScriptStruct>::Add(UScriptStruct const&))
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassTag, FMassTagBitSetStructTracker, UScriptStruct>::GetBaseUStruct())
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassTag, FMassTagBitSetStructTracker, UScriptStruct>::GetTypeIndex(UScriptStruct const&))
referenced 6 more times
ld.lld: error: undefined symbol: FMassChunkFragmentBitSetStructTracker::StructTracker
referenced by Array.h:786 (Runtime/Core/Public/Containers/Array.h:786)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassChunkFragment, FMassChunkFragmentBitSetStructTracker, UScriptStruct>::FBitArrayExt::SetAll(bool))
referenced by StructTypeBitSet.h:423 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:423)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassChunkFragment, FMassChunkFragmentBitSetStructTracker, UScriptStruct>::Add(UScriptStruct const&))
referenced by StructTypeBitSet.h:357 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:357)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassChunkFragment, FMassChunkFragmentBitSetStructTracker, UScriptStruct>::GetTypeIndex(UScriptStruct const&))
referenced 15 more times
ld.lld: error: undefined symbol: FMassChunkFragment::StaticStruct()
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassChunkFragment, FMassChunkFragmentBitSetStructTracker, UScriptStruct>::Add(UScriptStruct const&))
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassChunkFragment, FMassChunkFragmentBitSetStructTracker, UScriptStruct>::GetBaseUStruct())
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassChunkFragment, FMassChunkFragmentBitSetStructTracker, UScriptStruct>::GetTypeIndex(UScriptStruct const&))
referenced 6 more times
ld.lld: error: undefined symbol: FMassSharedFragmentBitSetStructTracker::StructTracker
referenced by Array.h:786 (Runtime/Core/Public/Containers/Array.h:786)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassSharedFragment, FMassSharedFragmentBitSetStructTracker, UScriptStruct>::FBitArrayExt::SetAll(bool))
referenced by StructTypeBitSet.h:423 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:423)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassSharedFragment, FMassSharedFragmentBitSetStructTracker, UScriptStruct>::Add(UScriptStruct const&))
referenced by StructTypeBitSet.h:357 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:357)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassSharedFragment, FMassSharedFragmentBitSetStructTracker, UScriptStruct>::GetTypeIndex(UScriptStruct const&))
referenced 15 more times
ld.lld: error: undefined symbol: FMassSharedFragment::StaticStruct()
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassSharedFragment, FMassSharedFragmentBitSetStructTracker, UScriptStruct>::Add(UScriptStruct const&))
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassSharedFragment, FMassSharedFragmentBitSetStructTracker, UScriptStruct>::GetBaseUStruct())
referenced by StructUtilsTypes.h:23 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructUtilsTypes.h:23)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<FMassSharedFragment, FMassSharedFragmentBitSetStructTracker, UScriptStruct>::GetTypeIndex(UScriptStruct const&))
referenced 6 more times
ld.lld: error: undefined symbol: FMassExternalSubsystemBitSetStructTracker::StructTracker
referenced by Array.h:786 (Runtime/Core/Public/Containers/Array.h:786)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<USubsystem, FMassExternalSubsystemBitSetStructTracker, UClass>::FBitArrayExt::SetAll(bool))
referenced by StructTypeBitSet.h:423 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:423)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<USubsystem, FMassExternalSubsystemBitSetStructTracker, UClass>::Add(UClass const&))
referenced by StructTypeBitSet.h:357 (…/Plugins/Experimental/StructUtils/Source/StructUtils/Public/StructTypeBitSet.h:357)
/home/chonglou/SoulTarkov-Client/Trunk/Intermediate/Build/Linux/x64/UnrealEditor/Development/DungeonTarkov/Module.DungeonTarkov.cpp.o:(TStructTypeBitSet<USubsystem, FMassExternalSubsystemBitSetStructTracker, UClass>::GetTypeIndex(UClass const&))
referenced 15 more times
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[1710/1721] Link (lld) libUnrealEditor-DungeonTarkovEditor.so cancelled

I encountered the same problem, how did you solve it?

Add “MassEntity” to the XXModule*.build.cs which occurred error.
This way work for me.