Skip to content

Not being able to build & launch the editor on Ubuntu 24.04 #8865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
CarlaEnjoyer opened this issue Apr 24, 2025 · 2 comments
Open

Not being able to build & launch the editor on Ubuntu 24.04 #8865

CarlaEnjoyer opened this issue Apr 24, 2025 · 2 comments

Comments

@CarlaEnjoyer
Copy link

Setup
Describe the setup you are using to run CARLA along with its version:

  • CARLA version: 0.10.0
  • Platform: Ubuntu 24.04
  • Python version: 3.12.9
  • GPU: RTX 3090
  • GPU Drivers: 570.86.15

Describe the bug
When trying to build and launch the editor with the cmake --build Build --target launch command it throws an error when trying to Link (lld) CarlaUnreal (UBA disabled)
Steps to reproduce

  • Build UE5 via the extended instructions from the documentation.
  • Set the env variable and then build carla ny following the normal setup instead of the extended instructions since there is no cmake for a linux release
  • configure and build carla and the python api
  • try to build and launch the editor

Expected behavior
The Carla editor Builds and launches.

Logs
Log started at 04/24/2025 14:53:38 (2025-04-24T12:53:38Z)
No config file at /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Restricted/NotForLicensees/Programs/UnrealBuildTool/BuildConfiguration.xml
No config file at /usr/share/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
No config file at /home/user/snap/code/190/.local/share/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
No config file at /home/user/Documents/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
Configuration will be read from:
/home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Saved/UnrealBuildTool/BuildConfiguration.xml
/home/user/.config/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
Setting temp directory to '/tmp/UnrealBuildTool/d8b99b33'
Registering build platform: UnrealBuildTool.AndroidPlatformFactory
Unable to find valid SDK(s) for Android:
Found Sdk Version, MinRequired=r25b, MaxRequired=r27.
Found AutoSdk Version, Required=r25b.
Registering build platform: Android - buildable: False
Registering build platform: UnrealBuildTool.IOSPlatformFactory
Registering build platform: IOS - buildable: False
Registering build platform: UnrealBuildTool.LinuxPlatformFactory
Linux Installed SDK(s): Version_Sdk=v23_clang-18.1.0-rockylinux8, CurrentVersion_Sdk=v23_clang-18.1.0-rockylinux8, Version_AutoSdk=v23_clang-18.1.0-rockylinux8, CurrentVersion_AutoSdk=
Registering build platform: Linux - buildable: True
LinuxArm64 Installed SDK(s): Version_Sdk=v23_clang-18.1.0-rockylinux8, CurrentVersion_Sdk=v23_clang-18.1.0-rockylinux8, Version_AutoSdk=v23_clang-18.1.0-rockylinux8, CurrentVersion_AutoSdk=
Registering build platform: LinuxArm64 - buildable: True
Registering build platform: UnrealBuildTool.MacPlatformFactory
Registering build platform: Mac - buildable: False
Registering build platform: UnrealBuildTool.TVOSPlatformFactory
Registering build platform: TVOS - buildable: False
Registering build platform: UnrealBuildTool.WindowsPlatformFactory
Registering build platform: Win64 - buildable: False
Registering build platform: UnrealBuildTool.VisionOSPlatformFactory
Registering build platform: VisionOS - buildable: False
Command line: /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll CarlaUnreal Linux Development -project=/home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Unreal/CarlaUnreal/CarlaUnreal.uproject -game -buildscw
Log file: /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Programs/UnrealBuildTool/Log.txt
Deleting old log file: /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Programs/UnrealBuildTool/Log-backup-2025.04.24-11.31.43.txt

Using 'git status' to determine working set for adaptive non-unity build (/home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine).
Waiting for 'git status' command to complete
Generated code is up to date.
CarlaUnreal: Produced item "/home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Unreal/CarlaUnreal/Binaries/Linux/CarlaUnreal" doesn't exist.
Module.Carla.3.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:04
Module.Carla.4.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:05
Module.Carla.5.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:05
Module.Carla.6.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:04
Module.Carla.7.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:03
Module.Carla.8.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:11
Module.Carla.9.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:19
CarlaUnreal.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:05
PCH.CarlaUnreal.h: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:04:58
CarlaUnreal.target: Produced item "/home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Unreal/CarlaUnreal/Binaries/Linux/CarlaUnreal.target" doesn't exist.
Module.Carla.1.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:04:59
PCH.Carla.h: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:04:51
Module.Carla.10.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:24
Module.Carla.11.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:06:48
Module.Carla.12.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:34
Module.Carla.13.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:05
Module.Carla.2.cpp: Dependency /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/LibCarla/source/util/ue-header-guard-begin.h is newer than the last execution of the action: 04/24/2025 14:48:29 vs 04/24/2025 14:05:05
Checking for live coding mutex: Global\LiveCoding_+home+user+repos+unreal_engine_carla_0.10.0+CarlaUE5+Unreal+CarlaUnreal+Binaries+Linux+CarlaUnreal
Building CarlaUnreal...
Determining max actions to execute in parallel (12 physical cores, 24 logical cores)
Executing up to 12 processes, one per physical core
Using Unreal Build Accelerator local executor to run 18 action(s)
Storage capacity 40Gb
Deleting old log file: /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Programs/UnrealBuildTool/Log-backup-2025.04.21-10.10.17.uba
---- Starting trace ----
UbaSessionServer - Disable remote execution (remote sessions will finish current processes)
------ Building 18 action(s) started ------
[1/18] Compile PCH.Carla.h
[2/18] Compile PCH.CarlaUnreal.h
[3/18] Compile Module.Carla.1.cpp
[4/18] Compile Module.Carla.7.cpp
[5/18] Compile Module.Carla.6.cpp
[6/18] Compile Module.Carla.3.cpp
[7/18] Compile CarlaUnreal.cpp
[8/18] Compile Module.Carla.13.cpp
[9/18] Compile Module.Carla.4.cpp
[10/18] Compile Module.Carla.5.cpp
[11/18] Compile Module.Carla.2.cpp
[12/18] Compile Module.Carla.8.cpp
[13/18] Compile Module.Carla.9.cpp
[14/18] Compile Module.Carla.10.cpp
[15/18] Compile Module.Carla.12.cpp
[16/18] Compile Module.Carla.11.cpp
In file included from /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.11.cpp:48:
/home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp:495:46: warning: 'GetNamesOfAllActors' is deprecated: This command no longer makes sense since the apply_textures API relies on IDs. [-Wdeprecated-declarations]
495 | error: undefined symbol: __isoc23_strtol

referenced by pugixml.cpp
pugixml.cpp.o:(pugi::impl::(anonymous namespace)::convert_number_to_string(double, pugi::impl::(anonymous namespace)::xpath_allocator*)) in archive /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Build/LibCarla/libcarla-server.a
referenced by server.cc
server.cc.o:(clmdep_asio::detail::socket_ops::inet_pton(int, char const*, void*, unsigned long*, std::__1::error_code&)) in archive /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Build/_deps/rpclib-build/librpc.a
referenced by router.cpp
router.cpp.o:(boost::asio::detail::socket_ops::inet_pton(int, char const*, void*, unsigned long*, boost::system::error_code&)) in archive /home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Build/LibCarla/libcarla-server.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Trace file written to /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Programs/UnrealBuildTool/Log.uba with size 12.4kb
Total time in Unreal Build Accelerator local executor: 137.44 seconds
Total execution time: 145.24 seconds
CompilationResultException: OtherCompilationError
at UnrealBuildTool.ActionGraph.ExecuteActionsAsync(BuildConfiguration BuildConfiguration, List1 ActionsToExecute, List1 TargetDescriptors, ILogger Logger, IActionArtifactCache actionArtifactCache) in /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/System/ActionGraph.cs:line 471
at UnrealBuildTool.BuildMode.BuildAsync(TargetMakefile[] Makefiles, List1 TargetDescriptors, BuildConfiguration BuildConfiguration, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger, String ActionTypeFilter) in /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Modes/BuildMode.cs:line 823 at UnrealBuildTool.BuildMode.BuildAsync(List1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger, Boolean bSkipPreBuildTargets, String ActionTypeFilter) in /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Modes/BuildMode.cs:line 415
at UnrealBuildTool.BuildMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Modes/BuildMode.cs:line 255
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 687
WriteFileIfChanged() wrote 0 changed files of 0 requested writes.
Timeline:

[ 0.000]
0.000
[145.248] TArray NamesFString = GameMode->GetNamesOfAllActors();
| ^
/home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Game/CarlaGameModeBase.h:118:5: note: 'GetNamesOfAllActors' has been explicitly marked deprecated here
118 | [[deprecated("This command no longer makes sense since the apply_textures API relies on IDs.")]]
| ^
1 warning generated.
[17/18] Link (lld) CarlaUnreal (UBA disabled)
Link (lld) CarlaUnreal (UBA disabled): Exited with error code 1 . The build will fail.
Link (lld) CarlaUnreal (UBA disabled): WorkingDirectory /home/user/repos/unreal_engine_carla_0.10.0/UnrealEngine/Engine/Source
Link (lld) CarlaUnreal (UBA disabled): /bin/sh "/home/user/repos/unreal_engine_carla_0.10.0/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Link-CarlaUnreal.link.sh"
ld.lld:

Additional context
I had to install UE5 by using the extended instructions and then proceed with the normal setup but I reference the UE5 with my env variable. Also using a custom python environment.

@XinHu98
Copy link

XinHu98 commented May 3, 2025

I face the same problem

@qhaas
Copy link
Contributor

qhaas commented May 3, 2025

Problem still exists on Ubuntu 24.04, carla unreal engine fork commit eea6a8e677e3509a3e56122d69e3d380bb624bbf and carla commit 83a7d44
Error:

[1/2] Link (lld) CarlaUnreal (UBA disabled)
ld.lld: error: undefined symbol: __isoc23_strtol
>>> referenced by server.cc
>>>               server.cc.o:(clmdep_asio::detail::socket_ops::inet_pton(int, char const*, void*, unsigned long*, std::__1::error_code&)) in archive /mnt/carla-src/Build/_deps/rpclib-build/librpc.a
>>> referenced by pugixml.cpp
>>>               pugixml.cpp.o:(pugi::impl::(anonymous namespace)::convert_number_to_string(double, pugi::impl::(anonymous namespace)::xpath_allocator*)) in archive /mnt/carla-src/Build/LibCarla/libcarla-server.a
>>> referenced by router.cpp
>>>               router.cpp.o:(boost::asio::detail::socket_ops::inet_pton(int, char const*, void*, unsigned long*, boost::system::error_code&)) in archive /mnt/carla-src/Build/LibCarla/libcarla-server.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Dockerfile:

FROM Ubuntu:24.04

# use UTC as default timezone
ENV TZ=Etc/UTC
# debian-like images default to ascii
ENV LANG=C.UTF-8

# carla build apt deps
# from https://github.com/carla-simulator/carla/blob/ue5-dev/Util/SetupUtils/InstallPrerequisites.sh
ARG APT_PACKAGES="\
    build-essential \
    make \
    ninja-build \
    libvulkan1 \
    libpng-dev \
    libtiff5-dev \
    libjpeg-dev \
    tzdata \
    sed \
    curl \
    libtool \
    rsync \
    libxml2-dev \
    git \
    git-lfs \
    python3 \
    python3-dev \
    python3-pip \
    python3-build \
    python3-venv \
    cmake \
"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y $APT_PACKAGES && apt-get clean

Commands (assuming UE5 is built and located at CARLA_UNREAL_ENGINE_PATH):

$ cmake -G Ninja -S . -B Build \
            --toolchain=$PWD/CMake/Toolchain.cmake \
            -DCMAKE_BUILD_TYPE=Release \
            -DENABLE_ROS2=ON \
            -DBUILD_CARLA_UNREAL=ON \
            -DCARLA_UNREAL_ENGINE_PATH=$CARLA_UNREAL_ENGINE_PATH \
            -DCARLA_UNREAL_BUILD_TYPE=Shipping
...
$ cmake --build Build
$ cmake --build Build --target package

Thoughts:
Error __isoc23_strtol indicates a C++23 variant of a function call? If so, not sure if clang 18.1 supports the necessary c++23 functionality and I thought CARLA was set to use C++20 via cmake settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants