[Clang] Build Crash
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Source: https://github.com/solomoncyj/waywallen
cmake command:
```
cmake -B build -S . -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_SKIP_INSTALL_RPATH=ON -G Ninja -DBUILD_SHARED_LIBS=ON
```
[Preprocessed sources and associated run scripts .zip](https://github.com/user-attachments/files/27071668/Preprocessed.sources.and.associated.run.scripts.zip)
error log:
This is a dropdown with text!
```
FAILED: [code=1] _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/curl_error.cppm.o _deps/ncrequest-build/CMakeFiles/ncrequest.dir/ncrequest.curl-error.pcm
/usr/lib64/ccache/clang++ -DASIO_HAS_THREADS -DASIO_NO_DEPRECATED -I/home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src -I/home/solomoncyj/Downloads/waywallen/build/_deps/rstd-src/src/core/include -I/home/solomoncyj/Downloads/waywallen/build/_deps/pegtl-src/include -isystem /home/solomoncyj/Downloads/waywallen/build/_deps/asio-src/asio/include -march=native -flto=thin -Os -DNDEBUG -std=c++23 -fPIC -Wall -Wextra -Wpedantic -Werror=mismatched-tags -DWITH_GZFILEOP -MD -MT _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/curl_error.cppm.o -MF _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/curl_error.cppm.o.d @_deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/curl_error.cppm.o.modmap -o _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/curl_error.cppm.o -c /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/client/curl/curl_error.cppm
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /usr/bin/clang++ -DASIO_HAS_THREADS -DASIO_NO_DEPRECATED -I/home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src -I/home/solomoncyj/Downloads/waywallen/build/_deps/rstd-src/src/core/include -I/home/solomoncyj/Downloads/waywallen/build/_deps/pegtl-src/include -isystem /home/solomoncyj/Downloads/waywallen/build/_deps/asio-src/asio/include -march=native -flto=thin -Os -DNDEBUG -std=c++23 -fPIC -Wall -Wextra -Wpedantic -Werror=mismatched-tags -DWITH_GZFILEOP -MD -MT _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/curl_error.cppm.o -MF _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/curl_error.cppm.o.d @_deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/curl_error.cppm.o.modmap -o _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/curl_error.cppm.o -c /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/client/curl/curl_error.cppm
1. /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/client/curl/curl_error.cppm:10:1: current parser token 'export'
#0 0x00007fb42683ce99 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM.so.22.1+0x563ce99)
#1 0x00007fb42683cc29 llvm::sys::CleanupOnSignal(unsigned long) (/lib64/libLLVM.so.22.1+0x563cc29)
#2 0x00007fb4267b74a5 (/lib64/libLLVM.so.22.1+0x55b74a5)
#3 0x00007fb4267b76b6 (/lib64/libLLVM.so.22.1+0x55b76b6)
#4 0x00007fb420c1f5b0 __restore_rt (/lib64/libc.so.6+0x1a5b0)
#5 0x00007fb42b5a8c33 clang::Decl::castToDeclContext(clang::Decl const*) (/lib64/libclang-cpp.so.22.1+0x17a8c33)
#6 0x00007fb42cf78bcb clang::ASTReader::loadDeclUpdateRecords(clang::ASTReader::PendingUpdateRecord&) (/lib64/libclang-cpp.so.22.1+0x3178bcb)
#7 0x00007fb42cf331ed clang::ASTReader::finishPendingActions() (/lib64/libclang-cpp.so.22.1+0x31331ed)
#8 0x00007fb42cf35def clang::ASTReader::FinishedDeserializing() (/lib64/libclang-cpp.so.22.1+0x3135def)
#9 0x00007fb42cf2e2ae clang::ASTReader::FindExternalVisibleDeclsByName(clang::DeclContext const*, clang::DeclarationName, clang::DeclContext const*) (/lib64/libclang-cpp.so.22.1+0x312e2ae)
#10 0x00007fb42b269108 clang::Sema::LookupQualifiedName(clang::LookupResult&, clang::DeclContext*, bool) (/lib64/libclang-cpp.so.22.1+0x1469108)
#11 0x00007fb42b350605 clang::Sema::ActOnStartNamespaceDef(clang::Scope*, clang::SourceLocation, clang::SourceLocation, clang::SourceLocation, clang::IdentifierInfo*, clang::SourceLocation, clang::ParsedAttributesView const&, clang::UsingDirectiveDecl*&, bool) (/lib64/libclang-cpp.so.22.1+0x1550605)
#12 0x00007fb42b16668d clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (/lib64/libclang-cpp.so.22.1+0x136668d)
#13 0x00007fb42b1708a2 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*) (/lib64/libclang-cpp.so.22.1+0x13708a2)
#14 0x00007fb42b16ceb2 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.22.1+0x136ceb2)
#15 0x00007fb42b16a69c clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.22.1+0x136a69c)
#16 0x00007fb42baf9ccf clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.22.1+0x1cf9ccf)
#17 0x00007fb42baf98da clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.22.1+0x1cf98da)
#18 0x00007fb42baf955e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.22.1+0x1cf955e)
#19 0x0000558810be418a cc1_main(llvm::ArrayRef, char const*, void*) (/usr/bin/clang+++0xf18a)
#20 0x0000558810be3596 (/usr/bin/clang+++0xe596)
#21 0x0000558810be345c (/usr/bin/clang+++0xe45c)
#22 0x00007fb42ce20c5d (/lib64/libclang-cpp.so.22.1+0x3020c5d)
#23 0x00007fb4267b7440 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref) (/lib64/libLLVM.so.22.1+0x55b7440)
#24 0x00007fb42bb9b55f clang::driver::CC1Command::Execute(llvm::ArrayRef>, std::__cxx11::basic_string, std::allocator>*, bool*) const (/lib64/libclang-cpp.so.22.1+0x1d9b55f)
#25 0x00007fb42ba6a00f clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/lib64/libclang-cpp.so.22.1+0x1c6a00f)
#26 0x00007fb42ba69e32 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl>&, bool) const (/lib64/libclang-cpp.so.22.1+0x1c69e32)
#27 0x00007fb42ba69a68 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl>&) (/lib64/libclang-cpp.so.22.1+0x1c69a68)
#28 0x0000558810be5ee8 clang_main(int, char**, llvm::ToolContext const&) (/usr/bin/clang+++0x10ee8)
#29 0x0000558810be5399 main (/usr/bin/clang+++0x10399)
#30 0x00007fb420c08681 __libc_start_call_main (/lib64/libc.so.6+0x3681)
#31 0x00007fb420c08798 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3798)
#32 0x0000558810bec4b5 _start (/usr/bin/clang+++0x174b5)
clang++: error: clang frontend command failed with exit code 132 (use -v to see invocation)
clang version 22.1.2 (Fedora 22.1.2-1.fc44)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang++.cfg
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/curl_error-01b3be.cppm
clang++: note: diagnostic msg: /tmp/curl_error-01b3be.sh
clang++: note: diagnostic msg:
********************
[683/1262] Building CXX object _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o
FAILED: [code=1] _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o _deps/ncrequest-build/CMakeFiles/ncrequest.dir/ncrequest.event-interface.pcm
/usr/lib64/ccache/clang++ -DASIO_HAS_THREADS -DASIO_NO_DEPRECATED -I/home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src -I/home/solomoncyj/Downloads/waywallen/build/_deps/rstd-src/src/core/include -I/home/solomoncyj/Downloads/waywallen/build/_deps/pegtl-src/include -isystem /home/solomoncyj/Downloads/waywallen/build/_deps/asio-src/asio/include -march=native -flto=thin -Os -DNDEBUG -std=c++23 -fPIC -Wall -Wextra -Wpedantic -Werror=mismatched-tags -DWITH_GZFILEOP -MD -MT _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o -MF _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o.d @_deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o.modmap -o _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o -c /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/event/interface.cppm
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /usr/bin/clang++ -DASIO_HAS_THREADS -DASIO_NO_DEPRECATED -I/home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src -I/home/solomoncyj/Downloads/waywallen/build/_deps/rstd-src/src/core/include -I/home/solomoncyj/Downloads/waywallen/build/_deps/pegtl-src/include -isystem /home/solomoncyj/Downloads/waywallen/build/_deps/asio-src/asio/include -march=native -flto=thin -Os -DNDEBUG -std=c++23 -fPIC -Wall -Wextra -Wpedantic -Werror=mismatched-tags -DWITH_GZFILEOP -MD -MT _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o -MF _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o.d @_deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o.modmap -o _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/event/interface.cppm.o -c /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/event/interface.cppm
1. /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/event/interface.cppm:26:55: current parser token 'ref'
2. /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/event/interface.cppm:9:1: parsing namespace 'ncrequest'
3. /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/event/interface.cppm:23:8: parsing struct/union/class body 'ncrequest::event::Context'
#0 0x00007f855c03ce99 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM.so.22.1+0x563ce99)
#1 0x00007f855c03cc29 llvm::sys::CleanupOnSignal(unsigned long) (/lib64/libLLVM.so.22.1+0x563cc29)
#2 0x00007f855bfb74a5 (/lib64/libLLVM.so.22.1+0x55b74a5)
#3 0x00007f855bfb76b6 (/lib64/libLLVM.so.22.1+0x55b76b6)
#4 0x00007f855641f5b0 __restore_rt (/lib64/libc.so.6+0x1a5b0)
#5 0x00007f8560da8c33 clang::Decl::castToDeclContext(clang::Decl const*) (/lib64/libclang-cpp.so.22.1+0x17a8c33)
#6 0x00007f8562778bcb clang::ASTReader::loadDeclUpdateRecords(clang::ASTReader::PendingUpdateRecord&) (/lib64/libclang-cpp.so.22.1+0x3178bcb)
#7 0x00007f85627331ed clang::ASTReader::finishPendingActions() (/lib64/libclang-cpp.so.22.1+0x31331ed)
#8 0x00007f8562735def clang::ASTReader::FinishedDeserializing() (/lib64/libclang-cpp.so.22.1+0x3135def)
#9 0x00007f856272e2ae clang::ASTReader::FindExternalVisibleDeclsByName(clang::DeclContext const*, clang::DeclarationName, clang::DeclContext const*) (/lib64/libclang-cpp.so.22.1+0x312e2ae)
#10 0x00007f8560a567a9 clang::Sema::LookupName(clang::LookupResult&, clang::Scope*, bool, bool) (/lib64/libclang-cpp.so.22.1+0x14567a9)
#11 0x00007f8560a2d1e9 clang::Sema::ActOnCXXNestedNameSpecifier(clang::Scope*, clang::Sema::NestedNameSpecInfo&, bool, clang::CXXScopeSpec&, bool*, bool) (/lib64/libclang-cpp.so.22.1+0x142d1e9)
#12 0x00007f85609fab4d clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&, clang::OpaquePtr, bool, bool, bool*, bool, clang::IdentifierInfo const**, bool, bool, bool) (/lib64/libclang-cpp.so.22.1+0x13fab4d)
#13 0x00007f85609f3cf7 clang::Parser::TryAnnotateTypeOrScopeToken(clang::ImplicitTypenameContext) (/lib64/libclang-cpp.so.22.1+0x13f3cf7)
#14 0x00007f85609df645 clang::Parser::isDeclarationSpecifier(clang::ImplicitTypenameContext, bool) (/lib64/libclang-cpp.so.22.1+0x13df645)
#15 0x00007f85609def4b clang::Parser::TryParseDeclarator(bool, bool, bool, bool) (/lib64/libclang-cpp.so.22.1+0x13def4b)
#16 0x00007f85609e63c5 clang::Parser::AnnotateTemplateIdToken(clang::OpaquePtr, clang::TemplateNameKind, clang::CXXScopeSpec&, clang::SourceLocation, clang::UnqualifiedId&, bool, bool) (/lib64/libclang-cpp.so.22.1+0x13e63c5)
#17 0x00007f85609f6a25 clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&, clang::OpaquePtr, bool, bool, bool*, bool, clang::IdentifierInfo const**, bool, bool, bool) (/lib64/libclang-cpp.so.22.1+0x13f6a25)
#18 0x00007f8560980533 clang::Parser::ParseTypeName(clang::SourceRange*, clang::DeclaratorContext, clang::AccessSpecifier, clang::Decl**, clang::ParsedAttributes*) (/lib64/libclang-cpp.so.22.1+0x1380533)
#19 0x00007f8560efe23e clang::Parser::ParseUsingDeclaration(clang::DeclaratorContext, clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) (/lib64/libclang-cpp.so.22.1+0x18fe23e)
#20 0x00007f8560b1dcdd clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::ParsingDeclRAIIObject*) (/lib64/libclang-cpp.so.22.1+0x151dcdd)
#21 0x00007f8560b13954 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, clang::SourceLocation, clang::ParsedAttributes&, unsigned int, clang::Decl*) (/lib64/libclang-cpp.so.22.1+0x1513954)
#22 0x00007f8560b0958b clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext, clang::ParsedAttributes&) (/lib64/libclang-cpp.so.22.1+0x150958b)
#23 0x00007f8560997a17 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo&, clang::AccessSpecifier, clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*, clang::ImplicitTypenameContext) (/lib64/libclang-cpp.so.22.1+0x1397a17)
#24 0x00007f856096d585 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.22.1+0x136d585)
#25 0x00007f8561571b4b clang::Parser::ParseExportDeclaration() (/lib64/libclang-cpp.so.22.1+0x1f71b4b)
#26 0x00007f856096ec13 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.22.1+0x136ec13)
#27 0x00007f856096b380 clang::Parser::ParseInnerNamespace(llvm::SmallVector const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/lib64/libclang-cpp.so.22.1+0x136b380)
#28 0x00007f856096b9f5 clang::Parser::ParseInnerNamespace(llvm::SmallVector const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/lib64/libclang-cpp.so.22.1+0x136b9f5)
#29 0x00007f85609666ff clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (/lib64/libclang-cpp.so.22.1+0x13666ff)
#30 0x00007f85609708a2 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*) (/lib64/libclang-cpp.so.22.1+0x13708a2)
#31 0x00007f856096ceb2 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.22.1+0x136ceb2)
#32 0x00007f856096a69c clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.22.1+0x136a69c)
#33 0x00007f85612f9ccf clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.22.1+0x1cf9ccf)
#34 0x00007f85612f98da clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.22.1+0x1cf98da)
#35 0x00007f85612f955e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.22.1+0x1cf955e)
#36 0x000055aab00d618a cc1_main(llvm::ArrayRef, char const*, void*) (/usr/bin/clang+++0xf18a)
#37 0x000055aab00d5596 (/usr/bin/clang+++0xe596)
#38 0x000055aab00d545c (/usr/bin/clang+++0xe45c)
#39 0x00007f8562620c5d (/lib64/libclang-cpp.so.22.1+0x3020c5d)
#40 0x00007f855bfb7440 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref) (/lib64/libLLVM.so.22.1+0x55b7440)
#41 0x00007f856139b55f clang::driver::CC1Command::Execute(llvm::ArrayRef>, std::__cxx11::basic_string, std::allocator>*, bool*) const (/lib64/libclang-cpp.so.22.1+0x1d9b55f)
#42 0x00007f856126a00f clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/lib64/libclang-cpp.so.22.1+0x1c6a00f)
#43 0x00007f8561269e32 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl>&, bool) const (/lib64/libclang-cpp.so.22.1+0x1c69e32)
#44 0x00007f8561269a68 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl>&) (/lib64/libclang-cpp.so.22.1+0x1c69a68)
#45 0x000055aab00d7ee8 clang_main(int, char**, llvm::ToolContext const&) (/usr/bin/clang+++0x10ee8)
#46 0x000055aab00d7399 main (/usr/bin/clang+++0x10399)
#47 0x00007f8556408681 __libc_start_call_main (/lib64/libc.so.6+0x3681)
#48 0x00007f8556408798 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3798)
#49 0x000055aab00de4b5 _start (/usr/bin/clang+++0x174b5)
clang++: error: clang frontend command failed with exit code 132 (use -v to see invocation)
clang version 22.1.2 (Fedora 22.1.2-1.fc44)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang++.cfg
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/interface-5cee75.cppm
clang++: note: diagnostic msg: /tmp/interface-5cee75.sh
clang++: note: diagnostic msg:
********************
[684/1262] Building CXX object _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o
FAILED: [code=1] _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o _deps/ncrequest-build/CMakeFiles/ncrequest.dir/ncrequest.curl-init.pcm
/usr/lib64/ccache/clang++ -DASIO_HAS_THREADS -DASIO_NO_DEPRECATED -I/home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src -I/home/solomoncyj/Downloads/waywallen/build/_deps/rstd-src/src/core/include -I/home/solomoncyj/Downloads/waywallen/build/_deps/pegtl-src/include -isystem /home/solomoncyj/Downloads/waywallen/build/_deps/asio-src/asio/include -march=native -flto=thin -Os -DNDEBUG -std=c++23 -fPIC -Wall -Wextra -Wpedantic -Werror=mismatched-tags -DWITH_GZFILEOP -MD -MT _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o -MF _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o.d @_deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o.modmap -o _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o -c /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/client/curl/init.cppm
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /usr/bin/clang++ -DASIO_HAS_THREADS -DASIO_NO_DEPRECATED -I/home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src -I/home/solomoncyj/Downloads/waywallen/build/_deps/rstd-src/src/core/include -I/home/solomoncyj/Downloads/waywallen/build/_deps/pegtl-src/include -isystem /home/solomoncyj/Downloads/waywallen/build/_deps/asio-src/asio/include -march=native -flto=thin -Os -DNDEBUG -std=c++23 -fPIC -Wall -Wextra -Wpedantic -Werror=mismatched-tags -DWITH_GZFILEOP -MD -MT _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o -MF _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o.d @_deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o.modmap -o _deps/ncrequest-build/CMakeFiles/ncrequest.dir/src/client/curl/init.cppm.o -c /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/client/curl/init.cppm
1. /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/client/curl/init.cppm:7:62: current parser token '='
2. /home/solomoncyj/Downloads/waywallen/build/_deps/ncrequest-src/src/client/curl/init.cppm:5:1: parsing namespace 'ncrequest'
#0 0x00007fc77e43ce99 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM.so.22.1+0x563ce99)
#1 0x00007fc77e43cc29 llvm::sys::CleanupOnSignal(unsigned long) (/lib64/libLLVM.so.22.1+0x563cc29)
#2 0x00007fc77e3b74a5 (/lib64/libLLVM.so.22.1+0x55b74a5)
#3 0x00007fc77e3b76b6 (/lib64/libLLVM.so.22.1+0x55b76b6)
#4 0x00007fc77881f5b0 __restore_rt (/lib64/libc.so.6+0x1a5b0)
#5 0x00007fc7831a8c33 clang::Decl::castToDeclContext(clang::Decl const*) (/lib64/libclang-cpp.so.22.1+0x17a8c33)
#6 0x00007fc784b78bcb clang::ASTReader::loadDeclUpdateRecords(clang::ASTReader::PendingUpdateRecord&) (/lib64/libclang-cpp.so.22.1+0x3178bcb)
#7 0x00007fc784b331ed clang::ASTReader::finishPendingActions() (/lib64/libclang-cpp.so.22.1+0x31331ed)
#8 0x00007fc784b35def clang::ASTReader::FinishedDeserializing() (/lib64/libclang-cpp.so.22.1+0x3135def)
#9 0x00007fc784b2e2ae clang::ASTReader::FindExternalVisibleDeclsByName(clang::DeclContext const*, clang::DeclarationName, clang::DeclContext const*) (/lib64/libclang-cpp.so.22.1+0x312e2ae)
#10 0x00007fc782ebb456 clang::DeclContext::lookup(clang::DeclarationName) const (/lib64/libclang-cpp.so.22.1+0x14bb456)
#11 0x00007fc784b2c0e2 clang::ASTReader::CompleteRedeclChain(clang::Decl const*) (/lib64/libclang-cpp.so.22.1+0x312c0e2)
#12 0x00007fc783b34e75 clang::NamespaceDecl::getMostRecentDeclImpl() (/lib64/libclang-cpp.so.22.1+0x2134e75)
#13 0x00007fc782ebb344 clang::DeclContext::lookup(clang::DeclarationName) const (/lib64/libclang-cpp.so.22.1+0x14bb344)
#14 0x00007fc784b2c0e2 clang::ASTReader::CompleteRedeclChain(clang::Decl const*) (/lib64/libclang-cpp.so.22.1+0x312c0e2)
#15 0x00007fc783b34e75 clang::NamespaceDecl::getMostRecentDeclImpl() (/lib64/libclang-cpp.so.22.1+0x2134e75)
#16 0x00007fc782ebb344 clang::DeclContext::lookup(clang::DeclarationName) const (/lib64/libclang-cpp.so.22.1+0x14bb344)
#17 0x00007fc784b2c0e2 clang::ASTReader::CompleteRedeclChain(clang::Decl const*) (/lib64/libclang-cpp.so.22.1+0x312c0e2)
#18 0x00007fc782e8a866 clang::Sema::GetTypeForDeclarator(clang::Declarator&) (/lib64/libclang-cpp.so.22.1+0x148a866)
#19 0x00007fc782dcb600 clang::Sema::ActOnParamDeclarator(clang::Scope*, clang::Declarator&, clang::SourceLocation) (/lib64/libclang-cpp.so.22.1+0x13cb600)
#20 0x00007fc782da772e clang::Parser::ParseDirectDeclarator(clang::Declarator&) (/lib64/libclang-cpp.so.22.1+0x13a772e)
#21 0x00007fc782f336af (/lib64/libclang-cpp.so.22.1+0x15336af)
#22 0x00007fc782f3a5ef clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/lib64/libclang-cpp.so.22.1+0x153a5ef)
#23 0x00007fc782d6d623 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.22.1+0x136d623)
#24 0x00007fc783971b4b clang::Parser::ParseExportDeclaration() (/lib64/libclang-cpp.so.22.1+0x1f71b4b)
#25 0x00007fc782d6ec13 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.22.1+0x136ec13)
#26 0x00007fc782d6b380 clang::Parser::ParseInnerNamespace(llvm::SmallVector const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/lib64/libclang-cpp.so.22.1+0x136b380)
#27 0x00007fc782d666ff clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (/lib64/libclang-cpp.so.22.1+0x13666ff)
#28 0x00007fc782d708a2 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*) (/lib64/libclang-cpp.so.22.1+0x13708a2)
#29 0x00007fc782d6ceb2 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.22.1+0x136ceb2)
#30 0x00007fc782d6a69c clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.22.1+0x136a69c)
#31 0x00007fc7836f9ccf clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.22.1+0x1cf9ccf)
#32 0x00007fc7836f98da clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.22.1+0x1cf98da)
#33 0x00007fc7836f955e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.22.1+0x1cf955e)
#34 0x000055ae1fd0a18a cc1_main(llvm::ArrayRef, char const*, void*) (/usr/bin/clang+++0xf18a)
#35 0x000055ae1fd09596 (/usr/bin/clang+++0xe596)
#36 0x000055ae1fd0945c (/usr/bin/clang+++0xe45c)
#37 0x00007fc784a20c5d (/lib64/libclang-cpp.so.22.1+0x3020c5d)
#38 0x00007fc77e3b7440 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref) (/lib64/libLLVM.so.22.1+0x55b7440)
#39 0x00007fc78379b55f clang::driver::CC1Command::Execute(llvm::ArrayRef>, std::__cxx11::basic_string, std::allocator>*, bool*) const (/lib64/libclang-cpp.so.22.1+0x1d9b55f)
#40 0x00007fc78366a00f clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/lib64/libclang-cpp.so.22.1+0x1c6a00f)
#41 0x00007fc783669e32 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl>&, bool) const (/lib64/libclang-cpp.so.22.1+0x1c69e32)
#42 0x00007fc783669a68 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl>&) (/lib64/libclang-cpp.so.22.1+0x1c69a68)
#43 0x000055ae1fd0bee8 clang_main(int, char**, llvm::ToolContext const&) (/usr/bin/clang+++0x10ee8)
#44 0x000055ae1fd0b399 main (/usr/bin/clang+++0x10399)
#45 0x00007fc778808681 __libc_start_call_main (/lib64/libc.so.6+0x3681)
#46 0x00007fc778808798 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3798)
#47 0x000055ae1fd124b5 _start (/usr/bin/clang+++0x174b5)
clang++: error: clang frontend command failed with exit code 132 (use -v to see invocation)
clang version 22.1.2 (Fedora 22.1.2-1.fc44)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang++.cfg
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/init-0c89d1.cppm
clang++: note: diagnostic msg: /tmp/init-0c89d1.sh
clang++: note: diagnostic msg:
********************
[698/1262] Building CXX object _deps/qextra-build/CMakeFiles/qt.dir/src/qt.cppm.o
ninja: build stopped: subcommand failed.
```
Contributor guide
Research direction
Start with the attached preprocessed sources and run scripts, reproducing the clang++ 22.1.2 commands for src/client/curl/curl_error.cppm and src/event/interface.cppm. Read the stack dumps around ASTReader and the parser entry points; done means the supplied module compilations no longer crash and the failure is covered by applicable regression machinery.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100