Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsalpablogsal commented Apr 13, 2020

The SC has approved PEP 617 so we'd like to land before alpha 6 goes out. We need reviews NOW.

https://bugs.python.org/issue40334

pablogsaland others added 30 commits March 18, 2020 09:54
- The pegen parser generator and its tests are in Tools/peg_generator. This is mostly copied from the https://github.com/gvanrossum/pegen repo, with some adaptations. This is still targeting 3.8. - The new grammar (adapted to Python 3.9) is in Grammar/python.gram. - There's a new builtin module peg_parser, configured in Setup. - There's a new Make target regen-pegen which runs the parser generator with output directed to Modules/peg_parser/parse.c. There's some code duplication between Tools/peg_generator and Modules/peg_parser, due to the 3.8/3.9 split and some tweaks needed to link with the core. Eventually this probably should go away.
* Use trailer meta for a function that calls the start rule * Expose four C API functions that return either a mod_ty or a PyCodeObject * * Expose two Python-level functions that return an AST object * Extension module and C API does not get generated, but is hand-written * Rewrite of run_parser* functions Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* The caller is responsible for transforming the mod_ty a code or an AST object * The C API functions don't expect the filename and the arena (where possible) objects as an argument, but construct them themselves
* Rewrite exported function: * It now initializes the keywords field so that the keywords variable can be static * It also accepts an argument, in order to be able to run the parser with different start rules * Use the newly created function in fstring_compile_expr
…enerator itself (#23) * Remove C code from Tools/peg_generator/peg_parser and rely on Parser/pegen * Move all tests to Lib/test/test_peg_generator/* * Disable pegen tests on Github Actions
This is a straightforward port of we-like-parsers/pegen_experiments#236 . In addition, slightly touched up .gitignore, Makefile (black), mypy.ini.
* Remove start rule and add file, interactive, eval and fstring rules * Accept a mode parameter in C API functions
…active mode (#38) * Refactor raise_syntax_error to correctly handle interactive mode * Correctly handle Ctrl-D in interactive mode
Additionally, fix the script to calculate the nesting level using the generated extension.
* Fix audit tests * Try to fallback to get_error_line if we cannot get the error line using PyErr_ProgramTextObject * Add -E flag to run_tests.py only if PYTHONPARSER is not set Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
@pythonpython deleted a comment from bedevere-botApr 22, 2020
@pythonpython deleted a comment from bedevere-botApr 22, 2020
@pythonpython deleted a comment from bedevere-botApr 22, 2020
@pythonpython deleted a comment from bedevere-botApr 22, 2020
@pablogsal
Copy link
MemberAuthor

Fixing the buildbots here: #19666

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64 Fedora 3.x has failed when building commit c5fc156.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/8/builds/792) and take a look at the build logs.
  4. Check if the failure is related to this commit (c5fc156) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/8/builds/792

Failed tests:

  • test_peg_generator

Failed subtests:

  • test_gather_action_ast - test.test_peg_generator.test_c_parser.TestCParser
  • test_ternary_operator - test.test_peg_generator.test_c_parser.TestCParser
  • test_lookahead - test.test_peg_generator.test_c_parser.TestCParser
  • test_advanced_left_recursive - test.test_peg_generator.test_c_parser.TestCParser
  • test_gather - test.test_peg_generator.test_c_parser.TestCParser
  • test_error_in_rules - test.test_peg_generator.test_c_parser.TestCParser
  • test_nasty_mutually_left_recursive - test.test_peg_generator.test_c_parser.TestCParser
  • test_same_name_different_types - test.test_peg_generator.test_c_parser.TestCParser
  • test_syntax_error_for_string - test.test_peg_generator.test_c_parser.TestCParser
  • test_pass_stmt_action - test.test_peg_generator.test_c_parser.TestCParser
  • test_c_parser - test.test_peg_generator.test_c_parser.TestCParser
  • test_left_recursion - test.test_peg_generator.test_c_parser.TestCParser
  • test_negative_lookahead - test.test_peg_generator.test_c_parser.TestCParser
  • test_return_stmt_noexpr_action - test.test_peg_generator.test_c_parser.TestCParser
  • test_if_stmt_action - test.test_peg_generator.test_c_parser.TestCParser
  • test_cut - test.test_peg_generator.test_c_parser.TestCParser
  • test_mutually_left_recursive - test.test_peg_generator.test_c_parser.TestCParser
  • test_with_stmt_with_paren - test.test_peg_generator.test_c_parser.TestCParser

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

409 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 49 sec
  • test_tokenize: 2 min 42 sec
  • test_multiprocessing_spawn: 2 min 40 sec
  • test_unparse: 2 min 31 sec
  • test_capi: 2 min 14 sec
  • test_lib2to3: 1 min 42 sec
  • test_multiprocessing_forkserver: 1 min 32 sec
  • test_unicodedata: 1 min 24 sec
  • test_asyncio: 1 min 22 sec
  • test_multiprocessing_fork: 1 min 13 sec

1 test failed:
test_peg_generator

13 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
test_winreg test_winsound test_zipfile64

1 re-run test:
test_peg_generator

Total duration: 22 min 59 sec

Click to see traceback logs
Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 117, in _compileself.spawn(compiler_so + cc_args + [src, '-o', obj] + File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 910, in spawn spawn(cmd, dry_run=self.dry_run) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/spawn.py", line 81, in spawnraise DistutilsExecError( distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 81, in test_c_parser extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 138, in test_gatherself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 164, in test_mutually_left_recursiveself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 194, in test_gather_action_astself.verify_ast_generation(grammar, stmt, self.tmp_path) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 290, in test_ternary_operatorself.verify_ast_generation(grammar_source, stmt, self.tmp_path) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 299, in test_syntax_error_for_string extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 230, in test_if_stmt_actionself.verify_ast_generation(grammar, stmt, self.tmp_path) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 155, in test_advanced_left_recursiveself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 107, in test_lookaheadself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 186, in test_return_stmt_noexpr_actionself.verify_ast_generation(grammar, stmt, self.tmp_path) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 206, in test_pass_stmt_actionself.verify_ast_generation(grammar, stmt, self.tmp_path) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 330, in test_error_in_rules extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 129, in test_cutself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 147, in test_left_recursionself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 116, in test_negative_lookaheadself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 245, in test_same_name_different_types extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 270, in test_with_stmt_with_paren extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 174, in test_nasty_mutually_left_recursiveself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 RHEL7 LTO 3.x has failed when building commit c5fc156.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/103/builds/676) and take a look at the build logs.
  4. Check if the failure is related to this commit (c5fc156) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/103/builds/676

Failed tests:

  • test_peg_generator

Failed subtests:

  • test_gather_action_ast - test.test_peg_generator.test_c_parser.TestCParser
  • test_ternary_operator - test.test_peg_generator.test_c_parser.TestCParser
  • test_lookahead - test.test_peg_generator.test_c_parser.TestCParser
  • test_advanced_left_recursive - test.test_peg_generator.test_c_parser.TestCParser
  • test_gather - test.test_peg_generator.test_c_parser.TestCParser
  • test_error_in_rules - test.test_peg_generator.test_c_parser.TestCParser
  • test_nasty_mutually_left_recursive - test.test_peg_generator.test_c_parser.TestCParser
  • test_same_name_different_types - test.test_peg_generator.test_c_parser.TestCParser
  • test_syntax_error_for_string - test.test_peg_generator.test_c_parser.TestCParser
  • test_pass_stmt_action - test.test_peg_generator.test_c_parser.TestCParser
  • test_c_parser - test.test_peg_generator.test_c_parser.TestCParser
  • test_left_recursion - test.test_peg_generator.test_c_parser.TestCParser
  • test_negative_lookahead - test.test_peg_generator.test_c_parser.TestCParser
  • test_return_stmt_noexpr_action - test.test_peg_generator.test_c_parser.TestCParser
  • test_if_stmt_action - test.test_peg_generator.test_c_parser.TestCParser
  • test_cut - test.test_peg_generator.test_c_parser.TestCParser
  • test_mutually_left_recursive - test.test_peg_generator.test_c_parser.TestCParser
  • test_with_stmt_with_paren - test.test_peg_generator.test_c_parser.TestCParser

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

408 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 49 sec
  • test_multiprocessing_spawn: 2 min 37 sec
  • test_mailbox: 2 min 14 sec
  • test_tokenize: 1 min 50 sec
  • test_lib2to3: 1 min 33 sec
  • test_largefile: 1 min 31 sec
  • test_multiprocessing_forkserver: 1 min 28 sec
  • test_sqlite: 1 min 27 sec
  • test_unparse: 1 min 21 sec
  • test_asyncio: 1 min 20 sec

1 test failed:
test_peg_generator

14 tests skipped:
test_devpoll test_gdb test_ioctl test_kqueue test_msilib
test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly
test_winconsoleio test_winreg test_winsound test_zipfile64

1 re-run test:
test_peg_generator

Total duration: 6 min 1 sec

Click to see traceback logs
Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 174, in test_nasty_mutually_left_recursiveself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 155, in test_advanced_left_recursiveself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 245, in test_same_name_different_types extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 270, in test_with_stmt_with_paren extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 230, in test_if_stmt_actionself.verify_ast_generation(grammar, stmt, self.tmp_path) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 138, in test_gatherself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 299, in test_syntax_error_for_string extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 194, in test_gather_action_astself.verify_ast_generation(grammar, stmt, self.tmp_path) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 147, in test_left_recursionself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 164, in test_mutually_left_recursiveself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 330, in test_error_in_rules extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 206, in test_pass_stmt_actionself.verify_ast_generation(grammar, stmt, self.tmp_path) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 129, in test_cutself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 116, in test_negative_lookaheadself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 107, in test_lookaheadself.check_input_strings_for_grammar(grammar, self.tmp_path, valid_cases, invalid_cases) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 40, in check_input_strings_for_grammar extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 117, in _compileself.spawn(compiler_so + cc_args + [src, '-o', obj] + File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 910, in spawn spawn(cmd, dry_run=self.dry_run) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/spawn.py", line 81, in spawnraise DistutilsExecError( distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 290, in test_ternary_operatorself.verify_ast_generation(grammar_source, stmt, self.tmp_path) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 186, in test_return_stmt_noexpr_actionself.verify_ast_generation(grammar, stmt, self.tmp_path) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 53, in verify_ast_generation extension = generate_parser_c_extension(grammar, Path(tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1 Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 81, in test_c_parser extension = generate_parser_c_extension(grammar, Path(self.tmp_path)) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/testutil.py", line 95, in generate_parser_c_extension extension_path = compile_c_extension(str(source), build_dir=str(path /"build")) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Tools/peg_generator/pegen/build.py", line 73, in compile_c_extension cmd.run() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 340, in runself.build_extensions() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensionsself._build_extensions_serial() File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serialself.build_extension(ext) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 529, in build_extension objects =self.compiler.compile(sources, File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/ccompiler.py", line 574, in compileself._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/unixccompiler.py", line 120, in _compileraise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1

@vstinner
Copy link
Member

vstinner commented Apr 22, 2020

Ladies and gentlemen, the future is now! tada snake

Let me see how many buildbot workers you can break with a single commit :-D

@pablogsal
Copy link
MemberAuthor

pablogsal commented Apr 22, 2020

Let me see how many buildbot workers you can break with a single commit :-D

05onfire1_xp-articleLarge-v2

@asottile
Copy link
Contributor

(not to be a downer but) this is breaking pyflakes's testsuite pretty hard on the SyntaxError tests -- many of which appear to have columns which are out of bounds: PyCQA/pyflakes#532

@gvanrossum
Copy link
Member

Thanks for the heads up! We'll look into this once alpha6 is out (expected Monday).

@lysnikolaoulysnikolaou deleted the pegen branch May 11, 2020 23:52
@lysnikolaoulysnikolaou restored the pegen branch May 25, 2020 21:16
@davidhalter
Copy link

It seems like this PR has introduced the syntax:

 with (open('a') as f1, open('b') as f2): ... 

Since PEP 617 clearly states that "no new Python Grammar addition will be added that requires the PEG parser", I wonder whether this change was intentional? If it is I guess we would have to modify PEP 617.

IMO I would strongly prefer having a grace period for third party parsers (like parso), so they can catch up. Since this change is very minor it might not look like "new grammar", but it clearly is, since an LL parser cannot parse this.

To be honest I'm just a big afraid of people complaining that parso doesn't support the latest Python syntax.

PS: I'm also interested in other potential changes to the grammar, since I have never seen this communicated anywhere.

@gvanrossum
Copy link
Member

It's an easter egg. In 3.9 people are not supposed to write this and you can point out that it's undocumented. In 3.10 we will come clean.

@davidhalter
Copy link

Ok, thanks for clarifying. Will link to this comment in case people start complaining :).

@asmeurer
Copy link

asmeurer commented Aug 7, 2020

If this is actually unsupported, it should be documented as unsupported. @davidhalter brings up a good point about other Python parsers. As nice as this new syntax is, it would probably be better if it were held until 3.10. It's also very odd that setting PYTHONOLDPARSER=1 disables this syntax. The documentation for it doesn't really specify, but it seems implied that in 3.9 -X oldparser or PYTHONOLDPARSER=1 shouldn't change the behavior of Python. PEP 617 says "no new Python Grammar addition will be added that requires the PEG parser" is in, in bold no less.

I don't really see how this can be be an "easter egg". People are going to write this, because it's a natural thing to write (and it's good that it will indeed be supported by the new PEG parser). Then they will run into problems with tools that use other parsing libraries like parso, or if anyone sets PYTHONOLDPARSER=1.

@gvanrossum
Copy link
Member

I offered to take it out but @ambv wanted it.

But if tools reject it, that's no different than tools rejecting other things that happen to work but are bad style, right?

@pablogsal
Copy link
MemberAuthor

pablogsal commented Aug 7, 2020

The documentation for it doesn't really specify, but it seems implied that in 3.9 -X oldparser or PYTHONOLDPARSER=1 shouldn't change the behavior of Python.

It does not change the documented behaviour of Python.

I don't really see how this can be be an "easter egg". People are going to write this, because it's a natural thing to write (and it's good that it will indeed be supported by the new PEG parser). Then they will run into problems with tools that use other parsing libraries like parso, or if anyone sets PYTHONOLDPARSER=1.

I do not agree with your view: the feature is not documented and therefore should not be relied upon (but there is no need to remove the easter egg because of that). Is sort of the same as when we made ordered dictionaries: it was considered an implementation detail and users should not rely on it (until we made it official). But without entering into a discussion about this, there is the much more important fact that we are going to release the first release candidate on Monday and removing this will be too risky for the stability of the release. The release manager is aware of this and it was ok with us maintaining it (#19704).

@asmeurer
Copy link

But if tools reject it, that's no different than tools rejecting other things that happen to work but are bad style, right?

Wait, so using parentheses in with statements is bad style? Why was it even added if you think this?

I do not agree with your view: the feature is not documented and therefore should not be relied upon (but there is no need to remove the easter egg because of that)

Something not being documented is not the same as being an easter egg. Easter eggs are supposed to be fun features that may or may not be documented, and don't actually affect real world usage of Python. import this is an example of an Easter egg. Parentheses in with statements is something that people will use, because it's a natural way to write things (most people are surprised when it doesn't work). Very few people realize that it doesn't actually work pre-3.9 or why.

Is sort of the same as when we made ordered dictionaries: it was considered an implementation detail and users should not rely on it (until we made it official).

I recall the dictionary thing being well documented and highly discussed. It feels like you are trying to slip this in without anyone noticing. I can't really understand the motivation for that. But it should be quite clear that once this syntax works, people will use it.

But without entering into a discussion about this, there is the much more important fact that we are going to release the first release candidate on Monday and removing this will be too risky for the stability of the release. The release manager is aware of this and it was ok with us maintaining it (#19704).

If it affects compatibility in a negative way, it should be removed. If you can't make changes to a release before the release date, why not just do the final release now?

If this isn't going to be removed, it should at least be documented and mentioned in the what's new section, and the incorrect bolded statement in the PEP should be updated. Not actually doing what it says it it does and calling it an "easter egg" is a lame cop out and rather insulting to people who actually try to maintain libraries that match the semantics of the Python parser.

@pablogsal
Copy link
MemberAuthor

Unfortunately, I am not interested in starting a discussion on this topic

@asmeurer
Copy link

@pablogsal if you don't want to participate in the discussion that is fine. No one asked you to. I hope you aren't suggesting that there shouldn't be a discussion at all. I don't think that's something that you have or should have the right to do. Who makes final decisions about new syntax features in Python? The steering council, or someone else?

@gvanrossum
Copy link
Member

A better place to have a discussion would be bpo.

@pablogsal
Copy link
MemberAuthor

@pablogsal if you don't want to participate in the discussion that is fine. No one asked you to. I hope you aren't suggesting that there shouldn't be a discussion at all. I don't think that's something that you have or should have the right to do.

I will clarify my words: I am just indicating that I am not interested in starting a discussion on this, but of course, you are free to do whatever you think necessary.

@asmeurer
Copy link

@gvanrossum that's fair. Discussions like this shouldn't happen on closed PRs. I opened https://bugs.python.org/issue41506. I don't know how to use the nozy feature on bpo so anyone please nozy yourself if you are interested.

@asmeurer
Copy link

asmeurer commented Aug 8, 2020

Also I should note I didn't want to summarize other people's opinions so please restate them on the bpo if you want it to be heard.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

@pablogsal@vstinner@gvanrossum@lysnikolaou@bedevere-bot@asottile@davidhalter@asmeurer@tirkarthi@the-knights-who-say-ni