Hi,
I tried to build the Unreal I tried to build the Unreal 4.18 from source on Ubuntu 16.04, but got some errors which seems to be linked with an OS identification error.
bash "/home//Documents/Projet/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh" CrashReportClient Linux Shipping Building CrashReportClient... Using 'git status' to determine working set for adaptive non-unity build. Creating makefile for CrashReportClient (no existing makefile) Performing full C++ include scan (no include cache file) Using clang version '3.8.0' (string), 3 (major), 8 (minor), 0 (patch) Building UnrealHeaderTool... Using 'git status' to determine working set for adaptive non-unity build. Creating makefile for UnrealHeaderTool (UnrealBuildTool.exe is newer) Using clang version '3.8.0' (string), 3 (major), 8 (minor), 0 (patch) Using bundled libc++ standard C++ library. Using fast way to relink circularly dependent libraries (no FixDeps). Performing 27 actions (2 in parallel) [1/27] Compile PCH.Core.h [2/27] Compile SharedPCH.Core.h In file included from /home//Documents/Projet/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealHeaderTool/Development/Core/PCH.Core.h:46: In file included from /home//Documents/Projet/UnrealEngine/Engine/Source/Runtime/Core/Private/CorePrivatePCH.h:6: In file included from Runtime/Core/Public/CoreTypes.h:10: Runtime/Core/Public/HAL/Platform.h:767:2: error: static_assert failed "Pointer size is 64bit, but pointers are short." static_assert(!PLATFORM_64BITS || sizeof(void*) == 8, "Pointer size is 64bit, but pointers are short."); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home//Documents/Projet/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealHeaderTool/Development/Core/SharedPCH.Core.h:40: In file included from /home//Documents/Projet/UnrealEngine/Engine/Source/Runtime/Core/Public/CoreSharedPCH.h:6: In file included from Runtime/Core/Public/CoreTypes.h:10: Runtime/Core/Public/HAL/Platform.h:767:2: error: static_assert failed "Pointer size is 64bit, but pointers are short." static_assert(!PLATFORM_64BITS || sizeof(void*) == 8, "Pointer size is 64bit, but pointers are short."); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. [3/27] Compile PCH.CoreUObject.h In file included from /home//Documents/Projet/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealHeaderTool/Development/CoreUObject/PCH.CoreUObject.h:46: In file included from /home//Documents/Projet/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/CoreUObjectPrivatePCH.h:6: In file included from Runtime/Core/Public/CoreMinimal.h:9: In file included from Runtime/Core/Public/CoreTypes.h:10: Runtime/Core/Public/HAL/Platform.h:767:2: error: static_assert failed "Pointer size is 64bit, but pointers are short." static_assert(!PLATFORM_64BITS || sizeof(void*) == 8, "Pointer size is 64bit, but pointers are short."); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. [4/27] Compile Module.UnrealHeaderTool.cpp In file included from /home//Documents/Projet/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealHeaderTool/Development/UnrealHeaderTool/Module.UnrealHeaderTool.cpp:2: In file included from /home//Documents/Projet/UnrealEngine/Engine/Source/Programs/UnrealHeaderTool/Private/BaseParser.cpp:3: In file included from Programs/UnrealHeaderTool/Private/BaseParser.h:5: In file included from Runtime/Core/Public/CoreMinimal.h:9: In file included from Runtime/Core/Public/CoreTypes.h:10: Runtime/Core/Public/HAL/Platform.h:767:2: error: static_assert failed "Pointer size is 64bit, but pointers are short." static_assert(!PLATFORM_64BITS || sizeof(void*) == 8, "Pointer size is 64bit, but pointers are short."); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home//Documents/Projet/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealHeaderTool/Development/CoreUObject/PCH.CoreUObject.h:46: In file included from /home//Documents/Projet/UnrealEngine/Engine/Source/Runtime/CoreUObject/Private/CoreUObjectPrivatePCH.h:228: In file included from Runtime/CoreUObject/Public/UObject/Class.h:16: Runtime/CoreUObject/Public/UObject/GarbageCollection.h:357:3: error: static_assert failed "Pointer size mismatch." static_assert(sizeof(void*) == 8, "Pointer size mismatch."); ^ ~~~~~~~~~~~~~~~~~~ Runtime/CoreUObject/Public/UObject/GarbageCollection.h:358:45: error: shift count >= width of type [-Werror,-Wshift-count-overflow] Result |= UPTRINT(Tokens[CurrentIndex++]) << 32; ^ ~~ Runtime/CoreUObject/Public/UObject/GarbageCollection.h:433:3: error: static_assert failed "Pointer size mismatch." static_assert(sizeof(void*) == 8, "Pointer size mismatch."); ^ ~~~~~~~~~~~~~~~~~~ Runtime/CoreUObject/Public/UObject/GarbageCollection.h:435:28: error: shift count >= width of type [-Werror,-Wshift-count-overflow] Stream[1] = UPTRINT(Ptr) >> 32; ^ ~~ In file included from /home//Documents/Projet/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealHeaderTool/Development/UnrealHeaderTool/Module.UnrealHeaderTool.cpp:2: In file included from /home//Documents/Projet/UnrealEngine/Engine/Source/Programs/UnrealHeaderTool/Private/BaseParser.cpp:8: In file included from Programs/UnrealHeaderTool/Private/ParserHelper.h:9: In file included from Runtime/CoreUObject/Public/UObject/TextProperty.h:7: In file included from Runtime/CoreUObject/Public/UObject/UnrealType.h:13: In file included from Runtime/CoreUObject/Public/UObject/Class.h:16: Runtime/CoreUObject/Public/UObject/GarbageCollection.h:357:3: error: static_assert failed "Pointer size mismatch." static_assert(sizeof(void*) == 8, "Pointer size mismatch."); ^ ~~~~~~~~~~~~~~~~~~ Runtime/CoreUObject/Public/UObject/GarbageCollection.h:358:45: error: shift count >= width of type [-Werror,-Wshift-count-overflow] Result |= UPTRINT(Tokens[CurrentIndex++]) << 32; ^ ~~ Runtime/CoreUObject/Public/UObject/GarbageCollection.h:433:3: error: static_assert failed "Pointer size mismatch." static_assert(sizeof(void*) == 8, "Pointer size mismatch."); ^ ~~~~~~~~~~~~~~~~~~ Runtime/CoreUObject/Public/UObject/GarbageCollection.h:435:28: error: shift count >= width of type [-Werror,-Wshift-count-overflow] Stream[1] = UPTRINT(Ptr) >> 32; ^ ~~ 5 errors generated. 5 errors generated. ERROR: UBT ERROR: Failed to produce item: /home//Documents/Projet/UnrealEngine/Engine/Binaries/Linux/libUnrealHeaderTool-Core.so Total build time: 11,96 seconds (Local executor: 0,00 seconds) Error: UnrealHeaderTool failed for target 'CrashReportClient' (platform: Linux, module info: /home//Documents/Projet/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Shipping/CrashReportClient.uhtmanifest, exit code: OtherCompilationError (5)). Makefile:247 : la recette pour la cible « CrashReportClient-Linux-Shipping » a échouée make: *** [CrashReportClient-Linux-Shipping] Erreur 5
Currently I have no idea how to fix it. Can anyone give me some advice ?
Thanks !