# UE4.25 for PS4 Build Failure

**URL:** <https://forums.unrealengine.com/t/ue4-25-for-ps4-build-failure/480615>\
**Category:** Platform & Builds\
**Tags:** error, build, unreal-engine, PS4, question\
**Created:** [March 20, 2021, 6:32pm UTC](https://forums.unrealengine.com/t/ue4-25-for-ps4-build-failure/480615 "2021-03-20T18:32:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SynodicArc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SynodicArc](https://forums.unrealengine.com/u/SynodicArc)\
**Post date:** [March 20, 2021, 6:32pm UTC](https://forums.unrealengine.com/t/ue4-25-for-ps4-build-failure/480615/1 "2021-03-20T18:32:32Z")

</div>

I’m able to build our game for Windows, but we get some interesting errors when building for PS4. This one shows up repeatedly:

PackagingResults: Error: arithmetic between different enumeration types (‘EStatAllFields::Type’ and ‘EStatMetaFlags::Type’) [-Werror,-Wenum-enum-conversion]

It looks like it’s at the engine level, but it seems odd that this would be an error for PS4 but not Windows. Has anyone else encountered this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4ad2f515](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4ad2f515](https://forums.unrealengine.com/u/anonymous_user_4ad2f515)\
**Post date:** [August 16, 2021, 11:10am UTC](https://forums.unrealengine.com/t/ue4-25-for-ps4-build-failure/480615/2 "2021-08-16T11:10:54Z")

</div>

GetCLArguments\_Global() is supposed to have an entry to silence this error: -Wno-enum-enum-conversion

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7edabaeb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7edabaeb](https://forums.unrealengine.com/u/anonymous_user_7edabaeb)\
**Post date:** [August 20, 2021, 8:02am UTC](https://forums.unrealengine.com/t/ue4-25-for-ps4-build-failure/480615/3 "2021-08-20T08:02:15Z")

</div>

I found this function in ‘LinuxToolchain.cs’ Is that the only place this should be appended at?  
Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4ad2f515](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4ad2f515](https://forums.unrealengine.com/u/anonymous_user_4ad2f515)\
**Post date:** [August 23, 2021, 9:35pm UTC](https://forums.unrealengine.com/t/ue4-25-for-ps4-build-failure/480615/4 "2021-08-23T21:35:16Z")

</div>

The original poster was asking about PS4, so it’s PS4ToolChain.cs … but this does look like the same place for Linux targets via LinuxToolChain.cs
