Cannot build on Arch Linux

I can’t build UE on Arch Linux:

ryanvade@ryanvade-arch:/build/UnrealEngine-4.6.1-release$ ./GenerateProjectFiles.sh

Setting up Unreal Engine 4 project files...

+ xbuild Source/Programs/UnrealBuildTool/UnrealBuildTool_Mono.csproj /verbosity:quiet /nologo /p:TargetFrameworkVersion=v4.0 /p:Configuration=Development
/usr/lib/mono/4.5/Microsoft.Common.targets:  warning : Reference 'Ionic.Zip.Reduced' not resolved
/usr/lib/mono/4.5/Microsoft.Common.targets:  warning : Reference 'RPCUtility' not resolved
IOS/IOSToolChain.cs(13,7): error CS0246: The type or namespace name `Ionic' could not be found. Are you missing an assembly reference?
IOS/IOSToolChain.cs(14,7): error CS0246: The type or namespace name `Ionic' could not be found. Are you missing an assembly reference?
System/RPCUtilHelper.cs(10,7): error CS0246: The type or namespace name `RPCUtility' could not be found. Are you missing an assembly reference?
System/RPCUtilHelper.cs(17,7): error CS0246: The type or namespace name `Ionic' could not be found. Are you missing an assembly reference?
ryanvade@ryanvade-arch:/build/UnrealEngine-4.6.1-release$ 


mono --version
Mono JIT compiler version 3.12.0 (tarball Thu Jan 15 18:46:56 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

 clang --version
clang version 3.5.1 (tags/RELEASE_351/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Did you run Setup.sh before running GenerateProjectFiles.sh?

Also, check your Engine/Binaries/DotNET folder for Ionic.Zip.Reduced.dll and RPCUtility.exe, perhaps they are missing (they come when executing Setup.sh)?

Maybe cloning the branch again would be the best, I suggest either Promoted or 4.7 Preview if 4.6.1 is failing.

This is happening in the epic/release branch?

Is it possible that your Mono environment is incomplete?

These are the build prereqs: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums

Those zips are missing. I did run Setup.sh before running GenerateProjectFiles.sh though. I may pull from the development branch to see if that works though I don’t want to.

Setting up Unreal Engine 4 project files…

+ xbuild Source/Programs/UnrealBuildTool/UnrealBuildTool_Mono.csproj /verbosity:quiet /nologo /p:TargetFrameworkVersion=v4.0 /p:Configuration=Development
Android/UEDeployAndroid.cs(573,11): warning CS0219: The variable `AndroidCommandPath' is assigned but its value is never used
+ xbuild Source/Programs/AutomationTool/AutomationTool_Mono.csproj /verbosity:quiet /nologo /p:TargetFrameworkVersion=v4.0 /p:Platform=AnyCPU /p:Configuration=Development
+ xbuild Source/Programs/AutomationTool/Scripts/AutomationScripts.Automation.csproj /verbosity:quiet /nologo /p:TargetFrameworkVersion=v4.0 /p:Configuration=Development
+ xbuild Source/Programs/AutomationTool/Linux/Linux.Automation.csproj /verbosity:quiet /nologo /p:TargetFrameworkVersion=v4.0 /p:Configuration=Development
/build/UnrealEngine-4.6.1-release/Engine/Source/Programs/AutomationTool/Linux/Linux.Automation.csproj:  warning : Project has unknown ToolsVersion '11.0'. Using the default tools version '2.0' instead.
/usr/lib/mono/2.0/Microsoft.Common.targets:  warning : TargetFrameworkVersion 'v4.0' not supported by this toolset (ToolsVersion: 2.0).
LinuxPlatform.Automation.cs(246,25): error CS0117: `System.IO.Directory' does not contain a definition for `EnumerateFiles'
LinuxPlatform.Automation.cs(17,91): error CS0117: `System.Environment.SpecialFolder' does not contain a definition for `UserProfile'

I have installed all of the mono packages in the Arch repositories. I beleive all of those dependencies are installed but I will have to double check.

Any updates about this or has the issue been resolved?

There is a build in AUR that mostly works. I just used it yesterday on Manjaro. Two things to consider though, first the pkgbuild needs to be edited and comment out the patch, lines 42 and 43 I believe it was, and second, remove the -02 optimization from your compiler flags. Those two changes allowed the build to go through for me. See here for details.