Skip to content
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

undefined symbol: typeinfo for AController, AActor,USceneComponent,UObject... #8380

Open
wudi2048 opened this issue Nov 17, 2024 · 1 comment
Assignees

Comments

@wudi2048
Copy link

I am encountering a linker error when building CarlaUE5 on Ubuntu 22.04. The error indicates that the type information (typeinfo) for various core Unreal Engine classes, such as AController, AActor, UObject, etc., cannot be found. Below is the error log I receive during the build process:

Errot Log:

Building CarlaUnreal...
Determining max actions to execute in parallel (16 physical cores, 24 logical cores)
  Executing up to 16 processes, one per physical core
Using Unreal Build Accelerator local executor to run 2 action(s)
  Storage capacity 40Gb
---- Starting trace ----
UbaSessionServer - Disable remote execution (remote sessions will finish current processes)
------ Building 2 action(s) started ------
[1/2] Link (lld) CarlaUnreal (UBA disabled)
ld.lld: error: undefined symbol: typeinfo for AController
>>> referenced by Module.Carla.12.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.12.cpp.o:(typeinfo for AWheeledVehicleAIController)
>>> referenced by Module.Carla.8.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.8.cpp.o:(typeinfo for AWalkerController)
>>> did you mean: vtable for AController
>>> defined in: /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Engine/Module.Engine.37.cpp.o

ld.lld: error: undefined symbol: typeinfo for AActor
>>> referenced by Module.Carla.6.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.6.cpp.o:(typeinfo for ASensor)
>>> referenced by Module.Carla.6.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.6.cpp.o:(typeinfo for ASensorSpawnerActor)
>>> referenced by Module.Carla.6.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.6.cpp.o:(typeinfo for ASkyBase)
>>> referenced 25 more times
>>> did you mean: vtable for AActor
>>> defined in: /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Engine/Module.Engine.25.cpp.o

ld.lld: error: undefined symbol: typeinfo for USceneComponent
>>> referenced by Module.Carla.6.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.6.cpp.o:(typeinfo for USignComponent)
>>> referenced by Module.Carla.4.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.4.cpp.o:(typeinfo for UNoWorldOffsetSceneComponent)

ld.lld: error: undefined symbol: typeinfo for UActorComponent
>>> referenced by Module.Carla.6.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.6.cpp.o:(typeinfo for USpringBasedVegetationComponent)
>>> referenced by Module.Carla.8.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.8.cpp.o:(typeinfo for UVehicleVelocityControl)
>>> referenced by Module.Carla.3.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.3.cpp.o:(typeinfo for UCustomTerrainPhysicsComponent)
>>> referenced 1 more times

ld.lld: error: undefined symbol: typeinfo for UObject
>>> referenced by Module.Carla.6.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.6.cpp.o:(typeinfo for UTaggerDelegate)
>>> referenced by Module.Carla.7.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.7.cpp.o:(typeinfo for UTrafficLightController)
>>> referenced by Module.Carla.7.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.7.cpp.o:(typeinfo for UInterface)
>>> referenced 8 more times

ld.lld: error: undefined symbol: typeinfo for UCommandlet
>>> referenced by Module.Carla.4.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.4.cpp.o:(typeinfo for ULoadAssetMaterialsCommandlet)
>>> referenced by Module.Carla.4.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.4.cpp.o:(typeinfo for UMoveAssetsCommandlet)
>>> referenced by Module.Carla.4.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.4.cpp.o:(typeinfo for UPrepareAssetsForCookingCommandlet)

ld.lld: error: undefined symbol: typeinfo for UBlueprintFunctionLibrary
>>> referenced by Module.Carla.4.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.4.cpp.o:(typeinfo for UMapGenFunctionLibrary)
>>> referenced by Module.Carla.4.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.4.cpp.o:(typeinfo for UOpenDrive)
>>> referenced by Module.Carla.5.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.5.cpp.o:(typeinfo for URayTracer)
>>> referenced 6 more times

ld.lld: error: undefined symbol: typeinfo for USceneCaptureComponent2D
>>> referenced by Module.Carla.5.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.5.cpp.o:(typeinfo for USceneCaptureComponent2D_CARLA)

ld.lld: error: undefined symbol: typeinfo for USceneCaptureComponentCube
>>> referenced by Module.Carla.5.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.5.cpp.o:(typeinfo for USceneCaptureComponentCube_CARLA)

ld.lld: error: undefined symbol: typeinfo for UPrimaryDataAsset
>>> referenced by Module.Carla.3.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.3.cpp.o:(typeinfo for UHeightMapDataAsset)

ld.lld: error: undefined symbol: typeinfo for USceneCaptureComponent
>>> referenced by Module.Carla.5.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.5.cpp.o:(typeinfo for USceneCaptureComponent_CARLA)

ld.lld: error: undefined symbol: typeinfo for ATargetPoint
>>> referenced by Module.Carla.8.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.8.cpp.o:(typeinfo for AVehicleSpawnPoint)
>>> referenced by Module.Carla.8.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.8.cpp.o:(typeinfo for AWalkerSpawnPointBase)

ld.lld: error: undefined symbol: typeinfo for UAnimInstance
>>> referenced by Module.Carla.8.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.8.cpp.o:(typeinfo for UWalkerAnim)

ld.lld: error: undefined symbol: typeinfo for ACharacter
>>> referenced by Module.Carla.8.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.8.cpp.o:(typeinfo for AWalkerBase)

ld.lld: error: undefined symbol: typeinfo for UChaosWheeledVehicleMovementComponent
>>> referenced by Module.Carla.8.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.8.cpp.o:(typeinfo for UWheeledVehicleMovementComponentNW)

ld.lld: error: undefined symbol: typeinfo for AGameModeBase
>>> referenced by Module.Carla.2.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.2.cpp.o:(typeinfo for ACarlaGameModeBase)

ld.lld: error: undefined symbol: typeinfo for AHUD
>>> referenced by Module.Carla.2.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.2.cpp.o:(typeinfo for ACarlaHUD)

ld.lld: error: undefined symbol: typeinfo for UWorldSubsystem
>>> referenced by Module.Carla.2.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.2.cpp.o:(typeinfo for UCarlaLightSubsystem)

ld.lld: error: undefined symbol: typeinfo for APawn
>>> referenced by Module.Carla.3.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.3.cpp.o:(typeinfo for AEmptyActor)

ld.lld: error: undefined symbol: typeinfo for UMovementComponent
>>> referenced by Module.Carla.1.cpp
>>>               /home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/Intermediate/Build/Linux/x64/CarlaUnreal/Development/Carla/Module.Carla.1.cpp.o:(typeinfo for UBaseCarlaMovementComponent)

ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Trace file written to /home/vcc/Desktop/UnrealEngine5_carla/Engine/Programs/UnrealBuildTool/Log.uba with size 9.4kb
Total time in Unreal Build Accelerator local executor: 2.74 seconds
Total execution time: 4.20 seconds
FAILED: Unreal/CMakeFiles/carla-unreal /home/vcc/Desktop/CarlaUE5/Build/Unreal/CMakeFiles/carla-unreal 
cd /home/vcc/Desktop/CarlaUE5/Build/Unreal && /home/vcc/Desktop/UnrealEngine5_carla/Engine/Build/BatchFiles/Linux/Build.sh CarlaUnreal Linux Development -project=/home/vcc/Desktop/CarlaUE5/Unreal/CarlaUnreal/CarlaUnreal.uproject -game -buildscw
ninja: build stopped: subcommand failed.

Has anyone encountered similar issues while building CarlaUE5 on Linux (Ubuntu 22.04)? If so, how was it resolved?

@MarcelPiNacy-CVC
Copy link

Hi,
Try updating to the most recent commits of ue5-dev on CARLA and ue5-dev-carla on the CARLA UE5 fork. You should also delete the build folder.

Marcel

@MarcelPiNacy-CVC MarcelPiNacy-CVC self-assigned this Nov 22, 2024
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

2 participants