Download

Error when linking CrashReportClient when compiling from source in Linux

I get the following error when attempting to compile using make:

/usr/bin/ld …/UnrealEngine/Engine/Source/ThirdParty/zlib/zlib-1.2.5/Lib/Linux/x86_64-unknown-linux-gnu/libz.a(compress.o): relocation R_X86_64_32 against `.rodata.str1.1’ can not be used when making a shared object; recompile with -fPIC
…/UnrealEngine/Engine/Source/ThirdParty/zlib/zlib-1.2.5/Lib/Linux/x86_64-unknown-linux-gnu/libz.a: error adding symbols: Bad value
clang-3.8: error: linker command failed with exit code 1

I’m building with Arch Linux using Clang 3.8.1. I’ve had to modify LinuxToolChain.cs to ignore empty return statements.

I’ve also followed the instructions for adding ld.gold to the path.

Running ‘make ARGS="-fPIC"’ hasn’t resolved the error.