Can't build Unreal Engine 4 on Ubuntu

I got this:

[77/690] Compile Module.Kismet.4_of_4.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)

(Аfter this command:
make UE4Editor UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass)

Can you provide more updated build instructions. Would be nice if you try to build it today on one of the current Ubuntu versions (14.04 or 14.10) (or Fedora 22).

Make sure to follow this tutorial to the letter: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

Also, is it downloading everything all right?
Because I just built the engine in Ubuntu just fine 2 days ago.

Downloading is OK.
I got this:

[77/690] Compile Module.Kismet.4_of_4.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)

(Аfter this command:
make UE4Editor UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass)

What version of clang are you using?

If your version is 3.3 or 3.5, make sure that it is installed correctly. (3.5 is the recommended one.)

If this doesn’t help, update all drivers, update ubuntu… If that doesn’t work. Post this on the answehub… And wait for the staff to get to it.

clang-3.5 is installed.
Here is more exact info:


[77/690] Compile Module.Kismet.4_of_4.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Ubuntu clang version 3.5.0-4ubuntu2~trusty2 (tags/RELEASE_350/final) (based on LLVM 3.5.0)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://bugs.debian.org/ and include the crash backtrace, preprocessed source, and associated run script.
[78/690] Compile Kismet.generated.cpp
[79/690] Compile Module.LogVisualizer.cpp
[80/690] Compile Module.UMG.cpp
clang: note: diagnostic msg:


PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/Module-36c7aa.cpp
clang: note: diagnostic msg: /tmp/Module-36c7aa.sh
clang: note: diagnostic msg:


Second time it happened again.
I did it on Ubuntu 14.04.3

What distro/version/CPU you used ?

I tryed on Ubuntu 15.04. That is waht I got:

[21/21] Link UnrealHeaderTool
-------- End Detailed Actions Stats -----------------------------------------------------------
Total build time: 120.53 seconds
Parsing headers for ShaderCompileWorker
Using binned.
[2015.09.28-16.05.25:119] 0]LogLinux:Warning: dlopen failed: /media/Data/UnrealEngine-release/Engine/Binaries/Linux/: cannot read file data: Is a directory
[2015.09.28-16.05.25:119] 0]LogModuleManager:Warning: ModuleManager: Unable to load module ‘/media/Data/UnrealEngine-release/Engine/Binaries/Linux/’ because the file couldn’t be loaded by the OS.
[2015.09.28-16.05.25:119] 0]LogLinux:Warning: dlopen failed: /media/Data/UnrealEngine-release/Engine/Binaries/Linux/: cannot read file data: Is a directory
[2015.09.28-16.05.25:119] 0]LogModuleManager:Warning: ModuleManager: Unable to load module ‘/media/Data/UnrealEngine-release/Engine/Binaries/Linux/’ because the file couldn’t be loaded by the OS.
[2015.09.28-16.05.25:119] 0]LogLinux:Warning: dlopen failed: /media/Data/UnrealEngine-release/Engine/Binaries/Linux/: cannot read file data: Is a directory
[2015.09.28-16.05.25:119] 0]LogModuleManager:Warning: ModuleManager: Unable to load module ‘/media/Data/UnrealEngine-release/Engine/Binaries/Linux/’ because the file couldn’t be loaded by the OS.
[2015.09.28-16.05.25:119] 0]LogLinux:Warning: dlopen failed: /media/Data/UnrealEngine-release/Engine/Binaries/Linux/: cannot read file data: Is a directory
[2015.09.28-16.05.25:119] 0]LogModuleManager:Warning: ModuleManager: Unable to load module ‘/media/Data/UnrealEngine-release/Engine/Binaries/Linux/’ because the file couldn’t be loaded by the OS.
[2015.09.28-16.05.25:119] 0]LogTaskGraph: Started task graph with 3 named threads and 6 total threads.
[2015.09.28-16.05.25:119] 0]LogTextLocalizationManager: The requested culture (‘en_US’) has no localization data; parent culture’s (‘en’) localization data will be used.
[2015.09.28-16.05.25:178] 0]LogCompile: UHT Command Line: /media/Data/UnrealEngine-release/Engine/Source/…/Binaries/Linux/UnrealHeaderTool ShaderCompileWorker /media/Data/UnrealEngine-release/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/ShaderCompileWorker/Development/UnrealHeaderTool.manifest “-LogCmds=loginit warning, logexit warning, logdatabase error”
[2015.09.28-16.05.25:179] 0]LogCompile: Loaded manifest: /media/Data/UnrealEngine-release/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/ShaderCompileWorker/Development/UnrealHeaderTool.manifest
[2015.09.28-16.05.25:179] 0]LogCompile: Manifest.IsGameTarget=False
[2015.09.28-16.05.25:179] 0]LogCompile: Manifest.RootLocalPath=/media/Data/UnrealEngine-release
[2015.09.28-16.05.25:179] 0]LogCompile: Manifest.RootBuildPath=/media/Data/UnrealEngine-release/
[2015.09.28-16.05.25:179] 0]LogCompile: Manifest.TargetName=ShaderCompileWorker
[2015.09.28-16.05.25:179] 0]LogCompile: Manifest.Modules=1
[2015.09.28-16.05.25:180] 0]LogCompile: CoreUObject
[2015.09.28-16.05.25:180] 0]LogCompile: .BaseDirectory=/media/Data/UnrealEngine-release/Engine/Source/Runtime/CoreUObject/
[2015.09.28-16.05.25:180] 0]LogCompile: .IncludeBase=/media/Data/UnrealEngine-release/Engine/Source/Runtime/CoreUObject/
[2015.09.28-16.05.25:180] 0]LogCompile: .GeneratedIncludeDirectory=/media/Data/UnrealEngine-release/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/ShaderCompileWorker/Inc/CoreUObject/
[2015.09.28-16.05.25:180] 0]LogCompile: .SaveExportedHeaders=True
[2015.09.28-16.05.25:180] 0]LogCompile: .GeneratedCPPFilenameBase=/media/Data/UnrealEngine-release/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/ShaderCompileWorker/Inc/CoreUObject/CoreUObject.generated
[2015.09.28-16.05.25:180] 0]LogCompile: .ModuleType=Runtime
[2015.09.28-16.05.25:185] 0]LogCompile: Preparsed module /Script/CoreUObject containing 1 files(s) in 0.01 secs.
[2015.09.28-16.05.25:202] 0]LogCompile: Exporting native class declarations for /Script/CoreUObject
[2015.09.28-16.05.25:225] 0]LogCompile: Autogenerating boilerplate cpp: CoreUObject.generated.cpp
[2015.09.28-16.05.25:264] 0]LogCompile: Exported updated C++ header: /media/Data/UnrealEngine-release/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/ShaderCompileWorker/Inc/CoreUObject/Object.generated.h
[2015.09.28-16.05.25:271] 0]LogCompile: Exported updated C++ header: /media/Data/UnrealEngine-release/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/ShaderCompileWorker/Inc/CoreUObject/CoreUObject.generated.dep.h
[2015.09.28-16.05.25:278] 0]LogCompile: Exported updated C++ header: /media/Data/UnrealEngine-release/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/ShaderCompileWorker/Inc/CoreUObject/CoreUObject.generated.cpp
[2015.09.28-16.05.25:280] 0]LogCompile: Success: Parsed 944 line(s), 57 statement(s) in 0.08 secs.
[2015.09.28-16.05.25:280] 0]LogCompile: Preparsing 1 modules took 0.005148 seconds
[2015.09.28-16.05.25:280] 0]LogCompile: Parsing took 0.017615 seconds
[2015.09.28-16.05.25:280] 0]LogCompile: Code generation took 0.077391 seconds
[2015.09.28-16.05.25:280] 0]LogCompile: ScriptPlugin overhead was 0.000000 seconds
[2015.09.28-16.05.25:280] 0]LogCompile: Macroize time was 0.000101 seconds
[2015.09.28-16.05.25:280] 0]LogCompile: Tabify time was was 0.003071 seconds

After this I can’t do this: ./UE4Editor. There is no such file.

I have a AMD fx 4100 3.8 GHZ cpu.

16 gb of memory. (Though I have built it fine with 8gb)

A gtx 550ti video card.

And Ubuntu 14.04 and 15.04.

Now, about clang.
try using 3.3 with it. Sometimes it builds correctly with that.

What should I change in build commands in order to not to install clang 3.5 instead (don’t overlap 3.3, I mean what if it will look for 3.5 instead of 3.3) ?

Before you do this! You are not using the root user are you? Because it has WEIRD problems when building and running UE4. (You are doing this in a file in the desktop right? Because it works great there. And all dependices are installed right?)

I believe you will have to uninstall it to do this. (If it doesn’t work… It Shouldn’t hurt anything. You can just reinstall it.)

Type this: sudo apt-get remove clang-3.5

type this: sudo apt-get install clang-3.3

hope that it works. If it doesn’t, drop this by Epic. (In the answerhub or in the engine source thread.)

It is already on answerhub.
Not root, dependicies is ok.
I did install clang-3.3 on 14.0.4.3, I have not succeed when tried to install it on 15.04.
And it doesn’t help - on 14.04.3 with clang-3.3 there was the same problem as on 15.04 with clang-3.5.

I’m sorry to hear that didn’t work.
Best of luck man.

Please anyone write here commands that was used for successfull building, not links, maybe I missed something.
And also interesting: is there still anyone has a problem with building?

Try these. Because I just built the editor today with them.
P.S. The Dollar sign is not needed!

$ cd UnrealEngine (Or wherever you put it.)
$ ./Setup.sh
$ ./GenerateProjectFiles.sh

once that is done. Do this

make UE4Editor ARGS=-clean

for the final step.

$ make UE4Editor UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass
$ make -j1 ShaderCompileWorker

And that worked for me.

You should write “ARGS=-clean” right in this command:

$ make UE4Editor ARGS=-clean UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass

No necessary to do this:
$ make UE4Editor ARGS=-clean
and this:
$ make UE4Editor UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass

I was doing all correctly, like you. Thanks.

I do it seperate so I can view if it did it right.

I hope you got it working.

EDIT: Just curious… What is you’re system specs?

Asus X550Z:

  • AMD ELITE QUAD CORE A10 7400P,
  • RADEON HD 8670M 2GB,
  • 8 Gb RAM

Some time ago I tryed do it on Lenovo, I compiled it but UE4 could be loaded to 75%. Nowdays on Lenovo I can’t compile it.

Hmm… That definitly doesn’t sound like a Hardware problem.
What drivers are you using inside Linux? Mesa or company?

Ubuntu’s drivers - non-proprietary, I did not install the drivers from anywhere.

It works better to use the company’s drivers for Unreal 4.
Mesa drivers would always crash UE4. (For me they would.)

I would suggest not using Ubuntu’s drivers whilst Using UE4.

I tried, it doesn’t change anything.

Are you using a 64bit OS? (I’m running out of ideas man.)