adamrehn / ue4-docker

Windows and Linux containers for Unreal Engine 4
https://docs.adamrehn.com/ue4-docker/
MIT License
787 stars 174 forks source link

Unable to build engine UE 5.4.4 on Ubuntu #363

Closed garunzo closed 2 weeks ago

garunzo commented 3 weeks ago

Output of the ue4-docker info command:

> ue4-docker build 5.4.4
[ue4-docker build] COMMAND-LINE INVOCATION:
[ue4-docker build] ['ue4-docker', '5.4.4']

[ue4-docker build] UNREAL ENGINE VERSION SETTINGS:
[ue4-docker build] Custom build:  No
[ue4-docker build] Release:       5.4.4
[ue4-docker build] Repository:    https://github.com/EpicGames/UnrealEngine.git
[ue4-docker build] Branch/tag:    5.4.4-release

[ue4-docker build] ADVANCED CONFIGURATION OPTIONS:
[ue4-docker build] credential_mode: "secrets"
[ue4-docker build] excluded_components: {"ddc": false, "debug": false, "templates": false}
[ue4-docker build] gitdependencies_args: "--exclude=Android --exclude=Mac --exclude=Win32 --exclude=Win64"

[ue4-docker build] LINUX CONTAINER SETTINGS
[ue4-docker build] Base OS image: nvidia/opengl:1.0-glvnd-devel-ubuntu22.04

[ue4-docker build] GENERAL SETTINGS
[ue4-docker build] Build targets: build-prerequisites minimal source
[ue4-docker build] Changelist override: (None specified)
[ue4-docker build] Not excluding any Engine components.

[ue4-docker build] Warning: attempting to build Linux container images under Windows (e.g. via WSL).
[ue4-docker build] The ue4-docker maintainers do not provide support for building and running Linux
[ue4-docker build] containers under Windows, and this configuration is not tested to verify that it
[ue4-docker build] functions correctly. Users are solely responsible for troubleshooting any issues
[ue4-docker build] they encounter when attempting to build Linux container images under Windows.
[ue4-docker build] Not building the ue4-source image, no Git credentials required.

[ue4-docker build] Image "adamrehn/ue4-build-prerequisites:opengl-ubuntu22.04" exists and rebuild not requested, skipping build.

[ue4-docker build] Image "adamrehn/ue4-source:5.4.4-opengl-ubuntu22.04" exists and rebuild not requested, skipping build.

[ue4-docker build] Building image "adamrehn/ue4-minimal:5.4.4-opengl-ubuntu22.04"...
[+] Building 2309.9s (22/46)                                                                             docker:default
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 10.48kB                                                                            0.0s
 => WARN: InvalidDefaultArgInFrom: Default value for ARG ${NAMESPACE}/ue4-source:${TAG}-${PREREQS_TAG} results in  0.0s
 => WARN: InvalidDefaultArgInFrom: Default value for ARG ${NAMESPACE}/ue4-build-prerequisites:${PREREQS_TAG} resu  0.0s
 => [internal] load metadata for docker.io/adamrehn/ue4-build-prerequisites:opengl-ubuntu22.04                     0.1s
 => [internal] load metadata for docker.io/adamrehn/ue4-source:5.4.4-opengl-ubuntu22.04                            0.1s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 53B                                                                                   0.0s
 => [builder  1/22] FROM docker.io/adamrehn/ue4-source:5.4.4-opengl-ubuntu22.04@sha256:95eda9af46580854012239cfcc  1.1s
 => => resolve docker.io/adamrehn/ue4-source:5.4.4-opengl-ubuntu22.04@sha256:95eda9af46580854012239cfcc9f73b12618  1.1s
 => CACHED [stage-1  1/16] FROM docker.io/adamrehn/ue4-build-prerequisites:opengl-ubuntu22.04@sha256:1007050bff94  0.8s
 => => resolve docker.io/adamrehn/ue4-build-prerequisites:opengl-ubuntu22.04@sha256:1007050bff9468c3442ba641de43c  0.8s
 => [internal] load build context                                                                                  0.0s
 => => transferring context: 10.76kB                                                                               0.0s
 => [auth] adamrehn/ue4-source:pull token for registry-1.docker.io                                                 0.0s
 => [auth] adamrehn/ue4-build-prerequisites:pull token for registry-1.docker.io                                    0.0s
 => [auth] adamrehn/ue4-source:pull token for registry-1.docker.io                                                 0.0s
 => CACHED [builder  2/22] COPY set-changelist.py /tmp/set-changelist.py                                           0.0s
 => CACHED [builder  3/22] RUN python3 /tmp/set-changelist.py /home/ue4/UnrealEngine/Engine/Build/Build.version $  0.0s
 => CACHED [builder  4/22] RUN rm -rf /home/ue4/UnrealEngine/.git && echo '' && echo 'RUN directive complete. Doc  0.0s
 => CACHED [builder  5/22] COPY enable-opengl.py /tmp/enable-opengl.py                                             0.0s
 => CACHED [builder  6/22] RUN python3 /tmp/enable-opengl.py /home/ue4/UnrealEngine/Engine/Config/BaseEngine.ini   0.0s
 => CACHED [builder  7/22] COPY patch-filters-xml.py /tmp/patch-filters-xml.py                                     0.0s
 => CACHED [builder  8/22] RUN python3 /tmp/patch-filters-xml.py /home/ue4/UnrealEngine/Engine/Build/InstalledEng  0.0s
 => CACHED [builder  9/22] COPY patch-build-graph.py /tmp/patch-build-graph.py                                     0.0s
 => CACHED [builder 10/22] RUN python3 /tmp/patch-build-graph.py /home/ue4/UnrealEngine/Engine/Build/InstalledEng  0.0s
 => CACHED [builder 11/22] RUN ./Engine/Build/BatchFiles/Linux/Build.sh ShaderCompileWorker Linux Development -Sk  0.0s
 => CACHED [builder 12/22] WORKDIR /home/ue4/UnrealEngine                                                          0.0s
 => ERROR [builder 13/22] RUN ./Engine/Build/BatchFiles/RunUAT.sh BuildGraph  -target="Make Installed Build Li  2308.4s
------
 > [builder 13/22] RUN ./Engine/Build/BatchFiles/RunUAT.sh BuildGraph   -target="Make Installed Build Linux"    -script=Engine/Build/InstalledEngineBuild.xml   -set:HostPlatformOnly=true      -set:WithDDC=true        &&     rm -R -f /home/ue4/UnrealEngine/LocalBuilds/InstalledDDC && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo '':
-0.020
-0.020 Running AutomationTool...
-0.020
-0.011 Setting up bundled DotNet SDK
0.005 Rebuilding: AutomationTool assembly not found
0.006 Setting up bundled DotNet SDK
1.258 Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
1.258 Copyright (C) Microsoft Corporation. All rights reserved.
1.258
5.966
5.966 Build succeeded.
5.966     0 Warning(s)
5.966     0 Error(s)
5.966
5.966 Time Elapsed 00:00:04.65
5.978 Start UAT Interactively: dotnet AutomationTool.dll BuildGraph -target=Make Installed Build Linux -script=Engine/Build/InstalledEngineBuild.xml -set:HostPlatformOnly=true -set:WithDDC=true
5.979 /home/ue4/UnrealEngine/Engine/Build/BatchFiles/Linux/../../../Binaries/ThirdParty/DotNet/6.0.302/linux/dotnet
6.073 Starting AutomationTool...
6.091 Parsing command line: BuildGraph -target="Make Installed Build Linux" -script=Engine/Build/InstalledEngineBuild.xml -set:HostPlatformOnly=true -set:WithDDC=true
6.118 Initializing script modules...
7.530 Building 32 projects (see Log 'Engine/Programs/AutomationTool/Saved/Logs/Log.txt' for more details)
7.534  Restore...
11.22  Build...
23.04 Build projects time: 15.51 s
23.08 Total script module initialization time: 16.96 s.
23.08 Using /home/ue4/UnrealEngine/Engine/Binaries/ThirdParty/DotNet/6.0.302/linux/dotnet
23.20 Executing commands...
23.31 ****** [1/10] Update Version Files
23.31
23.32 Saving file list to /home/ue4/UnrealEngine/Engine/Saved/BuildGraph/Update Version Files/Tag-Update Version Files.xml
23.32
23.32 ****** [2/10] Compile UnrealEditor Linux
23.32
23.33 Reading local file list from /home/ue4/UnrealEngine/Engine/Saved/BuildGraph/Update Version Files/Tag-Update Version Files.xml
23.35 Running: /home/ue4/UnrealEngine/Engine/Binaries/ThirdParty/DotNet/6.0.302/linux/dotnet "/home/ue4/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll" -Target="UnrealEditor Linux DebugGame -Manifest=/home/ue4/UnrealEngine/Engine/Intermediate/Build/Manifest-1-UnrealEditor-Linux-DebugGame.xml -precompile -allmodules" -Target="UnrealEditor Linux Development -Manifest=/home/ue4/UnrealEngine/Engine/Intermediate/Build/Manifest-2-UnrealEditor-Linux-Development.xml -precompile -allmodules" -log="/home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/UBA-UnrealEditor-Linux-DebugGame.txt"
23.53 Log file: /home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/UBA-UnrealEditor-Linux-DebugGame.txt
23.74 Creating makefile for UnrealEditor (no existing makefile)
25.64 Parsing headers for UnrealEditor
25.64   Running Internal UnrealHeaderTool UnrealEditor /home/ue4/UnrealEngine/Engine/Intermediate/Build/Linux/UnrealEditor/DebugGame/UnrealEditor.uhtmanifest -WarningsAsErrors
28.05 Total of 22643 written
28.05 Reflection code generated for UnrealEditor in 2.4122012 seconds
28.83 ------- Build details --------
28.83 Using toolchain located at '/home/ue4/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu'.
28.83 Using clang (/home/ue4/UnrealEngine/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)
28.83 Target: x86_64-unknown-linux-gnu
28.83 Thread model: posix
28.83 InstalledDir: /home/ue4/UnrealEngine/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)
28.83 Using bundled libc++ standard C++ library.
28.83 Using lld linker
28.84 Using llvm-ar (/home/ue4/UnrealEngine/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/):
28.84   LLVM version 16.0.6
28.84   Optimized build. (string)'
28.84 Using fast way to relink  circularly dependent libraries (no FixDeps).
28.84 Targeted minimum CPU architecture: None
28.84 ------------------------------
36.83 Writing dependency list to /home/ue4/UnrealEngine/Engine/Intermediate/DependencyLists/UnrealEditor/DebugGame/Linuxx64/DependencyList-AllModules.txt
36.86 Writing manifest to /home/ue4/UnrealEngine/Engine/Intermediate/Build/Manifest-1-UnrealEditor-Linux-DebugGame.xml
37.12 Creating makefile for UnrealEditor (no existing makefile)
37.67 Parsing headers for UnrealEditor
37.67   Running Internal UnrealHeaderTool UnrealEditor /home/ue4/UnrealEngine/Engine/Intermediate/Build/Linux/UnrealEditor/Development/UnrealEditor.uhtmanifest -WarningsAsErrors
38.91 Total of 0 written
38.91 Reflection code generated for UnrealEditor in 1.2438159 seconds
39.16 ------- Build details --------
39.16 Using toolchain located at '/home/ue4/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu'.
39.16 Using clang (/home/ue4/UnrealEngine/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)
39.16 Target: x86_64-unknown-linux-gnu
39.16 Thread model: posix
39.16 InstalledDir: /home/ue4/UnrealEngine/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)
39.16 Using bundled libc++ standard C++ library.
39.16 Using lld linker
39.16 Using llvm-ar (/home/ue4/UnrealEngine/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/):
39.16   LLVM version 16.0.6
39.16   Optimized build. (string)'
39.16 Using fast way to relink  circularly dependent libraries (no FixDeps).
39.16 Targeted minimum CPU architecture: None
39.16 ------------------------------
40.66 Writing dependency list to /home/ue4/UnrealEngine/Engine/Intermediate/DependencyLists/UnrealEditor/Development/Linuxx64/DependencyList-AllModules.txt
40.68 Writing manifest to /home/ue4/UnrealEngine/Engine/Intermediate/Build/Manifest-2-UnrealEditor-Linux-Development.xml41.24 Building UnrealEditor...
41.26 Determining max actions to execute in parallel (16 physical cores, 32 logical cores)
41.26   Executing up to 16 processes, one per physical core
41.26   Requested 1.5 GB memory per action, 18.89 GB available: limiting max parallel actions to 12
41.26 Using Parallel executor to run 4345 action(s)
41.27 ------ Building 4345 action(s) started ------
41.37 ** For UnrealEditor-Linux-DebugGame + UnrealEditor-Linux-Development **
41.47 [1/4345] Compile Module.BuildSettings.cpp
41.47 [2/4345] Link (lld) libUnrealEditor-BuildSettings.so
43.02 [3/4345] Compile MiMalloc.c
43.02 [4/4345] Generate Header [x86-64] AnimEncoding_ConstantKeyLerp.ispc
43.02 /home/wojtek/fnmain/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.21.0/src/main.cpp(404): FATAL ERROR: Unhandled signal sent to process; terminating.
43.02 ***
43.02 *** Please file a bug report at https://github.com/ispc/ispc/issues
43.02 *** (Including as much information as you can about how to reproduce this error).
43.02 *** You have apparently encountered a bug in the compiler that we'd like to fix!
43.02 ***
43.84 [5/4345] Compile Module.TraceLog.cpp
43.84 [6/4345] Generate Header [x86-64] AnimationRuntime.ispc
43.84 [7/4345] Compile PCH.Core.h

...

2298.1 [2736/4345] Compile Module.DMXPixelMappingEditor.cpp
2298.1 [2737/4345] Compile Module.TimedDataMonitorEditor.cpp
2298.1 ** For UnrealEditor-Linux-Development **
2299.6 [2738/4345] Compile Module.Launch.cpp
2299.6 ** For UnrealEditor-Linux-DebugGame + UnrealEditor-Linux-Development **
2305.1 [2739/4345] Compile Module.LevelSnapshotsEditor.cpp
2305.1 [2740/4345] Compile Module.CameraCalibrationEditor.2.cpp
2305.1 Total time in Parallel executor: 2150.38 seconds
2305.1 Total execution time: 2167.31 seconds
2305.2 Took 2,281.86s to run dotnet, ExitCode=6
2305.3 UnrealBuildTool failed. See log for more details. (/home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/UBA-UnrealEditor-Linux-DebugGame.txt)
2305.3 AutomationTool executed for 0h 36m 24s
2305.3 AutomationTool exiting with ExitCode=6 (6)
2305.3 RunUAT ERROR: AutomationTool was unable to run successfully. Exited with code: 6
------

 2 warnings found (use docker --debug to expand):
 - InvalidDefaultArgInFrom: Default value for ARG ${NAMESPACE}/ue4-source:${TAG}-${PREREQS_TAG} results in empty or invalid base image name (line 4)
 - InvalidDefaultArgInFrom: Default value for ARG ${NAMESPACE}/ue4-build-prerequisites:${PREREQS_TAG} results in empty or invalid base image name (line 67)
Dockerfile:32
--------------------
  31 |     WORKDIR /home/ue4/UnrealEngine
  32 | >>> RUN ./Engine/Build/BatchFiles/RunUAT.sh BuildGraph \
  33 | >>>      -target="Make Installed Build Linux" \
  34 | >>>      -script=Engine/Build/InstalledEngineBuild.xml \
  35 | >>>      -set:HostPlatformOnly=true \
  36 | >>>      -set:WithDDC=true \
  37 | >>>       && \
  38 | >>>      rm -R -f /home/ue4/UnrealEngine/LocalBuilds/InstalledDDC && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo ''
  39 |
--------------------
ERROR: failed to solve: process "/bin/sh -c ./Engine/Build/BatchFiles/RunUAT.sh BuildGraph \t-target=\"Make Installed Build Linux\" \t-script=Engine/Build/InstalledEngineBuild.xml \t-set:HostPlatformOnly=true \t-set:WithDDC=true \t && \trm -R -f /home/ue4/UnrealEngine/LocalBuilds/InstalledDDC && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo ''" did not complete successfully: exit code: 6
[ue4-docker build] Error: failed to build image "adamrehn/ue4-minimal:5.4.4-opengl-ubuntu22.04".

Additional details:

slonopotamus commented 3 weeks ago
[ue4-docker build] Warning: attempting to build Linux container images under Windows (e.g. via WSL).
[ue4-docker build] The ue4-docker maintainers do not provide support for building and running Linux
[ue4-docker build] containers under Windows, and this configuration is not tested to verify that it
[ue4-docker build] functions correctly. Users are solely responsible for troubleshooting any issues
[ue4-docker build] they encounter when attempting to build Linux container images under Windows.