Error: builtin __has_trivial_destructor is deprecated

Hi all, I am trying to compile my VR project to android apk, I had a huge headache on making it work on 4.27, now I am trying to compile another project on 5.1 anfd first it was giving me errors about java, I fixed (I guess), now it shows me tjhis error:

PackagingResults: Warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
PackagingResults: Error: builtin __has_trivial_destructor is deprecated; use __is_trivially_destructible instead [-Werror,-Wdeprecated-builtins]

I couldn’t find anything about this related to Unreal, all I got is stuff related to MacOS, but I am running UE on Windows! Actually any of the projects I have here was ever on other OS, don’t even know if it’s possible but anyways. Can anyone please help me on that?

Thanks,

Just in case someone comes to this error, I fixed by digging the folder shown on the error, found a file called trivial, opened with Visual Studio, and changed the text “__has_trivial_copy” to “__is_trivially_copyable” and that worked.

1 Like


I’m hoping you’ve point me in the right direction, do you mean on this page?

Sorry just a 3D artist trying to package the VR template, I’m buried here…

Sorry for the delay to answer, but yes, that was exactly what I’ve done. Hope it worked for you too!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.