# Linux packaging fails

**URL:** <https://forums.unrealengine.com/t/linux-packaging-fails/480161>\
**Category:** Platform & Builds\
**Tags:** Linux, critical-error, unreal-engine, question\
**Created:** [April 3, 2021, 7:41am UTC](https://forums.unrealengine.com/t/linux-packaging-fails/480161 "2021-04-03T07:41:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![behrtron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@behrtron](https://forums.unrealengine.com/u/behrtron)\
**Post date:** [March 20, 2021, 11:00pm UTC](https://forums.unrealengine.com/t/linux-packaging-fails/480161/1 "2021-03-20T23:00:53Z")

</div>

Im having the same issue with a fresh source build and blank project, did you ever find a solution to this?

---

<div class="post-metadata">

**Author:** ![ACBYTES](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ACBYTES](https://forums.unrealengine.com/u/ACBYTES)\
**Post date:** [March 21, 2021, 7:34pm UTC](https://forums.unrealengine.com/t/linux-packaging-fails/480161/2 "2021-03-21T19:34:26Z")

</div>

The “Missing cached shader map” is somehow referring to shaders that have not been compiled. Maybe you can rebuild your whole project and wait for shaders to get compiled. Remember that you shouldn’t try to package your project while the engine is trying to compile the shaders. If you’re still facing this problem, try typing “recompileshaders all” in console.

---

<div class="post-metadata">

**Author:** ![SasMaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SasMaster](https://forums.unrealengine.com/u/SasMaster)\
**Post date:** [April 1, 2021, 4:08pm UTC](https://forums.unrealengine.com/t/linux-packaging-fails/480161/3 "2021-04-01T16:08:57Z")

</div>

Bw, I found that the builds fails when using Linux 64bit mode. Regular Linux builds correct. It happens not only on Windows when cross-compiling but also on the Linux OS (using Ubuntu 20.04)

---

<div class="post-metadata">

**Author:** ![SasMaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SasMaster](https://forums.unrealengine.com/u/SasMaster)\
**Post date:** [April 3, 2021, 7:41am UTC](https://forums.unrealengine.com/t/linux-packaging-fails/480161/4 "2021-04-03T07:41:46Z")

</div>

Hi. I am cross-compiling a project to Linux target from windows. I took a basic scene from Industrial/Architecture templates. Nothing else in the scene but the compass mesh which is a part of SunSky BP. The compilation stage passes okay. It fails on the cooking stage with the following error:

> ATHelper: Packaging (Linux (AArch64)):  
> LogMaterial: Display: Missing cached  
> shader map for material M\_ArrowColor,  
> compiling. UATHelper: Packaging (Linux  
> (AArch64)): LogWindows: Error:  
> begin: stack for UAT UATHelper:  
> Packaging (Linux (AArch64)):  
> LogWindows: Error: === Critical error:  
> === UATHelper: Packaging (Linux (AArch64)): LogWindows: Error:  
> UATHelper: Packaging (Linux  
> (AArch64)): LogWindows: Error: Fatal  
> error! UATHelper: Packaging (Linux  
> (AArch64)): LogWindows: Error:  
> UATHelper: Packaging (Linux  
> (AArch64)): LogWindows: Error:  
> UATHelper: Packaging (Linux  
> (AArch64)): LogWindows: Error: end:  
> stack for UAT PackagingResults: Error:  
> begin: stack for UAT PackagingResults:  
> Error: === Critical error: ===  
> PackagingResults: Error: Fatal error!  
> PackagingResults: Error: end: stack  
> for UAT UATHelper: Packaging (Linux  
> (AArch64)): Took 107.7248554s to run  
> UE4Editor-Cmd.exe, ExitCode=3  
> UATHelper: Packaging (Linux  
> (AArch64)): ERROR: Cook failed.  
> UATHelper: Packaging (Linux  
> (AArch64)): (see  
> D:\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\Log.txt  
> for full exception trace)  
> PackagingResults: Error: Cook failed.  
> UATHelper: Packaging (Linux  
> (AArch64)): AutomationTool exiting  
> with ExitCode=25  
> (Error\_UnknownCookFailure) UATHelper:  
> Packaging (Linux (AArch64)): BUILD  
> FAILED PackagingResults: Error:  
> Unknown Cook Failure

This " Missing cached shader map for material M\_ArrowColor," is the cause of the error, I believe. I investigated this material and found nothing wrong there. I also enabled the compass mesh for the rendering as it was set to be editor only. Nothing changed.

UPDATE (1.04.2021)

I found that the builds fails when using Linux 64bit mode. Regular Linux builds correct. It happens not only on Windows when cross-compiling but also on the Linux OS (using Ubuntu 20.04). I tried all kind of levels (even empty ) but the Linux AArch64 mode always fails. Maybe someone from the Epic stuff could explain what’s going on with that mode?
