Issue 54729
Summary report a bug
Labels
Assignees
Reporter coderguang
    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:
0.      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 
1.      ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:485:2: current parser token ';'
2.      ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:36:1: parsing namespace 'boost'
3.      ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:37:1: parsing namespace 'boost::asio'
4.      ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:188:1: parsing namespace 'boost::asio::execution'
5.      ./../../../lib/include/boost_1_78_0/boost/asio/execution/blocking.hpp:189:1: parsing namespace 'boost::asio::execution::detail'
6.      ./../../../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_14SourceLocationERNS0_25ParsedAttributesWithRangeEPS2_+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_17DeclaratorContextERNS_14SourceLocationES2_+0x764)[0x1d21834]
/usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser16ParseDeclarationENS_17DeclaratorContextERNS_14SourceLocationERNS0_25ParsedAttributesWithRangeEPS2_+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_17DeclaratorContextERNS_14SourceLocationES2_+0x764)[0x1d21834]
/usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser16ParseDeclarationENS_17DeclaratorContextERNS_14SourceLocationERNS0_25ParsedAttributesWithRangeEPS2_+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_17DeclaratorContextERNS_14SourceLocationES2_+0x764)[0x1d21834]
/usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser16ParseDeclarationENS_17DeclaratorContextERNS_14SourceLocationERNS0_25ParsedAttributesWithRangeEPS2_+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_17DeclaratorContextERNS_14SourceLocationES2_+0x764)[0x1d21834]
/usr/local/lib/python3.8/site-packages/castxml/data/bin/castxml(_ZN5clang6Parser16ParseDeclarationENS_17DeclaratorContextERNS_14SourceLocationERNS0_25ParsedAttributesWithRangeEPS2_+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 <module>
    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
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to