ERROR: Ordered comparison of function pointers, building UE4.27 from source in Xcode on M1 Mac

Hello! I tried to build UE4.27 from scratch following this tutorial: Downloading Unreal Engine Source Code | Unreal Engine 4.27 Documentation
I’ve gotten this error: /Users//Documents/GitHub/UnrealEngine/Engine/Plugins/Media/ElectraPlayer/Source/ElectraPlayerRuntime/Private/Runtime/3rdParty/FastDelegate/FastDelegate.h:602:30: error build: ordered comparison of function pointers ('Electra::fastdelegate::DelegateMemento::GenericFuncPtr' (aka 'void (*)()') and 'Electra::fastdelegate::DelegateMemento::GenericFuncPtr') [-Werror,-Wordered-compare-function-pointers]

The only potential solution that I found online was to silence this warning, although I’m not sure where to dismiss that warning flag. Is this the best way to solve this problem? Or, is there a better approach?

I would appreciate help on this, thank you so much :slight_smile:

1 Like

hello,did you solve that? i met the same problem today

if u does not find a good way. try this, change the source code. convert pointer to uint64. such as (uint64)pt_a > (uint64)pt_b

Without knowing the consequences, because I don’t really understand the solution from @cqlv I can confirm, that the solution with casting to uint64 make it work on my side