I’m running UE5.4.3 on Linux (Ubuntu 24.04). I’m using UE downloaded from https://www.unrealengine.com/en-US/linux (not built from source from GitHub).
I’m able to launch the editor, create new project (empty C++ project), and use it normally.
**However, compling the projects gives errors if I delete the Intermediate
folders
After creating the project I can run make EmptyProjectEditor
in terminal or use VSCode’s build button Launch EmptyProjectEditor (Development) (workspace)
as show below.
If I delete the Binaries
folder, I can still compile normally. However, if I delete the Intermediate
folders as well, compilation will fail.
The error message is as below:
Setting up bundled DotNet SDK
Running command : dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll EmptyProjectEditor Linux Development /home/nathan/Documents/Unreal Projects/EmptyProject/EmptyProject.uproject -waitmutex
Log file: /home/nathan/.config/Epic/UnrealBuildTool/Log.txt
Using 'git status' to determine working set for adaptive non-unity build (/home/nathan/Documents/Unreal Projects/EmptyProject).
Creating makefile for EmptyProjectEditor (no existing makefile)
Parsing headers for EmptyProjectEditor
Running Internal UnrealHeaderTool "/home/nathan/Documents/Unreal Projects/EmptyProject/EmptyProject.uproject" "/home/nathan/Documents/Unreal Projects/EmptyProject/Intermediate/Build/Linux/EmptyProjectEditor/Development/EmptyProjectEditor.uhtmanifest" -WarningsAsErrors -installed
Total of 0 written
Reflection code generated for EmptyProjectEditor in 1.669909 seconds
------- Build details --------
Using toolchain located at '/home/nathan/unreal543/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu'.
Using clang (/home/nathan/unreal543/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang++) version 'clang version 16.0.6 (github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/nathan/unreal543/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin' (string), 16 (major), 0 (minor), 6 (patch)
Using bundled libc++ standard C++ library.
Using lld linker
Using llvm-ar (/home/nathan/unreal543/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/llvm-ar) version 'LLVM (http://llvm.org/):
LLVM version 16.0.6
Optimized build. (string)'
Using fast way to relink circularly dependent libraries (no FixDeps).
Targeted minimum CPU architecture: None
------------------------------
Building EmptyProjectEditor...
Determining max actions to execute in parallel (16 physical cores, 32 logical cores)
Executing up to 16 processes, one per physical core
Using Parallel executor to run 4 action(s)
------ Building 4 action(s) started ------
[1/4] Compile SharedPCH.Engine.Project.ValApi.Cpp20.h
In file included from /home/nathan/Documents/Unreal Projects/EmptyProject/Intermediate/Build/Linux/x64/EmptyProjectEditor/Development/Engine/SharedPCH.Engine.Project.ValApi.Cpp20.h:3:
In file included from ./Runtime/Engine/Public/EngineSharedPCH.h:5:
In file included from Runtime/Slate/Public/SlateSharedPCH.h:5:
In file included from Runtime/CoreUObject/Public/CoreUObjectSharedPCH.h:5:
In file included from Runtime/Core/Public/CoreSharedPCH.h:6:
In file included from Runtime/Core/Public/Algo/Reverse.h:6:
In file included from Runtime/Core/Public/Templates/UnrealTemplate.h:7:
In file included from Runtime/Core/Public/HAL/UnrealMemory.h:6:
In file included from Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h:12:
In file included from Runtime/Core/Public/HAL/PlatformString.h:6:
In file included from Runtime/Core/Public/Linux/LinuxPlatformString.h:5:
In file included from Runtime/Core/Public/Unix/UnixPlatformString.h:10:
In file included from Runtime/Core/Public/GenericPlatform/StandardPlatformString.h:12:
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/stdlib.h:148:34: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/stdlib.h:149:12: error: no member named 'ldiv' in the global namespace
return ::ldiv(__x, __y);
~~^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/stdlib.h:152:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/stdlib.h:154:12: error: no member named 'lldiv' in the global namespace
return ::lldiv(__x, __y);
~~^
In file included from /home/nathan/Documents/Unreal Projects/EmptyProject/Intermediate/Build/Linux/x64/EmptyProjectEditor/Development/Engine/SharedPCH.Engine.Project.ValApi.Cpp20.h:3:
In file included from ./Runtime/Engine/Public/EngineSharedPCH.h:5:
In file included from Runtime/Slate/Public/SlateSharedPCH.h:5:
In file included from Runtime/CoreUObject/Public/CoreUObjectSharedPCH.h:5:
In file included from Runtime/Core/Public/CoreSharedPCH.h:6:
In file included from Runtime/Core/Public/Algo/Reverse.h:6:
In file included from Runtime/Core/Public/Templates/UnrealTemplate.h:7:
In file included from Runtime/Core/Public/HAL/UnrealMemory.h:6:
In file included from Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h:12:
In file included from Runtime/Core/Public/HAL/PlatformString.h:6:
In file included from Runtime/Core/Public/Linux/LinuxPlatformString.h:5:
In file included from Runtime/Core/Public/Unix/UnixPlatformString.h:11:
In file included from Runtime/Core/Public/GenericPlatform/GenericWidePlatformString.h:12:
In file included from Runtime/Core/Public/HAL/PlatformCrt.h:6:
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/new:328:11: error: no member named 'posix_memalign' in the global namespace
(void)::posix_memalign(&__result, __alignment, __size);
~~^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/new:339:5: error: no type named 'free' in the global namespace
::free(__ptr);
~~^
In file included from /home/nathan/Documents/Unreal Projects/EmptyProject/Intermediate/Build/Linux/x64/EmptyProjectEditor/Development/Engine/SharedPCH.Engine.Project.ValApi.Cpp20.h:3:
In file included from ./Runtime/Engine/Public/EngineSharedPCH.h:5:
In file included from Runtime/Slate/Public/SlateSharedPCH.h:5:
In file included from Runtime/CoreUObject/Public/CoreUObjectSharedPCH.h:5:
In file included from Runtime/Core/Public/CoreSharedPCH.h:6:
In file included from Runtime/Core/Public/Algo/Reverse.h:6:
In file included from Runtime/Core/Public/Templates/UnrealTemplate.h:7:
In file included from Runtime/Core/Public/HAL/UnrealMemory.h:6:
In file included from Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h:12:
In file included from Runtime/Core/Public/HAL/PlatformString.h:6:
In file included from Runtime/Core/Public/Linux/LinuxPlatformString.h:5:
In file included from Runtime/Core/Public/Unix/UnixPlatformString.h:11:
In file included from Runtime/Core/Public/GenericPlatform/GenericWidePlatformString.h:12:
In file included from Runtime/Core/Public/HAL/PlatformCrt.h:12:
In file included from ThirdParty/Unix/LibCxx/include/c++/v1/math.h:300:
In file included from /usr/include/c++/11/math.h:36:
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:339:9: error: target of using declaration conflicts with declaration already in scope
using ::abs _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/stdlib.h:111:39: note: target of using declaration
inline _LIBCPP_INLINE_VISIBILITY long abs(long __x) _NOEXCEPT {
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cstdlib:123:1: note: conflicting declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
^
In file included from /home/nathan/Documents/Unreal Projects/EmptyProject/Intermediate/Build/Linux/x64/EmptyProjectEditor/Development/Engine/SharedPCH.Engine.Project.ValApi.Cpp20.h:3:
In file included from ./Runtime/Engine/Public/EngineSharedPCH.h:5:
In file included from Runtime/Slate/Public/SlateSharedPCH.h:5:
In file included from Runtime/CoreUObject/Public/CoreUObjectSharedPCH.h:5:
In file included from Runtime/Core/Public/CoreSharedPCH.h:6:
In file included from Runtime/Core/Public/Algo/Reverse.h:6:
In file included from Runtime/Core/Public/Templates/UnrealTemplate.h:7:
In file included from Runtime/Core/Public/HAL/UnrealMemory.h:6:
In file included from Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h:12:
In file included from Runtime/Core/Public/HAL/PlatformString.h:6:
In file included from Runtime/Core/Public/Linux/LinuxPlatformString.h:5:
In file included from Runtime/Core/Public/Unix/UnixPlatformString.h:11:
In file included from Runtime/Core/Public/GenericPlatform/GenericWidePlatformString.h:12:
In file included from Runtime/Core/Public/HAL/PlatformCrt.h:12:
In file included from ThirdParty/Unix/LibCxx/include/c++/v1/math.h:300:
In file included from /usr/include/c++/11/math.h:36:
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:339:9: error: target of using declaration conflicts with declaration already in scope
using ::abs _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/stdlib.h:114:44: note: target of using declaration
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cstdlib:123:1: note: conflicting declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
^
In file included from /home/nathan/Documents/Unreal Projects/EmptyProject/Intermediate/Build/Linux/x64/EmptyProjectEditor/Development/Engine/SharedPCH.Engine.Project.ValApi.Cpp20.h:3:
In file included from ./Runtime/Engine/Public/EngineSharedPCH.h:5:
In file included from Runtime/Slate/Public/SlateSharedPCH.h:5:
In file included from Runtime/CoreUObject/Public/CoreUObjectSharedPCH.h:5:
In file included from Runtime/Core/Public/CoreSharedPCH.h:6:
In file included from Runtime/Core/Public/Algo/Reverse.h:6:
In file included from Runtime/Core/Public/Templates/UnrealTemplate.h:7:
In file included from Runtime/Core/Public/HAL/UnrealMemory.h:6:
In file included from Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h:12:
In file included from Runtime/Core/Public/HAL/PlatformString.h:6:
In file included from Runtime/Core/Public/Linux/LinuxPlatformString.h:5:
In file included from Runtime/Core/Public/Unix/UnixPlatformString.h:11:
In file included from Runtime/Core/Public/GenericPlatform/GenericWidePlatformString.h:12:
In file included from Runtime/Core/Public/HAL/PlatformCrt.h:12:
In file included from ThirdParty/Unix/LibCxx/include/c++/v1/math.h:300:
In file included from /usr/include/c++/11/math.h:36:
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:339:9: error: target of using declaration conflicts with declaration already in scope
using ::abs _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/stdlib.h:120:40: note: target of using declaration
inline _LIBCPP_INLINE_VISIBILITY float abs(float __lcpp_x) _NOEXCEPT {
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cstdlib:123:1: note: conflicting declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
^
In file included from /home/nathan/Documents/Unreal Projects/EmptyProject/Intermediate/Build/Linux/x64/EmptyProjectEditor/Development/Engine/SharedPCH.Engine.Project.ValApi.Cpp20.h:3:
In file included from ./Runtime/Engine/Public/EngineSharedPCH.h:5:
In file included from Runtime/Slate/Public/SlateSharedPCH.h:5:
In file included from Runtime/CoreUObject/Public/CoreUObjectSharedPCH.h:5:
In file included from Runtime/Core/Public/CoreSharedPCH.h:6:
In file included from Runtime/Core/Public/Algo/Reverse.h:6:
In file included from Runtime/Core/Public/Templates/UnrealTemplate.h:7:
In file included from Runtime/Core/Public/HAL/UnrealMemory.h:6:
In file included from Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h:12:
In file included from Runtime/Core/Public/HAL/PlatformString.h:6:
In file included from Runtime/Core/Public/Linux/LinuxPlatformString.h:5:
In file included from Runtime/Core/Public/Unix/UnixPlatformString.h:11:
In file included from Runtime/Core/Public/GenericPlatform/GenericWidePlatformString.h:12:
In file included from Runtime/Core/Public/HAL/PlatformCrt.h:12:
In file included from ThirdParty/Unix/LibCxx/include/c++/v1/math.h:300:
In file included from /usr/include/c++/11/math.h:36:
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:339:9: error: target of using declaration conflicts with declaration already in scope
using ::abs _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/stdlib.h:124:41: note: target of using declaration
inline _LIBCPP_INLINE_VISIBILITY double abs(double __lcpp_x) _NOEXCEPT {
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cstdlib:123:1: note: conflicting declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
^
In file included from /home/nathan/Documents/Unreal Projects/EmptyProject/Intermediate/Build/Linux/x64/EmptyProjectEditor/Development/Engine/SharedPCH.Engine.Project.ValApi.Cpp20.h:3:
In file included from ./Runtime/Engine/Public/EngineSharedPCH.h:5:
In file included from Runtime/Slate/Public/SlateSharedPCH.h:5:
In file included from Runtime/CoreUObject/Public/CoreUObjectSharedPCH.h:5:
In file included from Runtime/Core/Public/CoreSharedPCH.h:6:
In file included from Runtime/Core/Public/Algo/Reverse.h:6:
In file included from Runtime/Core/Public/Templates/UnrealTemplate.h:7:
In file included from Runtime/Core/Public/HAL/UnrealMemory.h:6:
In file included from Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h:12:
In file included from Runtime/Core/Public/HAL/PlatformString.h:6:
In file included from Runtime/Core/Public/Linux/LinuxPlatformString.h:5:
In file included from Runtime/Core/Public/Unix/UnixPlatformString.h:11:
In file included from Runtime/Core/Public/GenericPlatform/GenericWidePlatformString.h:12:
In file included from Runtime/Core/Public/HAL/PlatformCrt.h:12:
In file included from ThirdParty/Unix/LibCxx/include/c++/v1/math.h:300:
In file included from /usr/include/c++/11/math.h:36:
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:339:9: error: target of using declaration conflicts with declaration already in scope
using ::abs _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/stdlib.h:129:1: note: target of using declaration
abs(long double __lcpp_x) _NOEXCEPT {
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cstdlib:123:1: note: conflicting declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
^
In file included from /home/nathan/Documents/Unreal Projects/EmptyProject/Intermediate/Build/Linux/x64/EmptyProjectEditor/Development/Engine/SharedPCH.Engine.Project.ValApi.Cpp20.h:3:
In file included from ./Runtime/Engine/Public/EngineSharedPCH.h:5:
In file included from Runtime/Slate/Public/SlateSharedPCH.h:5:
In file included from Runtime/CoreUObject/Public/CoreUObjectSharedPCH.h:5:
In file included from Runtime/Core/Public/CoreSharedPCH.h:6:
In file included from Runtime/Core/Public/Algo/Reverse.h:6:
In file included from Runtime/Core/Public/Templates/UnrealTemplate.h:7:
In file included from Runtime/Core/Public/HAL/UnrealMemory.h:6:
In file included from Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h:12:
In file included from Runtime/Core/Public/HAL/PlatformString.h:6:
In file included from Runtime/Core/Public/Linux/LinuxPlatformString.h:5:
In file included from Runtime/Core/Public/Unix/UnixPlatformString.h:11:
In file included from Runtime/Core/Public/GenericPlatform/GenericWidePlatformString.h:12:
In file included from Runtime/Core/Public/HAL/PlatformCrt.h:12:
In file included from ThirdParty/Unix/LibCxx/include/c++/v1/math.h:300:
In file included from /usr/include/c++/11/math.h:36:
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:533:46: error: declaration conflicts with target of using declaration already in scope
inline _LIBCPP_INLINE_VISIBILITY float hypot( float __x, float __y, float __z ) { return sqrt(__x*__x + __y*__y + __z*__z); }
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:424:1: note: target of using declaration
using ::hypot _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:424:9: note: using declaration
using ::hypot _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:533:114: error: reference to unresolved using declaration
inline _LIBCPP_INLINE_VISIBILITY float hypot( float __x, float __y, float __z ) { return sqrt(__x*__x + __y*__y + __z*__z); }
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:388:1: note: using declaration annotated with 'using_if_exists' here
using ::sqrt _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:534:46: error: declaration conflicts with target of using declaration already in scope
inline _LIBCPP_INLINE_VISIBILITY double hypot( double __x, double __y, double __z ) { return sqrt(__x*__x + __y*__y + __z*__z); }
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:424:1: note: target of using declaration
using ::hypot _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:424:9: note: using declaration
using ::hypot _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:534:114: error: reference to unresolved using declaration
inline _LIBCPP_INLINE_VISIBILITY double hypot( double __x, double __y, double __z ) { return sqrt(__x*__x + __y*__y + __z*__z); }
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:388:1: note: using declaration annotated with 'using_if_exists' here
using ::sqrt _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:535:46: error: declaration conflicts with target of using declaration already in scope
inline _LIBCPP_INLINE_VISIBILITY long double hypot( long double __x, long double __y, long double __z ) { return sqrt(__x*__x + __y*__y + __z*__z); }
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:424:1: note: target of using declaration
using ::hypot _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:424:9: note: using declaration
using ::hypot _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:535:114: error: reference to unresolved using declaration
inline _LIBCPP_INLINE_VISIBILITY long double hypot( long double __x, long double __y, long double __z ) { return sqrt(__x*__x + __y*__y + __z*__z); }
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:388:1: note: using declaration annotated with 'using_if_exists' here
using ::sqrt _LIBCPP_USING_IF_EXISTS;
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:544:5: error: use of undeclared identifier '__promote'
__promote<_A1, _A2, _A3>
^
/home/nathan/unreal543/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1/cmath:548:22: error: no template named '__promote'
typedef typename __promote<_A1, _A2, _A3>::type __result_type;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Total time in Parallel executor: 5.04 seconds
Total execution time: 10.35 seconds
* The terminal process "/usr/bin/bash '-c', 'Engine/Build/BatchFiles/Linux/Build.sh EmptyProjectEditor Linux Development '/home/nathan/Documents/Unreal Projects/EmptyProject/EmptyProject.uproject' -waitmutex'" terminated with exit code: 6.
* Terminal will be reused by tasks, press any key to close it.