Cross compile linux build, from Win7, fail

Not able to compile the development linux platform.

One thing, there was no Setup.bat file in the 4.0 clang tools download, I took the script from the previous version. There was not mention in the instructions that the tool was removed though.

No game.exe is made in E:\UnrealEngine\Engine\Binaries\Linux

1>------ Build started: Project: ShaderCompileWorker, Configuration: Linux_Development_Program Win32 ------
1>…..\Build\BatchFiles\Build.bat ShaderCompileWorker Linux Development -waitmutex
1>Creating makefile for ShaderCompileWorker (Build.version is newer)
1>Using LINUX_MULTIARCH_ROOT, building with toolchain ‘E:\Linux_CrossCompileToolChain\v9_clang-4.0.0-centos7\x86_64-unknown-linux-gnu’

1>[17/80] Link libShaderCompileWorker-Core.so
1>/usr/bin/ld: this linker was not configured to use sysroots
1>clang++.exe : error : linker command failed with exit code 1 (use -v to see invocation)

and error results:
Severity Code Description Project File Line Suppression State
Error linker command failed with exit code 1 (use -v to see invocation) ShaderCompileWorker E:\UnrealEngine\Engine\Intermediate\ProjectFiles\clang++.exe 1
Error Failed to produce item: E:\UnrealEngine\Engine\Binaries\Linux\libShaderCompileWorker-Core.so ShaderCompileWorker E:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command “…..\Build\BatchFiles\Build.bat ShaderCompileWorker Linux Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. ShaderCompileWorker C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44
Error linker command failed with exit code 1 (use -v to see invocation) UE4 E:\UnrealEngine\Engine\Intermediate\ProjectFiles\clang++.exe 1
Error Failed to produce item: E:\UnrealEngine\Engine\Binaries\Linux\UE4Game UE4 E:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command “…..\Build\BatchFiles\Build.bat UE4Game Linux Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. UE4 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44

For someone who runs into this.

cygwin was installed on my environment, and the correct linker wasn’t being used. temporarily renaming the cygwin folder and then re running the clang toolchain setup.bat fixed this and it cross comiles from windows to linux.