Hi guys. I am trying to build UE4Editor on Arch Linux. Unfortunally the build process of the Editor (i.e. “make UE4Editor”) fails at a certain stage.
I’m getting the following error message:
[853/862] Link libUE4Editor-WorldBrowser.so
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: /home/dbulczak/Development/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Renderer.so
Total build time: 2667.29 seconds
Makefile:193: recipe for target 'UE4Editor' failed
Thus the linking of libUE4Editor-Renderer.so with libUE4Editor-WorldBrowser seems to fail. Build of Linux Debug version (make UE4Editor-Linux-Debug) works, but it is quite slow thus I want to use the release build. Does anyone know how to fix my issue?
Edit:
I have just restarted “make UE4Editor” and I receive the following error message:
1. parser at end of file
2. /home/dbulczak/Development/UnrealEngine/Engine/Source/Runtime/Renderer/Private/SceneVisibility.cpp:267:14: instantiating function definition 'FrustumCull'
3. /home/dbulczak/Development/UnrealEngine/Engine/Source/Runtime/Renderer/Private/SceneVisibility.cpp:286:4 <Spelling=/home/dbulczak/Development/UnrealEngine/Engine/Source/Runtime/Core/Public/Stats/Stats2.h:1715:33>: instantiating function definition ‘GetStatName’
4. /home/dbulczak/Development/UnrealEngine/Engine/Source/Runtime/Renderer/Private/SceneVisibility.cpp:286:4 <Spelling=/home/dbulczak/Development/UnrealEngine/Engine/Source/Runtime/Core/Public/Stats/Stats2.h:1715:33>: LLVM IR generation of declaration ‘FrustumCull(const FScene *, FViewInfo &)::(anonymous class)::operator()(int32)::FStat_STAT_FrustumCull_Loop::GetStatName’
5. /home/dbulczak/Development/UnrealEngine/Engine/Source/Runtime/Renderer/Private/SceneVisibility.cpp:286:4 <Spelling=/home/dbulczak/Development/UnrealEngine/Engine/Source/Runtime/Core/Public/Stats/Stats2.h:1715:33>: Mangling declaration ‘FrustumCull(const FScene *, FViewInfo &)::(anonymous class)::operator()(int32)::FStat_STAT_FrustumCull_Loop::GetStatName’
clang-3.7: error: unable to execute command: Segmentation fault (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.7: note: diagnostic msg: PLEASE submit a bug report to Bugzilla Main Page and include the crash backtrace, preprocessed source, and associated run script.
clang-3.7: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.7: note: diagnostic msg: /tmp/Module-e3c695.cpp
clang-3.7: note: diagnostic msg: /tmp/Module-e3c695.sh
clang-3.7: note: diagnostic msg:
********************
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: /home/dbulczak/Development/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Renderer.so
Total build time: 14.80 seconds
Makefile:193: recipe for target 'UE4Editor' failed
make: *** [UE4Editor] Error 5
Thus it seems, that clang 3.7 can not compile some files. Any solution for this problem?
At this point I’m wondering if this has something to do with the fact that I’m using NVIDIA’s Optimus technology in this particular laptop. Unfortunately I can’t disable the integrated Intel GPU and use the discreet card exclusively.
Are you also using Optimus (bumblebee/primus/optirun)? I mentioned in the forum post that my other laptop is using the discreet card exclusively and can compile and run the Editor just fine on a similar Fedora 23 setup as my Optimus computer.
Thanks for post yours solutions. But don’t work here. I tried many times. Resulting on this:
[55/896] Compile Module.UnrealEd.14_of_21.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to Bugzilla Main Page and include the crash backtrace, preprocessed source, and associated run script.
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-d40934.cpp
clang: note: diagnostic msg: /tmp/Module-d40934.sh
clang: note: diagnostic msg:
[123/896] Compile Module.Kismet.5_of_5.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to Bugzilla Main Page and include the crash backtrace, preprocessed source, and associated run script.
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-1e365d.cpp
clang: note: diagnostic msg: /tmp/Module-1e365d.sh
clang: note: diagnostic msg:
[124/896] Compile AIModule.generated.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to Bugzilla Main Page and include the crash backtrace, preprocessed source, and associated run script.
[126/896] Compile Module.DatabaseSupport.cpp
[125/896] Compile Module.HardwareSurvey.cpp
[127/896] Compile Module.UMG.cpp
[128/896] Compile UMG.generated.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-ec07c9.cpp
clang: note: diagnostic msg: /tmp/Module-ec07c9.sh
clang: note: diagnostic msg:
[206/896] Compile Module.GraphEditor.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to Bugzilla Main Page and include the crash backtrace, preprocessed source, and associated run script.
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-21aaf3.cpp
clang: note: diagnostic msg: /tmp/Module-21aaf3.sh
clang: note: diagnostic msg:
[280/896] Compile Module.LevelEditor.1_of_3.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to Bugzilla Main Page and include the crash backtrace, preprocessed source, and associated run script.
[281/896] Compile Module.LevelEditor.2_of_3.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-a391e8.cpp
clang: note: diagnostic msg: /tmp/Module-a391e8.sh
clang: note: diagnostic msg:
[296/896] Compile Module.KismetCompiler.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to Bugzilla Main Page and include the crash backtrace, preprocessed source, and associated run script.
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-314de1.cpp
clang: note: diagnostic msg: /tmp/Module-314de1.sh
clang: note: diagnostic msg:
[369/896] Compile Module.Documentation.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to Bugzilla Main Page and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to Bugzilla Main Page and include the crash backtrace, preprocessed source, and associated run script.
[370/896] Compile Paper2D.generated.cpp
[371/896] Compile Module.Paper2D.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-36bab4.cpp
clang: note: diagnostic msg: /tmp/Module-36bab4.sh
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-5a5f70.cpp
clang: note: diagnostic msg: /tmp/Module-5a5f70.sh
clang: note: diagnostic msg:
[693/896] Link libUE4Editor-UE4Game.so
ERROR: UBT ERROR: Failed to produce item: /home/fabiomen10/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-UnrealEd.so
Total build time: 4254,22 seconds
make: *** [Makefile:188: UE4Editor] Error 5