# Cross compiling for linux server failed

**URL:** <https://forums.unrealengine.com/t/cross-compiling-for-linux-server-failed/373680>\
**Category:** Platform & Builds\
**Tags:** cross-compiling, linux-server, unreal-engine, build-failed, CPP, question\
**Created:** [October 18, 2016, 3:38pm UTC](https://forums.unrealengine.com/t/cross-compiling-for-linux-server-failed/373680 "2016-10-18T15:38:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorgon\_chang](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dorgon_chang/32/1124941_2.png) [@dorgon\_chang](https://forums.unrealengine.com/u/dorgon_chang)\
**Post date:** [October 18, 2016, 3:38pm UTC](https://forums.unrealengine.com/t/cross-compiling-for-linux-server-failed/373680/1 "2016-10-18T15:38:24Z")

</div>

Hi,  
I trying to follow step in article to cross compile my linux server:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

but I get compile error, does there has any idea to fix this?

1\>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : ‘new’ file not found

```
1>------ Build started: Project: ShaderCompileWorker, Configuration: Linux_Development_Program Win32 ------
1> Using LINUX_ROOT (deprecated, consider LINUX_MULTIARCH_ROOT), building with toolchain 'D:\workspace\CrossCompile\v7_clang-3.7.0_ld-2.24_glibc-2.12.2\toolchain'
1> Performing 86 actions (4 in parallel)
1> [1/86] Compile CorePrivatePCH.h
1> [2/86] Compile CoreUObjectPrivate.h
1> [3/86] Compile Module.Json.cpp
1> [4/86] Compile Module.Projects.cpp
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\CoreUObject\CoreUObjectPrivate.h:4:
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\CoreUObjectPrivate.h:9:
1> In file included from Runtime/Core/Public\Core.h:16:
1> In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
1> #include <new>
1> ^
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\Core\CorePrivatePCH.h:4:
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\Core\Private\CorePrivatePCH.h:16:
1> In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
1> #include <new>
1> ^
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\Projects\Module.Projects.cpp:2:
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\Projects\Private\ProjectsPrivatePCH.h:6:
1> In file included from Runtime/Projects/Public\Projects.h:9:
1> In file included from Runtime/Core/Public\Core.h:16:
1> In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
1> #include <new>
1> ^
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\Json\Module.Json.cpp:2:
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\Json\Private\Dom\JsonObject.cpp:3:
1> In file included from Runtime/Json/Private\JsonPrivatePCH.h:5:
1> In file included from Runtime/Json/Public\Json.h:9:
1> In file included from Runtime/Core/Public\Core.h:16:
1> In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
1> #include <new>
1> ^
1> 1 error generated.
1> [5/86] Compile Module.RHI.cpp
1> 1 error generated.
1> 1 error generated.
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\RHI\Module.RHI.cpp:2:
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\RHI\Private\RHIPrivatePCH.h:5:
1> In file included from Runtime/RHI/Public\RHI.h:9:
1> In file included from Runtime/Core/Public\Core.h:16:
1> In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
1> #include <new>
1> ^
1> [6/86] Compile Module.RenderCore.cpp
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\RenderCore\Module.RenderCore.cpp:2:
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\RenderCore\Private\RenderCore.cpp:7:
1> In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\RenderCore\Private/RenderCorePrivatePCH.h:5:
1> In file included from Runtime/RenderCore/Public\RenderCore.h:8:
1> In file included from Runtime/Core/Public\Core.h:16:
1> In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
1> #include <new>

......
```

---

<div class="post-metadata">

**Author:** ![Mentos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mentos](https://forums.unrealengine.com/u/Mentos)\
**Post date:** [October 22, 2016, 3:47am UTC](https://forums.unrealengine.com/t/cross-compiling-for-linux-server-failed/373680/2 "2016-10-22T03:47:11Z")

</div>

I have the same issue, anyone able to resolve this?

---

<div class="post-metadata">

**Author:** ![dorgon\_chang](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dorgon_chang/32/1124941_2.png) [@dorgon\_chang](https://forums.unrealengine.com/u/dorgon_chang)\
**Post date:** [October 25, 2016, 1:08am UTC](https://forums.unrealengine.com/t/cross-compiling-for-linux-server-failed/373680/3 "2016-10-25T01:08:30Z")

</div>

It seems need open UE4.sln and build engine first.

After doing that, I can compile successful.

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [October 25, 2016, 1:12am UTC](https://forums.unrealengine.com/t/cross-compiling-for-linux-server-failed/373680/4 "2016-10-25T01:12:13Z")

</div>

You either did not run Setup.bat, or you set LINUX\_MULTIARCH\_ROOT (or older LINUX\_ROOT) variable after doing so. Also, make sure you’re syncing after this commit: [https://github.com/EpicGames/UnrealEngine/commit/e3c4f8ed231c973e305b80f79023838f6fa81afb](https://github.com/EpicGames/UnrealEngine/commit/e3c4f8ed231c973e305b80f79023838f6fa81afb)
