添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

I tried to build Unreal Engine (release Version) on Arch Linux (which is up to date) using this tutorial and my normal useraccount without root privileges.
However it won’t build, as it fails to create the CrashReportClient. I do not know how to fix this, help would be much appreciated.
This is the output after using make the second time.

/usr/bin/ld: final link failed: Nonrepresentable section on output
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: UBT ERROR: Failed to produce item: /home/jefrww/UnrealEngine/UnrealEngine/Engine/Binaries/Linux/CrashReportClient
Total build time: 2,47 seconds (Local executor: 0,00 seconds)
make: *** [Makefile:252: CrashReportClient-Linux-Shipping] Fehler 5
              

I’m having the same issue with the release branch on Manjaro Linux (based on Arch Linux), freshly updated. There were a bunch of lines above that error similar to this:

/usr/bin/ld: /home/whitelynx/Development/Other/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_dataqueue.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

A reboot hasn’t helped, and doing git clean -dfx && ./Setup.sh && ./GenerateProjectFiles.sh && make hasn’t helped… I’m a bit stumped. I’m curious why it’s not using -fPIC, though.

Looks like it’s a problem with the version of clang installed by default. The Arch Linux section of the Epic Wiki’s Building on Linux page suggests using clang35; just replacing the normal clang package with clang35 works for me:

sudo pacman -S clang35
make ARGS="-clean" && ./Setup.sh && ./GenerateProjectFiles.sh && make

The “faster and easier” workaround they suggest ( ln -s /bin/ld.bfd ~/bin/ld.gold ) didn’t work as advertised… It may work if you link to ld instead of ld.gold, but I haven’t tried that yet.

It would be useful if the official Linux Quick Start guide mentioned the Distro Specific Instructions section of the wiki.