bpo-40334: PEP 617: New PEG parser for CPython#19503
Conversation
- 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>
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot PPC64 Fedora 3.x has failed when building commit c5fc156. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/8/builds/792 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 409 tests OK. 10 slowest tests:
1 test failed: 13 tests skipped: 1 re-run test: Total duration: 22 min 59 sec Click to see traceback logsTraceback (most recent call last):
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/unixccompiler.py", line 117, in _compile
self.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 spawn
raise 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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_gather
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_recursive
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_ast
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_operator
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_action
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_recursive
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_lookahead
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_action
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_action
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_cut
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_recursion
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_lookahead
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_recursive
self.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 run
self.build_extensions()
File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 RHEL7 LTO 3.x has failed when building commit c5fc156. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/103/builds/676 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 408 tests OK. 10 slowest tests:
1 test failed: 14 tests skipped: 1 re-run test: Total duration: 6 min 1 sec Click to see traceback logsTraceback (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_recursive
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_recursive
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_action
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_gather
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_ast
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_recursion
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_recursive
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_action
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_cut
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_lookahead
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_lookahead
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 _compile
self.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 spawn
raise 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_operator
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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_action
self.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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise 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 run
self.build_extensions()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._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_serial
self.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 compile
self._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 _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
|
Sorry, something went wrong.
Let me see how many buildbot workers you can break with a single commit :-D |
Sorry, something went wrong.
Sorry, something went wrong.
|
(not to be a downer but) this is breaking pyflakes's testsuite pretty hard on the |
Sorry, something went wrong.
|
Thanks for the heads up! We'll look into this once alpha6 is out (expected Monday). |
Sorry, something went wrong.
|
It seems like this PR has introduced the syntax: 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 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. |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
Ok, thanks for clarifying. Will link to this comment in case people start complaining :). |
Sorry, something went wrong.
|
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 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 |
Sorry, something went wrong.
|
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? |
Sorry, something went wrong.
It does not change the documented behaviour of Python.
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). |
Sorry, something went wrong.
Wait, so using parentheses in with statements is bad style? Why was it even added if you think this?
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.
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.
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. |
Sorry, something went wrong.
|
Unfortunately, I am not interested in starting a discussion on this topic |
Sorry, something went wrong.
|
@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? |
Sorry, something went wrong.
|
A better place to have a discussion would be bpo. |
Sorry, something went wrong.
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. |
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.

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