Compilation error "make Error 6"

Got some cryptic error message from make. “Error 6” - apparently this code have something to do with indentation.
(make docs says: Error 6 - The shell line was longer than the command processor allowed.)

[2732/2782] Link (lld) libUE4Editor-UE4Game.so
[2733/2782] Copy libtbb.so.2
make: *** [Makefile:1008: UE4Editor] Error 6

No idea what to do now. Google doesn’t help.
Please help me.

Unfortunately I don’t have an answer but can corroborate the error.

[2730/2782] Link (lld) libUE4Editor-UE4Game.so
[2731/2782] Link (lld) libUE4Editor-Advertising.so
[2732/2782] Link (lld) libUE4Editor-BlankModule.so
[2733/2782] Link (lld) libUE4Editor-IPC.so
[2734/2782] Link (lld) libUE4Editor-BlankPlugin.so
[2735/2782] Link (lld) libUE4Editor-CrashDebugHelper.so
[2736/2782] Copy libtbb.so.2
make: *** [Makefile:1008: UE4Editor] Error 6

The system I’m trying to build on is Ubuntu 20.04 with a pretty basic setup (8 core/16mb RAM). The source was downloaded on 6/11/21 (version 4.26.2) from the Github repo. If there any any technical details about my system that would help analyze please let me know.

Same problem, downloaded mine from github on 2021-09-13. Here’s the tail of compilation process.

[2984/3038] Copy schemaClass.h
[2985/3038] Copy schema.usda
[2986/3038] Copy schema.usda
[2987/3038] Copy generatedSchema.usda
[2988/3038] Copy generatedSchema.usda
[2990/3038] Copy schemaClass.cpp
[2989/3038] Copy tokens.cpp
Makefile:1188: recipe for target 'UE4Editor' failed
make: *** [UE4Editor] Error 6

I have the same problem.
During the compiling process, I recorded some errors as shown below. Since I am basically an idiot in C++, I cannot solve these errors. Also, I don’t know if the errors cause the [UE4Editor] Error 6.

1494/2780] Link (lld) libUE4Editor-NiagaraEditor.so
[1495/2780] Compile reverb_node.cc
In file included from /home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:7:
In file included from Runtime/VulkanRHI/Private/VulkanRHIPrivate.h:40:
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:407:10: error: use of undeclared identifier ‘ResourceAllocation’; did you mean ‘GetResourceAllocation’?
return ResourceAllocation;
^~~~~~~~~~~~~~~~~~
GetResourceAllocation
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:405:57: note: ‘GetResourceAllocation’ declared here
inline TRefCountPtrVulkanRHI::FOldResourceAllocation GetResourceAllocation()
^
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:407:10: error: reference to non-static member function must be called; did you mean to call it with no arguments?
return ResourceAllocation;
^~~~~~~~~~~~~~~~~~
()
[1496/2780] Compile wav_reader.cc
[1497/2780] Compile Module.SlateReflector.cpp
[1498/2780] Compile scene_manager.cc
[1499/2780] Compile LaunchDaemonMessagesModule.cpp
[1500/2780] Compile Module.LiveLinkXR.cpp
[1501/2780] Compile Module.ChaosCaching.cpp
[1502/2780] Compile Module.MotoSynth.gen.cpp
[1503/2780] Compile Module.MediaCompositing.gen.cpp
In file included from /home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:1:
In file included from /home/UE4.26/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/Engine/SharedPCH.Engine.ShadowErrors.h:279:
In file included from /home/UE4.26/Engine/Source/Runtime/Engine/Public/EngineSharedPCH.h:191:
/home/UE4.26/Engine/Source/Runtime/Core/Public/Templates/RefCounting.h:190:13: error: member access into incomplete type ‘VulkanRHI::FOldResourceAllocation’
Reference->Release();
^
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:407:10: note: in instantiation of member function ‘TRefCountPtr::~TRefCountPtr’ requested here
return ResourceAllocation;
^
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:35:8: note: forward declaration of ‘VulkanRHI::FOldResourceAllocation’
class FOldResourceAllocation;
^
3 errors generated.
[1504/2780] Compile Module.SwarmInterface.cpp
[1505/2780] Compile Module.MediaFrameworkUtilities.gen.cpp

ompile Module.VulkanRHI.2_of_3.cpp
[1574/2780] Compile Module.TimedDataMonitor.gen.cpp
In file included from /home/UE4.26/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/VulkanRHI/Module.VulkanRHI.2_of_3.cpp:2:
In file included from /home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanLLM.cpp:8:
In file included from Runtime/VulkanRHI/Private/VulkanRHIPrivate.h:40:
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:407:10: error: use of undeclared identifier ‘ResourceAllocation’; did you mean ‘GetResourceAllocation’?
return ResourceAllocation;
^~~~~~~~~~~~~~~~~~
GetResourceAllocation
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:405:57: note: ‘GetResourceAllocation’ declared here
inline TRefCountPtrVulkanRHI::FOldResourceAllocation GetResourceAllocation()
^
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:407:10: error: reference to non-static member function must be called; did you mean to call it with no arguments?
return ResourceAllocation;
^~~~~~~~~~~~~~~~~~
()
[1575/2780] Compile Module.SequencerScripting.cpp
[1576/2780] Compile Module.BspMode.cpp
In file included from /home/UE4.26/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/VulkanRHI/Module.VulkanRHI.2_of_3.cpp:1:
In file included from /home/UE4.26/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/Engine/SharedPCH.Engine.ShadowErrors.h:279:
In file included from /home/UE4.26/Engine/Source/Runtime/Engine/Public/EngineSharedPCH.h:191:
/home/UE4.26/Engine/Source/Runtime/Core/Public/Templates/RefCounting.h:190:13: error: member access into incomplete type ‘VulkanRHI::FOldResourceAllocation’
Reference->Release();
^
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:407:10: note: in instantiation of member function ‘TRefCountPtr::~TRefCountPtr’ requested here
return ResourceAllocation;
^
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:35:8: note: forward declaration of ‘VulkanRHI::FOldResourceAllocation’
class FOldResourceAllocation;
^
3 errors generated.
[1577/2780] Compile stereo_panner.cc
[1578/2780] Compile spectral_reverb.cc

2072/2780] Compile Module.SteamVR.cpp
[2073/2780] Compile Module.BlueprintFileUtils.gen.cpp
[2074/2780] Compile Module.PlasticSourceControl.cpp
[2075/2780] Compile Module.SunPosition.cpp
In file included from /home/UE4.26/Engine/Plugins/Runtime/Steam/SteamVR/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/SteamVR/Module.SteamVR.cpp:7:
In file included from /home/UE4.26/Engine/Plugins/Runtime/Steam/SteamVR/Source/SteamVR/Private/SteamVRRender.cpp:21:
In file included from Runtime/VulkanRHI/Private/VulkanRHIPrivate.h:40:
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:407:10: error: use of undeclared identifier ‘ResourceAllocation’; did you mean ‘GetResourceAllocation’?
return ResourceAllocation;
^~~~~~~~~~~~~~~~~~
GetResourceAllocation
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:405:57: note: ‘GetResourceAllocation’ declared here
inline TRefCountPtrVulkanRHI::FOldResourceAllocation GetResourceAllocation()
^
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:407:10: error: reference to non-static member function must be called; did you mean to call it with no arguments?
return ResourceAllocation;
^~~~~~~~~~~~~~~~~~
()
[2076/2780] Compile Module.StructViewer.gen.cpp
[2077/2780] Compile Module.TakeRecorderSources.cpp
[2078/2780] Compile AudioFormatOgg.cpp
[2079/2780] Compile Module.OnlineSubsystemNull.cpp
[2080/2780] Compile Module.VulkanShaderFormat.cpp
In file included from /home/UE4.26/Engine/Plugins/Runtime/Steam/SteamVR/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/SteamVR/Module.SteamVR.cpp:1:
In file included from /home/UE4.26/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/UnrealEd/SharedPCH.UnrealEd.ShadowErrors.h:281:
In file included from /home/UE4.26/Engine/Source/Editor/UnrealEd/Public/UnrealEdSharedPCH.h:183:
In file included from /home/UE4.26/Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericApplication.h:13:
In file included from /home/UE4.26/Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/Accessibility/GenericAccessibleInterfaces.h:8:
In file included from Runtime/Core/Public/Async/TaskGraphInterfaces.h:22:
/home/UE4.26/Engine/Source/Runtime/Core/Public/Templates/RefCounting.h:190:13: error: member access into incomplete type ‘VulkanRHI::FOldResourceAllocation’
Reference->Release();
^
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:407:10: note: in instantiation of member function ‘TRefCountPtr::~TRefCountPtr’ requested here
return ResourceAllocation;
^
/home/UE4.26/Engine/Source/Runtime/VulkanRHI/Private/VulkanResources.h:35:8: note: forward declaration of ‘VulkanRHI::FOldResourceAllocation’
class FOldResourceAllocation;
^
3 errors generated.
[2081/2780] Compile Module.GammaUI.cpp
[2082/2780] Compile Module.ClientPilot.cpp
[2083/2780] Compile Module.StructViewer.cpp
[2084/2780] Compile LinuxPlatformEditorModul

Have the same problem during the compiling process.Has you solved this problem?

I got the same error. Running the make as sudo make fixed it for me.

Yes, had error 6 and it was resolved when using command:

gsudo make launch

Some software is needed to be installed to be able to run gsudo

Compilation error refers to a state when a compiler fails to compile a piece of computer program source code, either due to errors in the code, or, more unusually, due to errors in the compiler itself. A compilation error message often helps programmers debugging the source code. Although the definitions of compilation and interpretation can be vague, generally compilation errors only refer to static compilation and not dynamic compilation. However, dynamic compilation can still technically have compilation errors,[citation needed] although many programmers and sources may identify them as run-time errors. Most just-in-time compilers, such as the Javascript V8 engine, ambiguously refer to compilation errors as syntax errors since they check for them at run time.

SOLUTION
This is expected behavior. Anytime you execute a test that contains code (or calls a sub-test that includes code), all of the code must be compiled at once for the entire test project. If this was not done, then external/global functions you may have written in an external class file would not be included. If code in any test fails to compile, you will receive a compilation error.

The only way to overcome this error is to fix whatever is causing it. If the test in question has no coded steps, it likely did at one time. If the View Class button is not disabled, that test has a code behind-file associated with it. If you no longer need that code, you can easily remove the code-behind file by clicking Clear > Remove Script File from the Edit ribbon.

Regards,

This is insanely pretentious. He’s not asking what compiler errors are.

2 Likes

me too having same issue!!

After running the make with sudo, I got more details about the error in the output. In my case it was because I copy+pasted the AirSim plugin in the Engine/Plugins and it did not recognize some libraries the plugin need (which makes sense). That’s why I deleted the plugin and the it worked

Yes, had error 6 and it was resolved when using command:

gsudo make launch

Some software is needed to be installed to be able to run gsudo

That didn’t solve it for me.