llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.8k stars 11.45k forks source link

report a bug #54729

Open coderguang opened 2 years ago

coderguang commented 2 years ago

when I'm use gcc 11.2.0 to build a boost 1.78.0 project ,I get below errors.

######################## PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump:

  1. Program arguments: /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml -std=c++2a -fPIC -g -ftemplate-backtrace-limit=64 -I. -I./../Src -I./../Src/ -I./../../../lib/include/boost_1_78_0 -I./../../../lib/include/python3.8 -I/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0 -I/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/x86_64-pc-linux-gnu -I/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/backward -I/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include -I/usr/local/include -I/usr/local/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include-fixed -I/usr/include -c -x c++ --castxml-cc-gnu ( g++ -std=c++2a -fPIC -g -ftemplate-backtrace-limit=64 -std=c++2a ) --castxml-gccxml -DNDEBUG -DBOOST_BIND_GLOBAL_PLACEHOLDERS -D_GLIBCXX_USE_CHAR8_T -o /tmp/tmp3yebl13c.xml /tmp/tmp9k7dy0di.h
  2. ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:485:2: current parser token ';'
  3. ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:36:1: parsing namespace 'boost'
  4. ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:37:1: parsing namespace 'boost::asio'
  5. ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:188:1: parsing namespace 'boost::asio::execution'
  6. ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:189:1: parsing namespace 'boost::asio::execution::detail'
  7. ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:209:1: parsing struct/union/class body 'boost::asio::execution::detail::blocking_t' /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1a)[0xa2248a] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN4llvm3sys17RunSignalHandlersEv+0x3a)[0xa206fa] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml[0xa20823] /lib64/libpthread.so.0(+0xf630)[0x7ff12335e630] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser27ParseLexedMethodDeclarationERNS0_27LateParsedMethodDeclarationE+0x4aa)[0x1cf79ea] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser28ParseLexedMethodDeclarationsERNS0_12ParsingClassE+0x65)[0x1cf0485] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser27ParseCXXMemberSpecificationENS_14SourceLocationES1_RNS0_25ParsedAttributesWithRangeEjPNS_4DeclE+0x61e)[0x1d2798e] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser19ParseClassSpecifierENS_3tok9TokenKindENS_14SourceLocationERNS_8DeclSpecERKNS0_18ParsedTemplateInfoENS_15AccessSpecifierEbNS0_15DeclSpecContextERNS0_25ParsedAttributesWithRangeE+0x1898)[0x1d298e8] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser26ParseDeclarationSpecifiersERNS_8DeclSpecERKNS0_18ParsedTemplateInfoENS_15AccessSpecifierENS0_15DeclSpecContextEPNS0_18LateParsedAttrListE+0x1a31)[0x1d0a521] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser35ParseSingleDeclarationAfterTemplateENS_17DeclaratorContextERKNS0_18ParsedTemplateInfoERNS_21ParsingDeclRAIIObjectERNS_14SourceLocationERNS_16ParsedAttributesENS_15AccessSpecifierE+0x39e)[0x1d95b6e] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser40ParseTemplateDeclarationOrSpecializationENS_17DeclaratorContextERNS_14SourceLocationERNS_16ParsedAttributesENS_15AccessSpecifierE+0x426)[0x1d9b0c6] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser36ParseDeclarationStartingWithTemplateENS_17DeclaratorContextERNS_14SourceLocationERNS_16ParsedAttributesENS_15AccessSpecifierE+0x6f)[0x1d9b30f] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser16ParseDeclarationENS_17DeclaratorContextERNS_14SourceLocationERNS025ParsedAttributesWithRangeEPS2+0x257)[0x1d10bf7] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser24ParseExternalDeclarationERNS0_25ParsedAttributesWithRangeEPNS_15ParsingDeclSpecE+0x160)[0x1ceed20] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser19ParseInnerNamespaceERKN4llvm11SmallVectorINS0_18InnerNamespaceInfoELj4EEEjRNS_14SourceLocationERNS_16ParsedAttributesERNS_24BalancedDelimiterTrackerE+0x153)[0x1d20fd3] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser14ParseNamespaceENS_17DeclaratorContextERNS14SourceLocationES2+0x764)[0x1d21834] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser16ParseDeclarationENS_17DeclaratorContextERNS_14SourceLocationERNS025ParsedAttributesWithRangeEPS2+0x280)[0x1d10c20] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser24ParseExternalDeclarationERNS0_25ParsedAttributesWithRangeEPNS_15ParsingDeclSpecE+0x160)[0x1ceed20] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser19ParseInnerNamespaceERKN4llvm11SmallVectorINS0_18InnerNamespaceInfoELj4EEEjRNS_14SourceLocationERNS_16ParsedAttributesERNS_24BalancedDelimiterTrackerE+0x153)[0x1d20fd3] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser14ParseNamespaceENS_17DeclaratorContextERNS14SourceLocationES2+0x764)[0x1d21834] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser16ParseDeclarationENS_17DeclaratorContextERNS_14SourceLocationERNS025ParsedAttributesWithRangeEPS2+0x280)[0x1d10c20] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser24ParseExternalDeclarationERNS0_25ParsedAttributesWithRangeEPNS_15ParsingDeclSpecE+0x160)[0x1ceed20] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser19ParseInnerNamespaceERKN4llvm11SmallVectorINS0_18InnerNamespaceInfoELj4EEEjRNS_14SourceLocationERNS_16ParsedAttributesERNS_24BalancedDelimiterTrackerE+0x153)[0x1d20fd3] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser14ParseNamespaceENS_17DeclaratorContextERNS14SourceLocationES2+0x764)[0x1d21834] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser16ParseDeclarationENS_17DeclaratorContextERNS_14SourceLocationERNS025ParsedAttributesWithRangeEPS2+0x280)[0x1d10c20] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser24ParseExternalDeclarationERNS0_25ParsedAttributesWithRangeEPNS_15ParsingDeclSpecE+0x160)[0x1ceed20] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser19ParseInnerNamespaceERKN4llvm11SmallVectorINS0_18InnerNamespaceInfoELj4EEEjRNS_14SourceLocationERNS_16ParsedAttributesERNS_24BalancedDelimiterTrackerE+0x153)[0x1d20fd3] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser14ParseNamespaceENS_17DeclaratorContextERNS14SourceLocationES2+0x764)[0x1d21834] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser16ParseDeclarationENS_17DeclaratorContextERNS_14SourceLocationERNS025ParsedAttributesWithRangeEPS2+0x280)[0x1d10c20] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser24ParseExternalDeclarationERNS0_25ParsedAttributesWithRangeEPNS_15ParsingDeclSpecE+0x160)[0x1ceed20] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser17ParseTopLevelDeclERNS_9OpaquePtrINS_12DeclGroupRefEEEb+0x110)[0x1cef6d0] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang8ParseASTERNS_4SemaEbb+0x205)[0x1ce3cb5] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang14FrontendAction7ExecuteEv+0x109)[0x19f6d69] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x1d8)[0x19b8018] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_Z8runClangPKPKcS2_RK7Options+0x233a)[0x9b0b1a] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(main+0xa15)[0x8f11a5] /lib64/libc.so.6(libc_start_main+0xf5)[0x7ff122a8b555] /usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml[0x9a07e5] Traceback (most recent call last): File "do.py", line 389, in StartGenFile(arg_dict, genFileList, target_path) File "do.py", line 27, in wrapper ret = func(*args, **kw) File "do.py", line 220, in StartGenFile builder = module_builder.module_builder_t( File "/usr/local/lib/python3.8/site-packages/pyplusplus/module_builder/boost_python_builder.py", line 107, in init self.global_ns = self.parse_declarations( files File "/usr/local/lib/python3.8/site-packages/pyplusplus/module_builder/boost_python_builder.py", line 154, in parse_declarations decls = reader.read_files( files, compilation_mode ) File "/usr/local/lib/python3.8/site-packages/pygccxml/parser/project_reader.py", line 255, in read_files return self.parse_all_at_once(files) File "/usr/local/lib/python3.8/site-packages/pygccxml/parser/project_reader.py", line 356, in __parse_all_at_once return self.read_string(''.join(header_content)) File "/usr/local/lib/python3.8/site-packages/pygccxml/parser/project_reader.py", line 369, in read_string decls = reader.read_string(content) File "/usr/local/lib/python3.8/site-packages/pygccxml/parser/source_reader.py", line 377, in read_string decls = self.read_file(header_file) File "/usr/local/lib/python3.8/site-packages/pygccxml/parser/source_reader.py", line 303, in read_file return self.read_cpp_source_file(source_file) File "/usr/local/lib/python3.8/site-packages/pygccxml/parser/source_reader.py", line 322, in read_cpp_source_file xml_file = self.create_xml_file(ffname) File "/usr/local/lib/python3.8/site-packages/pygccxml/parser/source_reader.py", line 268, in create_xml_file raise RuntimeError( RuntimeError: Error occurred while running CASTXML: status:245
llvmbot commented 2 years ago

@llvm/issue-subscribers-clang-frontend