Failing to package carla

I’m trying to build CARLA from source into a standalone executable (or something similar to what the pre-built version has).
I’ve tried:

  1. running the environment using “make launch”, and packaging it with unreal using file > package project > linux

  2. packaging the project using “make package

both indicate a log file at /home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UnrealPak-Linux-Development.txt which doesn’t exist, however there’s a file in the same directory called Log. In both cases, the error seems to be the following :

Log
CommandUtils.Run: Running: mono "/home/hostxl/part/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe" UnrealPak Linux Development -Project=/home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject  /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject -NoUBTMakefiles  -Manifest=/home/hostxl/part/UnrealEngine/Engine/Intermediate/Build/Manifest.xml -NoHotReload -log="/home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UnrealPak-Linux-Development.txt"
ProcessResult.StdErr:   
ProcessResult.StdErr:   Unhandled Exception:
ProcessResult.StdErr:   System.TypeInitializationException: The type initializer for 'UnrealBuildTool.UnrealBuildTool' threw an exception. ---> System.ArgumentException: Path cannot be the empty string or all whitespace.
ProcessResult.StdErr:   Parameter name: path2
ProcessResult.StdErr:     at System.IO.Path.InternalCombine (System.String path1, System.String path2) [0x0003b] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.FileSystemEnumerableIterator`1[TSource].CreateSearchResult (System.IO.Directory+SearchData localSearchData, Microsoft.Win32.Win32Native+WIN32_FIND_DATA findData) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.FileSystemEnumerableIterator`1[TSource].MoveNext () [0x001aa] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.DirectoryInfo+<CreateEnumerateDirectoriesIterator>d__39.MoveNext () [0x0007a] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x0009f] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.FileUtils.FindCorrectCase (System.IO.FileInfo Info) [0x00006] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.FileReference.FindCorrectCase (Tools.DotNETCommon.FileReference Location) [0x00006] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at UnrealBuildTool.UnrealBuildTool..cctor () [0x0000f] in <3b003356ac324711af640b6e00f65f1b>:0
ProcessResult.StdErr:      --- End of inner exception stack trace ---
ProcessResult.StdErr:   [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'UnrealBuildTool.UnrealBuildTool' threw an exception. ---> System.ArgumentException: Path cannot be the empty string or all whitespace.
ProcessResult.StdErr:   Parameter name: path2
ProcessResult.StdErr:     at System.IO.Path.InternalCombine (System.String path1, System.String path2) [0x0003b] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.FileSystemEnumerableIterator`1[TSource].CreateSearchResult (System.IO.Directory+SearchData localSearchData, Microsoft.Win32.Win32Native+WIN32_FIND_DATA findData) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.FileSystemEnumerableIterator`1[TSource].MoveNext () [0x001aa] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.DirectoryInfo+<CreateEnumerateDirectoriesIterator>d__39.MoveNext () [0x0007a] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x0009f] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.FileUtils.FindCorrectCase (System.IO.FileInfo Info) [0x00006] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.FileReference.FindCorrectCase (Tools.DotNETCommon.FileReference Location) [0x00006] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at UnrealBuildTool.UnrealBuildTool..cctor () [0x0000f] in <3b003356ac324711af640b6e00f65f1b>:0
ProcessResult.StdErr:      --- End of inner exception stack trace ---
CommandUtils.Run: Took 0.851041s to run mono, ExitCode=1
Program.Main: UnrealBuildTool failed. See log for more details. (/home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UnrealPak-Linux-Development.txt

CARLA Version: 0.9.8-66-gb62ccb1-dirty
Commit ID: b62ccb1a302d2cbdcd1b6f427399bdc71698716e
Unreal Version: 4.24.3-0+++UE4+Release-4.24
OS: Ubuntu 16.04

Note: I’ve followed every step in the docs but I had to set DLIBCARLA_IMAGE_WITH_PNG_SUPPORT to false in PythonAPI/carla/setup.py due to libpng16 conflicts with ROS.

Which is the output log when doing ‘make package’?

The error is the same with both. This is the full terminal output for make package :

Terminal Output
hostxl@hostxl-GT70:~/part/carla$ make package
Setup.sh: llvm-7.0 already installed.
Setup.sh: boost-1.72.0-c7 already installed.
Setup.sh: rpclib-v2.2.1_c2-c7 already installed.
Setup.sh: gtest-1.8.1-c7 already installed.
Setup.sh: recast-cdce4e-c7 already installed.
Setup.sh: CARLA version 0.9.8-66-gb62ccb1-dirty.
Setup.sh: Generating CMake configuration files.
Setup.sh: Success!
BuildLibCarla.sh: Building LibCarla "Server.Release" configuration.
ninja: no work to do.
[1/1] Install the project...
-- Install configuration: "Server"
BuildLibCarla.sh: Success!
BuildCarlaUE4.sh: Using Unreal Engine at '/home/hostxl/part/UnrealEngine'
BuildCarlaUE4.sh: Build CarlaUE4 project.
make[1]: Entering directory '/home/hostxl/part/carla/Unreal/CarlaUE4'
bash "/home/hostxl/part/UnrealEngine/Engine/Build/BatchFiles/Linux/RunMono.sh" "/home/hostxl/part/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe" CarlaUE4Editor Linux Development  -project="/home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject" 

Running Mono...

Fixing inconsistent case in filenames.
Setting up Mono
~/part/UnrealEngine/Engine ~/part/carla/Unreal/CarlaUE4
Creating makefile for CarlaUE4Editor (.uproject file is newer)
------- Build details --------
Using toolchain located at '/home/hostxl/part/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v15_clang-8.0.1-centos7/x86_64-unknown-linux-gnu'.
Using clang (/home/hostxl/part/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v15_clang-8.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++) version '8.0.1' (string), 8 (major), 0 (minor), 1 (patch)
Using bundled libc++ standard C++ library.
Using lld linker
Using llvm-ar : /home/hostxl/part/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v15_clang-8.0.1-centos7/x86_64-unknown-linux-gnu/bin/llvm-ar
Using fast way to relink  circularly dependent libraries (no FixDeps).
------------------------------
Target is up to date
Total execution time: 60.39 seconds
make[1]: Leaving directory '/home/hostxl/part/carla/Unreal/CarlaUE4'
BuildCarlaUE4.sh: Success!
BuildLibCarla.sh: Building LibCarla "Client.Release" configuration.
ninja: no work to do.
[1/1] Install the project...
-- Install configuration: "Client"
BuildLibCarla.sh: Success!
BuildPythonAPI.sh: Building Python API for Python 2.
compiling:
  - source/libcarla/libcarla.cpp
running bdist_egg
running egg_info
writing source/carla.egg-info/PKG-INFO
writing top-level names to source/carla.egg-info/top_level.txt
writing dependency_links to source/carla.egg-info/dependency_links.txt
reading manifest file 'source/carla.egg-info/SOURCES.txt'
writing manifest file 'source/carla.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/carla
copying build/lib.linux-x86_64-2.7/carla/__init__.py -> build/bdist.linux-x86_64/egg/carla
copying build/lib.linux-x86_64-2.7/carla/libcarla.so -> build/bdist.linux-x86_64/egg/carla
copying build/lib.linux-x86_64-2.7/carla/command.py -> build/bdist.linux-x86_64/egg/carla
byte-compiling build/bdist.linux-x86_64/egg/carla/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/carla/command.py to command.pyc
creating stub loader for carla/libcarla.so
byte-compiling build/bdist.linux-x86_64/egg/carla/libcarla.py to libcarla.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying source/carla.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying source/carla.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying source/carla.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying source/carla.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating 'dist/carla-0.9.8-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
BuildPythonAPI.sh: Building Python API for Python 3.
compiling:
  - source/libcarla/libcarla.cpp
running bdist_egg
running egg_info
writing dependency_links to source/carla.egg-info/dependency_links.txt
writing source/carla.egg-info/PKG-INFO
writing top-level names to source/carla.egg-info/top_level.txt
reading manifest file 'source/carla.egg-info/SOURCES.txt'
writing manifest file 'source/carla.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/carla
copying build/lib.linux-x86_64-3.5/carla/__init__.py -> build/bdist.linux-x86_64/egg/carla
copying build/lib.linux-x86_64-3.5/carla/command.py -> build/bdist.linux-x86_64/egg/carla
copying build/lib.linux-x86_64-3.5/carla/libcarla.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/carla
byte-compiling build/bdist.linux-x86_64/egg/carla/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/carla/command.py to command.cpython-35.pyc
creating stub loader for carla/libcarla.cpython-35m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/carla/libcarla.py to libcarla.cpython-35.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying source/carla.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying source/carla.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying source/carla.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying source/carla.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
carla.__pycache__.libcarla.cpython-35: module references __file__
creating 'dist/carla-0.9.8-py3.5-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
BuildPythonAPI.sh: Success!
Package.sh: Packaging version '0.9.8-66-gb62ccb1-dirty' (Shipping).
Package.sh: Cooking CARLA project.

Running AutomationTool...

Fixing inconsistent case in filenames.
Setting up Mono
xbuild Source/Programs/AutomationTool/AutomationTool.csproj /p:Configuration=Development /p:Platform=AnyCPU /verbosity:quiet /nologo /p:NoWarn=1591 /property:AutomationToolProjectOnly=true /p:TargetFrameworkProfile=
Start UAT: mono AutomationTool.exe BuildCookRun -project=/home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject -nocompileeditor -nop4 -cook -stage -archive -package -iterate -clientconfig=Shipping -ue4exe=UE4Editor -prereqs -targetplatform=Linux -build -utf8output -archivedirectory=/home/hostxl/part/carla/Dist/CARLA_Shipping_0.9.8-66-gb62ccb1-dirty
Parsing command line: BuildCookRun -project=/home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject -nocompileeditor -nop4 -cook -stage -archive -package -iterate -clientconfig=Shipping -ue4exe=UE4Editor -prereqs -targetplatform=Linux -build -utf8output -archivedirectory=/home/hostxl/part/carla/Dist/CARLA_Shipping_0.9.8-66-gb62ccb1-dirty -compile
Dependencies are up to date. Skipping compile.
Setting up ProjectParams for /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject
********** BUILD COMMAND STARTED **********
Running: mono "/home/hostxl/part/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe" UnrealPak Linux Development -Project=/home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject  /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject -NoUBTMakefiles  -Manifest=/home/hostxl/part/UnrealEngine/Engine/Intermediate/Build/Manifest.xml -NoHotReload -log="/home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UnrealPak-Linux-Development.txt"
  
  Unhandled Exception:
  System.TypeInitializationException: The type initializer for 'UnrealBuildTool.UnrealBuildTool' threw an exception. ---> System.ArgumentException: Path cannot be the empty string or all whitespace.
  Parameter name: path2
    at System.IO.Path.InternalCombine (System.String path1, System.String path2) [0x0003b] in <98fac219bd4e453693d76fda7bd96ab0>:0
    at System.IO.FileSystemEnumerableIterator`1[TSource].CreateSearchResult (System.IO.Directory+SearchData localSearchData, Microsoft.Win32.Win32Native+WIN32_FIND_DATA findData) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0
    at System.IO.FileSystemEnumerableIterator`1[TSource].MoveNext () [0x001aa] in <98fac219bd4e453693d76fda7bd96ab0>:0
    at System.IO.DirectoryInfo+<CreateEnumerateDirectoriesIterator>d__39.MoveNext () [0x0007a] in <98fac219bd4e453693d76fda7bd96ab0>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x0009f] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.FileUtils.FindCorrectCase (System.IO.FileInfo Info) [0x00006] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.FileReference.FindCorrectCase (Tools.DotNETCommon.FileReference Location) [0x00006] in <80756b6e556244769829da70ad493f26>:0
    at UnrealBuildTool.UnrealBuildTool..cctor () [0x0000f] in <3b003356ac324711af640b6e00f65f1b>:0
     --- End of inner exception stack trace ---
  [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'UnrealBuildTool.UnrealBuildTool' threw an exception. ---> System.ArgumentException: Path cannot be the empty string or all whitespace.
  Parameter name: path2
    at System.IO.Path.InternalCombine (System.String path1, System.String path2) [0x0003b] in <98fac219bd4e453693d76fda7bd96ab0>:0
    at System.IO.FileSystemEnumerableIterator`1[TSource].CreateSearchResult (System.IO.Directory+SearchData localSearchData, Microsoft.Win32.Win32Native+WIN32_FIND_DATA findData) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0
    at System.IO.FileSystemEnumerableIterator`1[TSource].MoveNext () [0x001aa] in <98fac219bd4e453693d76fda7bd96ab0>:0
    at System.IO.DirectoryInfo+<CreateEnumerateDirectoriesIterator>d__39.MoveNext () [0x0007a] in <98fac219bd4e453693d76fda7bd96ab0>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x0009f] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.FileUtils.FindCorrectCase (System.IO.FileInfo Info) [0x00006] in <80756b6e556244769829da70ad493f26>:0
    at Tools.DotNETCommon.FileReference.FindCorrectCase (Tools.DotNETCommon.FileReference Location) [0x00006] in <80756b6e556244769829da70ad493f26>:0
    at UnrealBuildTool.UnrealBuildTool..cctor () [0x0000f] in <3b003356ac324711af640b6e00f65f1b>:0
     --- End of inner exception stack trace ---
Took 0.228393s to run mono, ExitCode=1
UnrealBuildTool failed. See log for more details. (/home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UnrealPak-Linux-Development.txt)
AutomationTool exiting with ExitCode=1 (Error_Unknown)
RunUAT ERROR: AutomationTool was unable to run successfully.
Util/BuildTools/Linux.mk:16: recipe for target 'package' failed
make: *** [package] Error 1

and this is the log file:

Log
Automation.ParseCommandLine: Parsing command line: BuildCookRun -project=/home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject -nocompileeditor -nop4 -cook -stage -archive -package -iterate -clientconfig=Shipping -ue4exe=UE4Editor -prereqs -targetplatform=Linux -build -utf8output -archivedirectory=/home/hostxl/part/carla/Dist/CARLA_Shipping_0.9.8-66-gb62ccb1-dirty -compile
Automation.Process: Setting up command environment.
InternalUtils.SafeFileExists: SafeFileExists /home/hostxl/part/UnrealEngine/Engine/Binaries/DotNET/AutomationTool.exe=True
InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_LOCAL_ROOT=
InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_LOCAL_ROOT=
InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_EngineSavedFolder=
CommandUtils.SetEnvVar: SetEnvVar uebp_EngineSavedFolder=/home/hostxl/part/UnrealEngine/Engine/Programs/AutomationTool/Saved
InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_EngineSavedFolder=/home/hostxl/part/UnrealEngine/Engine/Programs/AutomationTool/Saved
InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_CSVFile=
InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_LogFolder=/home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs
InternalUtils.SafeDeleteFile: SafeDeleteFile /home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt
InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_FinalLogFolder=
CommandUtils.SetEnvVar: SetEnvVar uebp_FinalLogFolder=/home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs
InternalUtils.SafeFileExists: SafeFileExists robocopy.exe=False
InternalUtils.SafeFileExists: SafeFileExists robocopy.exe=False
InternalUtils.SafeFileExists: SafeFileExists mount.exe=False
InternalUtils.SafeFileExists: SafeFileExists mount.exe=False
CommandUtils.SetEnvVar: SetEnvVar MallocNanoZone=0
InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_UATChildInstance=0
InternalUtils.SafeDeleteFile: SafeDeleteFile /home/hostxl/part/UnrealEngine/Engine/Programs/AutomationTool/Saved/Rules/UATRules-924322863.dll
InternalUtils.SafeDeleteFile: SafeDeleteFile /home/hostxl/part/UnrealEngine/Engine/Programs/AutomationTool/Saved/Rules/UATRules-924322863.dll.mdb
InternalUtils.SafeDeleteFile: SafeDeleteFile /home/hostxl/part/UnrealEngine/Engine/Programs/AutomationTool/Saved/Rules/UATRules-924322863Manifest.json
ScriptCompiler.CompileModules: Dependencies are up to date. Skipping compile.
InternalUtils.SafeFileExists: SafeFileExists /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject=True
InternalUtils.SafeFileExists: SafeFileExists /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject=True
BuildCookRun.SetupParams: Setting up ProjectParams for /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject
InternalUtils.SafeFileExists: SafeFileExists /home/hostxl/part/UnrealEngine/Engine/Programs/AutomationTool/Saved/Rules/UATRules956790601.dll=False
ProjectParams.ValidateAndLog: Project Params **************
ProjectParams.ValidateAndLog: AdditionalServerMapParams=
ProjectParams.ValidateAndLog: Archive=True
ProjectParams.ValidateAndLog: ArchiveMetaData=False
ProjectParams.ValidateAndLog: CreateAppBundle=True
ProjectParams.ValidateAndLog: BaseArchiveDirectory=/home/hostxl/part/carla/Dist/CARLA_Shipping_0.9.8-66-gb62ccb1-dirty
ProjectParams.ValidateAndLog: BaseStageDirectory=/home/hostxl/part/carla/Unreal/CarlaUE4/Saved/StagedBuilds
ProjectParams.ValidateAndLog: Build=True
ProjectParams.ValidateAndLog: SkipBuildClient=False
ProjectParams.ValidateAndLog: SkipBuildEditor=False
ProjectParams.ValidateAndLog: Cook=True
ProjectParams.ValidateAndLog: Clean=
ProjectParams.ValidateAndLog: Client=False
ProjectParams.ValidateAndLog: ClientConfigsToBuild=Shipping
ProjectParams.ValidateAndLog: ClientCookedTargets=CarlaUE4
ProjectParams.ValidateAndLog: ClientTargetPlatform=Linux
ProjectParams.ValidateAndLog: Compressed=False
ProjectParams.ValidateAndLog: AdditionalPakOptions=
ProjectParams.ValidateAndLog: CookOnTheFly=False
ProjectParams.ValidateAndLog: CookOnTheFlyStreaming=False
ProjectParams.ValidateAndLog: UnversionedCookedContent=True
ProjectParams.ValidateAndLog: SkipCookingEditorContent=False
ProjectParams.ValidateAndLog: NumCookersToSpawn=0
ProjectParams.ValidateAndLog: GeneratePatch=False
ProjectParams.ValidateAndLog: AddPatchLevel=False
ProjectParams.ValidateAndLog: StageBaseReleasePaks=False
ProjectParams.ValidateAndLog: GenerateRemaster=False
ProjectParams.ValidateAndLog: DiscVersion=
ProjectParams.ValidateAndLog: CreateReleaseVersion=
ProjectParams.ValidateAndLog: BasedOnReleaseVersion=
ProjectParams.ValidateAndLog: DLCFile=
ProjectParams.ValidateAndLog: DLCIncludeEngineContent=False
ProjectParams.ValidateAndLog: DLCPakPluginFile=False
ProjectParams.ValidateAndLog: DiffCookedContentPath=
ProjectParams.ValidateAndLog: AdditionalCookerOptions=
ProjectParams.ValidateAndLog: DedicatedServer=False
ProjectParams.ValidateAndLog: DirectoriesToCook=
ProjectParams.ValidateAndLog: CulturesToCook=<Not Specified> (Use Defaults)
ProjectParams.ValidateAndLog: EditorTargets=
ProjectParams.ValidateAndLog: Foreign=False
ProjectParams.ValidateAndLog: IsCodeBasedProject=True
ProjectParams.ValidateAndLog: IsProgramTarget=False
ProjectParams.ValidateAndLog: IterativeCooking=True
ProjectParams.ValidateAndLog: IterateSharedCookedBuild=
ProjectParams.ValidateAndLog: IterateSharedBuildUsePrecompiledExe=False
ProjectParams.ValidateAndLog: CookAll=False
ProjectParams.ValidateAndLog: CookPartialGC=False
ProjectParams.ValidateAndLog: CookInEditor=False
ProjectParams.ValidateAndLog: CookMapsOnly=False
ProjectParams.ValidateAndLog: Deploy=False
ProjectParams.ValidateAndLog: IterativeDeploy=True
ProjectParams.ValidateAndLog: FastCook=False
ProjectParams.ValidateAndLog: LogWindow=False
ProjectParams.ValidateAndLog: Manifests=False
ProjectParams.ValidateAndLog: MapToRun=
ProjectParams.ValidateAndLog: NoClient=False
ProjectParams.ValidateAndLog: NumClients=0
ProjectParams.ValidateAndLog: NoDebugInfo=False
ProjectParams.ValidateAndLog: SeparateDebugInfo=False
ProjectParams.ValidateAndLog: MapFile=False
ProjectParams.ValidateAndLog: NoCleanStage=False
ProjectParams.ValidateAndLog: NoXGE=False
ProjectParams.ValidateAndLog: MapsToCook=
ProjectParams.ValidateAndLog: MapIniSectionsToCook=
ProjectParams.ValidateAndLog: Pak=False
ProjectParams.ValidateAndLog: Package=True
ProjectParams.ValidateAndLog: ForcePackageData=False
ProjectParams.ValidateAndLog: NullRHI=False
ProjectParams.ValidateAndLog: FakeClient=False
ProjectParams.ValidateAndLog: EditorTest=False
ProjectParams.ValidateAndLog: RunAutomationTests=False
ProjectParams.ValidateAndLog: RunAutomationTest=
ProjectParams.ValidateAndLog: RunTimeoutSeconds=0
ProjectParams.ValidateAndLog: CrashIndex=0
ProjectParams.ValidateAndLog: ProgramTargets=
ProjectParams.ValidateAndLog: ProjectPlatformBinariesPaths=[Linux, /home/hostxl/part/carla/Unreal/CarlaUE4/Binaries/Linux]
ProjectParams.ValidateAndLog: ProjectExePaths=[Linux, /home/hostxl/part/carla/Unreal/CarlaUE4/Binaries/Linux/CarlaUE4]
ProjectParams.ValidateAndLog: Distribution=False
ProjectParams.ValidateAndLog: Prebuilt=False
ProjectParams.ValidateAndLog: Prereqs=True
ProjectParams.ValidateAndLog: AppLocalDirectory=
ProjectParams.ValidateAndLog: NoBootstrapExe=False
ProjectParams.ValidateAndLog: RawProjectPath=/home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject
ProjectParams.ValidateAndLog: Run=False
ProjectParams.ValidateAndLog: ServerConfigsToBuild=Development
ProjectParams.ValidateAndLog: ServerCookedTargets=
ProjectParams.ValidateAndLog: ServerTargetPlatform=Linux
ProjectParams.ValidateAndLog: ShortProjectName=CarlaUE4
ProjectParams.ValidateAndLog: SignedPak=False
ProjectParams.ValidateAndLog: SignPak=
ProjectParams.ValidateAndLog: SkipCook=False
ProjectParams.ValidateAndLog: SkipCookOnTheFly=False
ProjectParams.ValidateAndLog: SkipPak=False
ProjectParams.ValidateAndLog: PrePak=False
ProjectParams.ValidateAndLog: SkipStage=False
ProjectParams.ValidateAndLog: Stage=True
ProjectParams.ValidateAndLog: bTreatNonShippingBinariesAsDebugFiles=False
ProjectParams.ValidateAndLog: bUseExtraFlavor=False
ProjectParams.ValidateAndLog: NativizeAssets=False
ProjectParams.ValidateAndLog: StageDirectoryParam=
ProjectParams.ValidateAndLog: AdditionalPackageOptions=
ProjectParams.ValidateAndLog: Project Params **************
InternalUtils.SafeFileExists: SafeFileExists /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject=True
InternalUtils.SafeFileExists: SafeFileExists /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject=True
InternalUtils.SafeFileExists: SafeFileExists /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject=True
Project.Build: ********** BUILD COMMAND STARTED **********
UE4Build.Build: ************************* UE4Build:
UE4Build.Build: ************************* UseXGE: False
UE4Build.Build: ************************* UseParallelExecutor: False
InternalUtils.SafeFileExists: SafeFileExists /home/hostxl/part/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe=True
InternalUtils.SafeDeleteFile: SafeDeleteFile /home/hostxl/part/UnrealEngine/Engine/Intermediate/Build/Manifest.xml
InternalUtils.SafeFileExists: SafeFileExists /home/hostxl/part/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe=True
CommandUtils.Run: Running: mono "/home/hostxl/part/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe" UnrealPak Linux Development -Project=/home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject  /home/hostxl/part/carla/Unreal/CarlaUE4/CarlaUE4.uproject -NoUBTMakefiles  -Manifest=/home/hostxl/part/UnrealEngine/Engine/Intermediate/Build/Manifest.xml -NoHotReload -log="/home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UnrealPak-Linux-Development.txt"
ProcessResult.StdErr:   
ProcessResult.StdErr:   Unhandled Exception:
ProcessResult.StdErr:   System.TypeInitializationException: The type initializer for 'UnrealBuildTool.UnrealBuildTool' threw an exception. ---> System.ArgumentException: Path cannot be the empty string or all whitespace.
ProcessResult.StdErr:   Parameter name: path2
ProcessResult.StdErr:     at System.IO.Path.InternalCombine (System.String path1, System.String path2) [0x0003b] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.FileSystemEnumerableIterator`1[TSource].CreateSearchResult (System.IO.Directory+SearchData localSearchData, Microsoft.Win32.Win32Native+WIN32_FIND_DATA findData) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.FileSystemEnumerableIterator`1[TSource].MoveNext () [0x001aa] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.DirectoryInfo+<CreateEnumerateDirectoriesIterator>d__39.MoveNext () [0x0007a] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x0009f] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.FileUtils.FindCorrectCase (System.IO.FileInfo Info) [0x00006] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.FileReference.FindCorrectCase (Tools.DotNETCommon.FileReference Location) [0x00006] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at UnrealBuildTool.UnrealBuildTool..cctor () [0x0000f] in <3b003356ac324711af640b6e00f65f1b>:0
ProcessResult.StdErr:      --- End of inner exception stack trace ---
ProcessResult.StdErr:   [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'UnrealBuildTool.UnrealBuildTool' threw an exception. ---> System.ArgumentException: Path cannot be the empty string or all whitespace.
ProcessResult.StdErr:   Parameter name: path2
ProcessResult.StdErr:     at System.IO.Path.InternalCombine (System.String path1, System.String path2) [0x0003b] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.FileSystemEnumerableIterator`1[TSource].CreateSearchResult (System.IO.Directory+SearchData localSearchData, Microsoft.Win32.Win32Native+WIN32_FIND_DATA findData) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.FileSystemEnumerableIterator`1[TSource].MoveNext () [0x001aa] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at System.IO.DirectoryInfo+<CreateEnumerateDirectoriesIterator>d__39.MoveNext () [0x0007a] in <98fac219bd4e453693d76fda7bd96ab0>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x0009f] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.DirectoryUtils.FindCorrectCase (System.IO.DirectoryInfo Info) [0x00063] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.FileUtils.FindCorrectCase (System.IO.FileInfo Info) [0x00006] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at Tools.DotNETCommon.FileReference.FindCorrectCase (Tools.DotNETCommon.FileReference Location) [0x00006] in <80756b6e556244769829da70ad493f26>:0
ProcessResult.StdErr:     at UnrealBuildTool.UnrealBuildTool..cctor () [0x0000f] in <3b003356ac324711af640b6e00f65f1b>:0
ProcessResult.StdErr:      --- End of inner exception stack trace ---
CommandUtils.Run: Took 0.228393s to run mono, ExitCode=1
Program.Main: UnrealBuildTool failed. See log for more details. (/home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UnrealPak-Linux-Development.txt)
Program.Main: AutomationException: UnrealBuildTool failed. See log for more details. (/home/hostxl/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UnrealPak-Linux-Development.txt)
Program.Main:   at AutomationTool.CommandUtils.RunUBT (AutomationTool.CommandEnvironment Env, System.String UBTExecutable, System.String CommandLine) [0x00159] in <ff5a31025d1241408ee98a4f0ce7228a>:0 
Program.Main:   at AutomationTool.CommandUtils.RunUBT (AutomationTool.CommandEnvironment Env, System.String UBTExecutable, Tools.DotNETCommon.FileReference Project, System.String Target, UnrealBuildTool.UnrealTargetPlatform Platform, UnrealBuildTool.UnrealTargetConfiguration Config, System.String AdditionalArgs) [0x00010] in <ff5a31025d1241408ee98a4f0ce7228a>:0 
Program.Main:   at AutomationTool.UE4Build.BuildWithUBT (System.String TargetName, UnrealBuildTool.UnrealTargetPlatform TargetPlatform, UnrealBuildTool.UnrealTargetConfiguration Config, Tools.DotNETCommon.FileReference UprojectPath, System.Boolean ForceFlushMac, System.Boolean DisableXGE, System.String InAddArgs) [0x000b0] in <ff5a31025d1241408ee98a4f0ce7228a>:0 
Program.Main:   at AutomationTool.UE4Build.Build (AutomationTool.UE4Build+BuildAgenda Agenda, System.Nullable`1[T] InDeleteBuildProducts, System.Boolean InUpdateVersionFiles, System.Boolean InForceNoXGE, System.Boolean InUseParallelExecutor, System.Boolean InShowProgress, System.Nullable`1[T] InChangelistNumberOverride, System.Collections.Generic.Dictionary`2[TKey,TValue] InTargetToManifest) [0x003e6] in <ff5a31025d1241408ee98a4f0ce7228a>:0 
Program.Main:   at Project.Build (AutomationTool.BuildCommand Command, AutomationTool.ProjectParams Params, System.Int32 WorkingCL, ProjectBuildTargets TargetMask) [0x007c9] in <de907c549b9b4f839f983819d3910cf8>:0 
Program.Main:   at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00062] in <de907c549b9b4f839f983819d3910cf8>:0 
Program.Main:   at BuildCookRun.ExecuteBuild () [0x00040] in <de907c549b9b4f839f983819d3910cf8>:0 
Program.Main:   at AutomationTool.BuildCommand.Execute () [0x00001] in <ff5a31025d1241408ee98a4f0ce7228a>:0 
Program.Main:   at AutomationTool.Automation.Execute (System.Collections.Generic.List`1[T] CommandsToExecute, System.Collections.Generic.Dictionary`2[TKey,TValue] Commands) [0x0007c] in <ff5a31025d1241408ee98a4f0ce7228a>:0 
Program.Main:   at AutomationTool.Automation.Process (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x00282] in <ff5a31025d1241408ee98a4f0ce7228a>:0 
Program.Main:   at AutomationTool.Program.MainProc (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x00001] in <270a5149e59447d9989f6b9ea1927d38>:0 
Program.Main:   at AutomationTool.Program+<>c__DisplayClass1_0.<Main>b__2 () [0x00000] in <270a5149e59447d9989f6b9ea1927d38>:0 
Program.Main:   at AutomationTool.InternalUtils.RunSingleInstance (System.Func`1[TResult] Main) [0x000a0] in <ff5a31025d1241408ee98a4f0ce7228a>:0 
Program.Main:   at AutomationTool.Program.Main (System.String[] Arguments) [0x0020a] in <270a5149e59447d9989f6b9ea1927d38>:0
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)

I just tested again with a template project and got the same error. This seems to come from unreal, not CARLA.

@hos-b No idea if this will fix the issue, but note that in the release notes for 0.9.9 that just came out a few days ago it says the team just now upgraded to Unreal 4.24. It looks like 0.9.8 should have actually been built using 4.2.2. Maybe you used the wrong version of Unreal?

thank you for the update. I’ll check it out. I still don’t know what the issue was. I personally couldn’t package it but another team member did.