Ubuntu Linux Engine Compilation fails

Bionic_Ape
Fri, 10 Feb 2023 00:04:05 +0000
International

Hi,

I am fairly new to compiling the Engine in Linux using an actual Linux Operanting system instead of Cross Compiling, and I am not having any success…

I am trying to build from source using the tag 5.1.1-release without any success…

I am fairly ignorant in compiling it for Linux but it is quite crucial to do it without cross compiling since we are migrating our servers to Linux and we want to have some sort of CI-CD.

Here’s the output of the terminal:

Building 384 actions with 5 processes…
[1/384] Compile Module.AssetPlacementEdMode.cpp
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++ @…/Plugins/Experimental/AssetPlacementEdMode/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/AssetPlacementEdMode/Module.AssetPlacementEdMode.cpp.o.response

1. Editor/UnrealEd/Public/Tools/UEdMode.h:281:74: current parser token ‘;’

2. Editor/UnrealEd/Public/Tools/UEdMode.h:71:1: parsing struct/union/class body ‘UEdMode’

3. /home/bionicape/wkspaces/UnrealEngine/Engine/Source/Runtime/Core/Public/Containers/Array.h:350:7: instantiating class definition ‘TArray<TTuple<TSharedPtr<FUICommandInfo, ESPMode::ThreadSafe>, FString>>’

4. : instantiating class definition ‘TSizedHeapAllocator<32>::ForElementType<TTuple<TSharedPtr<FUICommandInfo, ESPMode::ThreadSafe>, FString>>’
#0 0x0000000001cb1cac llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1cb1cac)
#1 0x0000000001caff04 llvm::sys::RunSignalHandlers() (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1caff04)
#2 0x0000000001cb0481 llvm::sys::CleanupOnSignal(unsigned long) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1cb0481)
#3 0x0000000001c30ca8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#4 0x00007fe7fbd21520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#5 0x0000000001f03261 clang::DiagnosticsEngine::DiagState::getOrAddMapping(unsigned int) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1f03261)
#6 0x0000000001f03689 clang::DiagnosticIDs::getDiagnosticSeverity(unsigned int, clang::SourceLocation, clang::DiagnosticsEngine const&) const (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1f03689)
#7 0x00000000038e0452 clang::Sema::DiagnoseHiddenVirtualMethods(clang::CXXMethodDecl*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x38e0452)
#8 0x000000000391451b clang::Sema::CheckCompletedCXXClass(clang::Scope*, clang::CXXRecordDecl*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x391451b)
#9 0x0000000003d8e53f clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3d8e53f)
#10 0x0000000003da4a9c clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3da4a9c)
#11 0x0000000003e0215f void llvm::function_ref<void ()>::callback_fn<clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::CompleteTypeKind, clang::Sema::TypeDiagnoser*)::‘lambda’()>(long) SemaType.cpp:0:0
#12 0x000000000372448f clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x372448f)
#13 0x0000000003e06605 clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::CompleteTypeKind, clang::Sema::TypeDiagnoser*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3e06605)
#14 0x0000000003e06765 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::CompleteTypeKind, clang::Sema::TypeDiagnoser&) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3e06765)
#15 0x0000000003850ea4 clang::Sema::CheckFieldDecl(clang::DeclarationName, clang::QualType, clang::TypeSourceInfo*, clang::RecordDecl*, clang::SourceLocation, bool, clang::Expr*, clang::InClassInitStyle, clang::SourceLocation, clang::AccessSpecifier, clang::NamedDecl*, clang::Declarator*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3850ea4)
#16 0x0000000003ddd24d clang::TemplateDeclInstantiator::VisitFieldDecl(clang::FieldDecl*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3ddd24d)
#17 0x0000000003d8e43f clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*, clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&, clang::TemplateSpecializationKind, bool) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3d8e43f)
#18 0x0000000003da4a9c clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3da4a9c)
#19 0x0000000003e0215f void llvm::function_ref<void ()>::callback_fn<clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::CompleteTypeKind, clang::Sema::TypeDiagnoser*)::‘lambda’()>(long) SemaType.cpp:0:0
#20 0x000000000372448f clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x372448f)
#21 0x0000000003e06605 clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::CompleteTypeKind, clang::Sema::TypeDiagnoser*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3e06605)
#22 0x0000000003e06765 clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::CompleteTypeKind, clang::Sema::TypeDiagnoser&) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3e06765)
#23 0x0000000003850ea4 clang::Sema::CheckFieldDecl(clang::DeclarationName, clang::QualType, clang::TypeSourceInfo*, clang::RecordDecl*, clang::SourceLocation, bool, clang::Expr*, clang::InClassInitStyle, clang::SourceLocation, clang::AccessSpecifier, clang::NamedDecl*, clang::Declarator*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3850ea4)
#24 0x0000000003862e60 clang::Sema::HandleField(clang::Scope*, clang::RecordDecl*, clang::SourceLocation, clang::Declarator&, clang::Expr*, clang::InClassInitStyle, clang::AccessSpecifier) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3862e60)
#25 0x000000000390541d clang::Sema::ActOnCXXMemberDeclarator(clang::Scope*, clang::AccessSpecifier, clang::Declarator&, llvm::MutableArrayRefclang::TemplateParameterList*, clang::Expr*, clang::VirtSpecifiers const&, clang::InClassInitStyle) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x390541d)
#26 0x000000000366c693 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x366c693)
#27 0x000000000366e7e0 clang::Parser::ParseCXXClassMemberDeclarationWithPragmas(clang::AccessSpecifier&, clang::ParsedAttributesWithRange&, clang::TypeSpecifierType, clang::Decl*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x366e7e0)
#28 0x000000000366ef41 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, clang::SourceLocation, clang::ParsedAttributesWithRange&, unsigned int, clang::Decl*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x366ef41)
#29 0x0000000003671483 clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext, clang::ParsedAttributesWithRange&) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3671483)
#30 0x00000000036546e7 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x36546e7)
#31 0x000000000362c58f clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x362c58f)
#32 0x000000000362cdd9 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (.part.262) Parser.cpp:0:0
#33 0x0000000003632336 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3632336)
#34 0x0000000003633781 clang::Parser::ParseTopLevelDecl(clang::OpaquePtrclang::DeclGroupRef&, bool) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3633781)
#35 0x0000000003627c39 clang::ParseAST(clang::Sema&, bool, bool) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3627c39)
#36 0x0000000002aaa24f clang::CodeGenAction::ExecuteAction() (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x2aaa24f)
#37 0x00000000024da361 clang::FrontendAction::Execute() (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x24da361)
#38 0x00000000024841c2 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x24841c2)
#39 0x000000000259c773 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x259c773)
#40 0x0000000000a261f4 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0xa261f4)
#41 0x0000000000a228dd ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#42 0x0000000002358805 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optionalllvm::StringRef >, std::string*, bool*) const::‘lambda’()>(long) Job.cpp:0:0
#43 0x0000000001c30d83 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1c30d83)
#44 0x000000000235a73b clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optionalllvm::StringRef >, std::string*, bool*) const (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x235a73b)
#45 0x0000000002335848 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x2335848)
#46 0x00000000023360a3 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x23360a3)
#47 0x000000000233df03 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x233df03)
#48 0x00000000009946f2 main (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x9946f2)
#49 0x00007fe7fbd08d90 __libc_start_call_main ./csu/…/sysdeps/nptl/libc_start_call_main.h:58:16
#50 0x00007fe7fbd08e40 call_init ./csu/…/csu/libc-start.c:128:20
#51 0x00007fe7fbd08e40 __libc_start_main ./csu/…/csu/libc-start.c:379:5
#52 0x0000000000a22255 _start (/home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang+++0xa22255)
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 13.0.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/bionicape/wkspaces/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin
clang++: note: diagnostic msg:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/Module-0a545d.cpp
clang++: note: diagnostic msg: /tmp/Module-0a545d.sh
clang++: note: diagnostic msg:

https://drive.google.com/drive/folders/11Ff12z6CkjdStH2rVdS6VSZHshg1InEk?usp=sharing

1 post - 1 participant