Fedora build error

Hello, anyone faced with this problem, all the packages are installed, using clang 3.7, I tried on clean system(Fedora 23) follow steps by the tutorial, but result is the same.

==> BuildHLSLCC

**********  SUCCESS ****************

[root@localhost UE4]# ./GenerateProjectFiles.sh

Setting up Unreal Engine 4 project files...

+ xbuild Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj /verbosity:quiet /nologo /p:TargetFrameworkVersion=v4.5 /p:Configuration=Development
+ mono Binaries/DotNET/UnrealBuildTool.exe -makefile -kdevelopfile -qmakefile -cmakefile -codelitefile
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Writing project files... 100%
+ set +x

[root@localhost UE4]# make CrashReportClient ShaderCompileWorker UnrealLightmass UnrealPak UE4Editor
bash "/home/krama/UE4"/Engine/Build/BatchFiles/Linux/Build.sh CrashReportClient Linux Development  
Building CrashReportClient...
Using clang version '3.7.0' (string), 3 (major), 7 (minor), 0 (patch)
Creating makefile for CrashReportClient (no existing makefile)
Performing full C++ include scan (no include cache file)
Building UnrealHeaderTool...
Using clang version '3.7.0' (string), 3 (major), 7 (minor), 0 (patch)
Creating makefile for UnrealHeaderTool (no existing makefile)
Performing full C++ include scan (no include cache file)
Performing 20 actions (4 in parallel)
[2/20] Compile Module.Json.cpp
[1/20] Compile CorePrivatePCH.h
[4/20] Compile Module.CoreUObject.1_of_4.cpp
[3/20] Compile Module.Projects.cpp
[5/20] Compile Module.Core.7_of_7.cpp
[6/20] Compile Module.Core.6_of_7.cpp
[7/20] Compile Module.Core.5_of_7.cpp
[8/20] Compile Module.Core.4_of_7.cpp
[9/20] Compile Module.Core.3_of_7.cpp
[10/20] Compile Module.Core.2_of_7.cpp
[11/20] Compile Module.Core.1_of_7.cpp
[12/20] Compile Module.CoreUObject.3_of_4.cpp
[13/20] Compile Module.CoreUObject.4_of_4.cpp
[14/20] Compile Module.CoreUObject.2_of_4.cpp
[15/20] Link libUnrealHeaderTool-Core.so
[16/20] Link libUnrealHeaderTool-Json.so
[17/20] Link libUnrealHeaderTool-Projects.so
[18/20] Compile Module.UnrealHeaderTool.cpp
[19/20] Link libUnrealHeaderTool-CoreUObject.so
[20/20] Link UnrealHeaderTool
-------- End Detailed Actions Stats -----------------------------------------------------------
Total build time: 455.67 seconds
Parsing headers for CrashReportClient
  Running UnrealHeaderTool CrashReportClient "/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Development/UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -NoEnginePlugins
Refusing to run with the root privileges.
Error: Failed to generate code for CrashReportClient - error code: CrashOrAssert (3)
UnrealHeaderTool failed for target 'CrashReportClient' (platform: Linux, module info: /home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Development/UnrealHeaderTool.manifest).
Makefile:268: recipe for target 'CrashReportClient' failed
make: *** [CrashReportClient] Error 3

Here is “UnrealHeaderTool.manifest”

{"IsGameTarget":false,"RootLocalPath":"/home/krama/UE4","RootBuildPath":"/home/krama/UE4/","TargetName":"CrashReportClient","Modules":[{"Name":"CoreUObject","ModuleType":"Runtime","BaseDirectory":"/home/krama/UE4/Engine/Source/Runtime/CoreUObject","IncludeBase":"/home/krama/UE4/Engine/Source/Runtime/CoreUObject","OutputDirectory":"/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Inc/CoreUObject","ClassesHeaders":["/home/krama/UE4/Engine/Source/Runtime/CoreUObject/Classes/Object.h"],"PublicHeaders":[],"PrivateHeaders":[],"PCH":"/home/krama/UE4/Engine/Source/Runtime/CoreUObject/Private/CoreUObjectPrivate.h","GeneratedCPPFilenameBase":"/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Inc/CoreUObject/CoreUObject.generated","SaveExportedHeaders":true,"UHTGeneratedCodeVersion":"None"},{"Name":"InputCore","ModuleType":"Runtime","BaseDirectory":"/home/krama/UE4/Engine/Source/Runtime/InputCore","IncludeBase":"/home/krama/UE4/Engine/Source/Runtime/InputCore","OutputDirectory":"/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Inc/InputCore","ClassesHeaders":["/home/krama/UE4/Engine/Source/Runtime/InputCore/Classes/InputCoreTypes.h"],"PublicHeaders":[],"PrivateHeaders":[],"PCH":"/home/krama/UE4/Engine/Source/Runtime/InputCore/Private/InputCorePrivatePCH.h","GeneratedCPPFilenameBase":"/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Inc/InputCore/InputCore.generated","SaveExportedHeaders":true,"UHTGeneratedCodeVersion":"None"},{"Name":"SlateCore","ModuleType":"Runtime","BaseDirectory":"/home/krama/UE4/Engine/Source/Runtime/SlateCore","IncludeBase":"/home/krama/UE4/Engine/Source/Runtime/SlateCore","OutputDirectory":"/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Inc/SlateCore","ClassesHeaders":[],"PublicHeaders":["/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Fonts/CompositeFont.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Fonts/FontBulkData.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Fonts/FontCache.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Fonts/FontProviderInterface.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Fonts/SlateFontInfo.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Input/Events.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Input/NavigationReply.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Layout/Geometry.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Layout/Margin.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Sound/SlateSound.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Styling/SlateBrush.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Styling/SlateColor.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Styling/SlateTypes.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Styling/SlateWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Styling/SlateWidgetStyleAsset.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Styling/SlateWidgetStyleContainerBase.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Styling/SlateWidgetStyleContainerInterface.h","/home/krama/UE4/Engine/Source/Runtime/SlateCore/Public/Types/SlateEnums.h"],"PrivateHeaders":[],"PCH":"/home/krama/UE4/Engine/Source/Runtime/SlateCore/Private/SlateCorePrivatePCH.h","GeneratedCPPFilenameBase":"/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Inc/SlateCore/SlateCore.generated","SaveExportedHeaders":true,"UHTGeneratedCodeVersion":"None"},{"Name":"Slate","ModuleType":"Runtime","BaseDirectory":"/home/krama/UE4/Engine/Source/Runtime/Slate","IncludeBase":"/home/krama/UE4/Engine/Source/Runtime/Slate","OutputDirectory":"/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Inc/Slate","ClassesHeaders":[],"PublicHeaders":["/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Commands/InputChord.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/ButtonWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/CheckBoxWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/ComboBoxWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/ComboButtonWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/EditableTextBoxWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/EditableTextWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/ProgressWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/ScrollBarWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/ScrollBoxWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/SpinBoxWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Styling/TextBlockWidgetStyle.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Text/TextLayout.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Framework/Views/ITypedTableView.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Widgets/Layout/Anchors.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SScaleBox.h","/home/krama/UE4/Engine/Source/Runtime/Slate/Public/Widgets/Notifications/SProgressBar.h"],"PrivateHeaders":[],"PCH":"/home/krama/UE4/Engine/Source/Runtime/Slate/Private/SlatePrivatePCH.h","GeneratedCPPFilenameBase":"/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Inc/Slate/Slate.generated","SaveExportedHeaders":true,"UHTGeneratedCodeVersion":"None"}]}

Hey Krama-

What tutorial are you following to setup your engine? Can you list the steps you’ve taken so far and at which step you received this error? If possible, can you let me know if you get the same error on Fedora 22?

Hello .

Tutorials:

  1. A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

  2. https://forums.unrealengine.com/showthread.php?53451-Successful-4-6-0-build-on-Fedora-20-x86_64

By the second tutorial, I did only a comparison with the first, on the subject of differences or lack of any package (no more), all steps have been completed in the main tutorial. All the problems start at ‘make’, ‘Setup.sh’ says “success”.
Could it be the case in my hardware?

My system hardware is: CPU - Intel(R) Core™ i3-4150 CPU @ 3.50GHz / memory - 8Gb 4x2 1600 /kernel - 4.4.9-300.fc23.x86_64 /hdd - 60Gb ssd and 2x500 seagate in raid 0

I also saw a strange thing, after each start the building, had different error code in ‘Makefile’ such as ‘182,186,262,268,76’

sample:

Makefile:262: recipe for target ‘CrashReportClient-Linux-Shipping’ failed

Makefile:268: recipe for target ‘CrashReportClient’ failed

Sorry for my bad english.

Just to confirm, you were able to clone the engine and run both ./Setup.sh and ./GenerateProjectFiles.sh, correct? At the “make” step your terminal line should at least make ShaderCompileWorker UnrealLightmass UnrealPak UE4Editor. You can also include make UE4Game CrashReportClient for the UE4Game executable (used to create a project’s game executable when packaging) and crash report info in the case of a crash.

Yes, setup.sh gives “success”.

“./GenerateProjectFiles.sh” gives

Generating data for project indexing … 100%
Writing project files … 100%

  • set + x
     
    When you launch ‘make’ the build begins make all relevant executables.

    [Root @ localhost UE4] # make ShaderCompileWorker UnrealLightmass UnrealPak UE4Editor UE4Game
    bash “/home/krama/UE4”/Engine/Build/BatchFiles/Linux/Build.sh ShaderCompileWorker Linux Development
    Building ShaderCompileWorker …
    Using clang version ‘3.7.0’ (string), 3 (major), 7 (minor), 0 (patch)
    Creating makefile for ShaderCompileWorker (no existing makefile)
    Performing full C ++ include scan (no include cache file)
    Building UnrealHeaderTool …
    Using clang version ‘3.7.0’ (string), 3 (major), 7 (minor), 0 (patch)
    Target is up to date
    Parsing headers for ShaderCompileWorker
      Running UnrealHeaderTool ShaderCompileWorker “/home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/ShaderCompileWorker/Development/UnrealHeaderTool.manifest” -LogCmds = “Loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -NoEnginePlugins
    Refusing to run with the root privileges.
    Error: Failed to generate code for ShaderCompileWorker - error code: CrashOrAssert (3)
    UnrealHeaderTool failed for target ‘ShaderCompileWorker’ (platform: Linux, module info: /home/krama/UE4/Engine/Intermediate/Build/Linux/B4D820EA/ShaderCompileWorker/Development/UnrealHeaderTool.manifest).
    Makefile: 403: recipe for target ‘ShaderCompileWorker’ failed
    make: *** [ShaderCompileWorker] Error 3

Hey Krama-

I noticed in your logs that you are attempting to install the engine as the root user. Since the root has access to all files and bugs in the engine could affect those files, we safeguard against this by preventing the engine from installing/running on root. Let me know if installing the engine elsewhere on the computer allows you to run the editor.

Cheers

Hi ! Running as root is solved my problem, but partially, after almost 6 hours build, an error 5, and

[krama@localhost Linux]$ ./UE4Editor 
./UE4Editor: symbol lookup error: /home/krama/UE4/Engine/Binaries/Linux/libUE4Editor-Kismet.so: undefined symbol: _ZN26FGraphEditorDragDropAction9ConstructEv

[link text]1

I can only find one reference to libUE4Editor-Kismet.so in the attached log and I do not see the error you posted. Where in the install process did you run into this error? Was this part of ./GenerateProjectFiles.sh as well?

Hi , my mistake, I did not add the end of the log with an error. libUE4Editor-Kismet.so build as well.

./GenerateProjectFiles.sh

…Writing project files … 100%

  • set + x

    ERROR: UBT ERROR: Failed to produce item: /home/krama/UE4/Engine/Binaries/Linux/libUE4Editor-Renderer.so
    Total build time: 21013.89 seconds
    Makefile:193: recipe for target ‘UE4Editor’ failed
    make: *** [UE4Editor] Error 5

Hey Krama-

It appears that clang 3.7.x that’s shipped with Fedora is causing the crash during compile. Can you let me know if you’re able to install a different version of clang and then install the engine?

$ chown -R user:filepath
$ su user
$ make