| Issue |
243609
|
| Summary |
fatal error: translation unit is too large for Clang to process: ran out of source locations
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
dalmurii
|
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and dumped files.
Stack dump:
0. Program arguments: /usr/bin/clang -DACLSPVLIB=1 -D_CRT_SECURE_NO_WARNINGS -D__ACLSPV_ATOMIC_ID=0 -D__ACLSPV_CHECK_EXTRA=1 -D__ACLSPV_OPACC_IDX_MAX=64 -D__ACLSPV_OpCapabilityKernel=0 -D__ACLSPV_OpCapabilityShader=1 -D__ACLSPV_SCLR_BF16=0 -D__ACLSPV_SCLR_F16=0 -D__ACLSPV_SHARED=1 -D__ACLSPV_SYMBOL=0 -I/home/ae2f/repo/aclspv/essential/build/3rdinc -I/home/ae2f/repo/aclspv/essential/src/inc -I/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Preproc/util/MacroREL/aclspv/common-essential/inc -I/home/ae2f/repo/aclspv/essential/src/../lib -I/home/ae2f/repo/ae2f/Pat/inc -I/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Preproc/util/MacroREL/ae2f/Pat/inc -I/home/ae2f/repo/ae2f/Core/inc -I/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Core/inc -I/home/ae2f/repo/aclspv/essential/inc -I/home/ae2f/repo/KhronosGroup/SPIRV-Headers/include -I/home/ae2f/repo/ae2f/Sys/inc -I/home/ae2f/repo/ae2f/Sys/impl/inc -I/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Preproc/util/MacroREL/ae2f/SysAuto/inc -I/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Preproc/util/MacroREL/ae2f/Pat2/inc -I/home/ae2f/repo/ae2f/c89atomic -I/home/ae2f/repo/ae2f/num/inc -I/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Preproc/util/MacroREL/ae2f/num/inc -I/home/ae2f/repo/ae2f/num/src -isystem /home/ae2f/repo/ae3f/nolibc89/inc -isystem /home/ae2f/repo/ae3f/nolibc89/proj/inc/LINUX -O3 -DNDEBUG -std=c90 -fPIC -Werror -Wall -Wextra -Wpedantic -Wshadow -Wfloat-equal -Wundef -Wconversion -Wsign-conversion -Wformat=2 -Wimplicit-fallthrough -Wswitch-enum -Wswitch-default -Wvla -Wmissing-declarations -Wnull-dereference -Wcomma -Wheader-hygiene -Wtautological-compare -Wparentheses -Wdouble-promotion -Wno-long-long -Wcast-align -Wformat-signedness -Wformat-truncation -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wnested-externs -MD -MT CMakeFiles/aclspv-aclemit.dir/lib/aclemit/fndecl/entp.c.o -MF CMakeFiles/aclspv-aclemit.dir/lib/aclemit/fndecl/entp.c.o.d -o CMakeFiles/aclspv-aclemit.dir/lib/aclemit/fndecl/entp.c.o -c /home/ae2f/repo/aclspv/essential/lib/aclemit/fndecl/entp.c
1. /home/ae2f/repo/aclspv/essential/src/../lib/./acltrl/f16.h:34:2 <Spelling=/home/ae2f/repo/ae2f/num/inc/ae2f/num/bv/get-set.h:24:2>: current parser token 'ae2fnum_bv_set_rng'
2. /home/ae2f/repo/aclspv/essential/src/../lib/./acltrl/f16.h:20:22: parsing function body 'acltrl_f32_to_f16'
3. /home/ae2f/repo/aclspv/essential/src/../lib/./acltrl/f16.h:20:22: in compound statement ('{}')
4. /home/ae2f/repo/aclspv/essential/src/../lib/./acltrl/f16.h:34:2 <Spelling=/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Preproc/util/MacroREL/ae2f/num/inc/.ae2f/num/flt/cast.h:57:3>: in compound statement ('{}')
5. /home/ae2f/repo/aclspv/essential/src/../lib/./acltrl/f16.h:34:2 <Spelling=/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Preproc/util/MacroREL/ae2f/num/inc/.ae2f/num/flt/cast.h:58:6>: in compound statement ('{}')
6. /home/ae2f/repo/aclspv/essential/src/../lib/./acltrl/f16.h:34:2 <Spelling=/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Preproc/util/MacroREL/ae2f/num/inc/.ae2f/num/bv/mov.h:40:3>: in compound statement ('{}')
7. /home/ae2f/repo/aclspv/essential/src/../lib/./acltrl/f16.h:34:2 <Spelling=/home/ae2f/repo/aclspv/essential/build/repo/ae2f/Preproc/util/MacroREL/ae2f/num/inc/.ae2f/num/bv/mov.h:42:43>: in compound statement ('{}')
8. #0 0x00007f557eb552c6 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/libLLVM.so.23.1+0x9552c6)
#1 0x00007f557eb52ae4 llvm::sys::CleanupOnSignal(unsigned long) (/usr/lib/libLLVM.so.23.1+0x952ae4)
#2 0x00007f557e9f7e61 llvm::CrashRecoveryContext::HandleExit(int) (/usr/lib/libLLVM.so.23.1+0x7f7e61)
#3 0x00007f557eb4aea4 llvm::sys::Process::Exit(int, bool) (/usr/lib/libLLVM.so.23.1+0x94aea4)
#4 0x000055dea9870efb (/usr/bin/clang+0x12efb)
#5 0x00007f557ea1c501 llvm::report_fatal_error(llvm::Twine const&, bool) (/usr/lib/libLLVM.so.23.1+0x81c501)
#6 0x00007f557ea1c6ce (/usr/lib/libLLVM.so.23.1+0x81c6ce)
#7 0x00007f558912012e clang::SourceManager::createExpansionLocImpl(clang::SrcMgr::ExpansionInfo const&, unsigned int, int, unsigned int) (/usr/lib/libclang-cpp.so.23.1+0x72012e)
#8 0x00007f5589120253 clang::SourceManager::createMacroArgExpansionLoc(clang::SourceLocation, clang::SourceLocation, unsigned int) (/usr/lib/libclang-cpp.so.23.1+0x720253)
#9 0x00007f558936180e clang::TokenLexer::updateLocForMacroArgTokens(clang::SourceLocation, clang::Token*, clang::Token*) (/usr/lib/libclang-cpp.so.23.1+0x96180e)
#10 0x00007f5589364773 clang::TokenLexer::ExpandFunctionArguments() (/usr/lib/libclang-cpp.so.23.1+0x964773)
#11 0x00007f5589365030 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/usr/lib/libclang-cpp.so.23.1+0x965030)
#12 0x00007f558931ea36 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/usr/lib/libclang-cpp.so.23.1+0x91ea36)
#13 0x00007f558933b39f clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/usr/lib/libclang-cpp.so.23.1+0x93b39f)
#14 0x00007f558935e9b9 clang::Preprocessor::HandleIdentifier(clang::Token&) (/usr/lib/libclang-cpp.so.23.1+0x95e9b9)
#15 0x00007f5589359b7c clang::Preprocessor::Lex(clang::Token&) (/usr/lib/libclang-cpp.so.23.1+0x959b7c)
#16 0x00007f55892b1f4f clang::MacroArgs::getPreExpArgument(unsigned int, clang::Preprocessor&) (/usr/lib/libclang-cpp.so.23.1+0x8b1f4f)
#17 0x00007f5589364433 clang::TokenLexer::ExpandFunctionArguments() (/usr/lib/libclang-cpp.so.23.1+0x964433)
#18 0x00007f5589365030 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/usr/lib/libclang-cpp.so.23.1+0x965030)
#19 0x00007f558931ea36 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/usr/lib/libclang-cpp.so.23.1+0x91ea36)
#20 0x00007f558933b39f clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/usr/lib/libclang-cpp.so.23.1+0x93b39f)
#21 0x00007f558935e9b9 clang::Preprocessor::HandleIdentifier(clang::Token&) (/usr/lib/libclang-cpp.so.23.1+0x95e9b9)
#22 0x00007f5589359b7c clang::Preprocessor::Lex(clang::Token&) (/usr/lib/libclang-cpp.so.23.1+0x959b7c)
#23 0x00007f55893d9330 clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*, true>, clang::prec::Level) (/usr/lib/libclang-cpp.so.23.1+0x9d9330)
#24 0x00007f55893e4145 clang::Parser::ParseExpression(clang::TypoCorrectionTypeBehavior) (/usr/lib/libclang-cpp.so.23.1+0x9e4145)
#25 0x00007f55894908f6 clang::Parser::ParseExprStatement(clang::Parser::ParsedStmtContext) (/usr/lib/libclang-cpp.so.23.1+0xa908f6)
#26 0x00007f5589486d9a clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa86d9a)
#27 0x00007f5589487946 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa87946)
#28 0x00007f5589488bf0 clang::Parser::ParseCompoundStatementBody(bool) (/usr/lib/libclang-cpp.so.23.1+0xa88bf0)
#29 0x00007f55894897e8 (/usr/lib/libclang-cpp.so.23.1+0xa897e8)
#30 0x00007f5589126875 clang::StackExhaustionHandler::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/lib/libclang-cpp.so.23.1+0x726875)
#31 0x00007f558947e896 clang::Parser::ParseCompoundStatement(bool, unsigned int) (/usr/lib/libclang-cpp.so.23.1+0xa7e896)
#32 0x00007f558948673f clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa8673f)
#33 0x00007f5589487946 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa87946)
#34 0x00007f5589489855 clang::Parser::ParseStatement(clang::SourceLocation*, clang::Parser::ParsedStmtContext, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa89855)
#35 0x00007f558948a4d8 clang::Parser::ParseForStatement(clang::SourceLocation*, clang::LabelDecl*, clang::CXXExpansionStmtDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa8a4d8)
#36 0x00007f5589486456 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa86456)
#37 0x00007f5589487946 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa87946)
#38 0x00007f5589488bf0 clang::Parser::ParseCompoundStatementBody(bool) (/usr/lib/libclang-cpp.so.23.1+0xa88bf0)
#39 0x00007f55894897e8 (/usr/lib/libclang-cpp.so.23.1+0xa897e8)
#40 0x00007f5589126875 clang::StackExhaustionHandler::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/lib/libclang-cpp.so.23.1+0x726875)
#41 0x00007f558947e896 clang::Parser::ParseCompoundStatement(bool, unsigned int) (/usr/lib/libclang-cpp.so.23.1+0xa7e896)
#42 0x00007f558948673f clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa8673f)
#43 0x00007f5589487946 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa87946)
#44 0x00007f5589488bf0 clang::Parser::ParseCompoundStatementBody(bool) (/usr/lib/libclang-cpp.so.23.1+0xa88bf0)
#45 0x00007f55894897e8 (/usr/lib/libclang-cpp.so.23.1+0xa897e8)
#46 0x00007f5589126875 clang::StackExhaustionHandler::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/lib/libclang-cpp.so.23.1+0x726875)
#47 0x00007f558947e896 clang::Parser::ParseCompoundStatement(bool, unsigned int) (/usr/lib/libclang-cpp.so.23.1+0xa7e896)
#48 0x00007f558948673f clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa8673f)
#49 0x00007f5589487946 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa87946)
#50 0x00007f5589489855 clang::Parser::ParseStatement(clang::SourceLocation*, clang::Parser::ParsedStmtContext, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa89855)
#51 0x00007f558948c8dc clang::Parser::ParseDoStatement(clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa8c8dc)
#52 0x00007f55894864c7 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa864c7)
#53 0x00007f5589487946 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa87946)
#54 0x00007f5589488bf0 clang::Parser::ParseCompoundStatementBody(bool) (/usr/lib/libclang-cpp.so.23.1+0xa88bf0)
#55 0x00007f55894897e8 (/usr/lib/libclang-cpp.so.23.1+0xa897e8)
#56 0x00007f5589126875 clang::StackExhaustionHandler::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/lib/libclang-cpp.so.23.1+0x726875)
#57 0x00007f558947e896 clang::Parser::ParseCompoundStatement(bool, unsigned int) (/usr/lib/libclang-cpp.so.23.1+0xa7e896)
#58 0x00007f558948673f clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa8673f)
#59 0x00007f5589487946 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) (/usr/lib/libclang-cpp.so.23.1+0xa87946)
#60 0x00007f5589488bf0 clang::Parser::ParseCompoundStatementBody(bool) (/usr/lib/libclang-cpp.so.23.1+0xa88bf0)
#61 0x00007f5589489702 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/usr/lib/libclang-cpp.so.23.1+0xa89702)
#62 0x00007f55894bdf74 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::LateParsedAttrList*) (/usr/lib/libclang-cpp.so.23.1+0xabdf74)
#63 0x00007f55893a9a15 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/usr/lib/libclang-cpp.so.23.1+0x9a9a15)
#64 0x00007f55894b7865 clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/usr/lib/libclang-cpp.so.23.1+0xab7865)
#65 0x00007f55894b802f clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (/usr/lib/libclang-cpp.so.23.1+0xab802f)
#66 0x00007f55894c4644 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/usr/lib/libclang-cpp.so.23.1+0xac4644)
#67 0x00007f55894c582c clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (/usr/lib/libclang-cpp.so.23.1+0xac582c)
#68 0x00007f558936586d clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/libclang-cpp.so.23.1+0x96586d)
#69 0x00007f558bd1aaa5 clang::FrontendAction::Execute() (/usr/lib/libclang-cpp.so.23.1+0x331aaa5)
#70 0x00007f558bc9e212 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/libclang-cpp.so.23.1+0x329e212)
#71 0x00007f558bde978b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/libclang-cpp.so.23.1+0x33e978b)
#72 0x000055dea9873138 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang<truncated>Please see the issue for the entire body.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs