Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs #20878

Merged
merged 18 commits into from
Jun 17, 2020

Conversation

methane
Copy link
Member

@methane methane commented Jun 15, 2020

@methane
Copy link
Member Author

methane commented Jun 15, 2020

Warnings in _testcapimodule.c can be supressed if #9004 is merged.

@methane
Copy link
Member Author

methane commented Jun 15, 2020

@ambv I want to merge this pull request and #9004 into 3.9 branch. What do you think?

Copy link
Contributor

@aeros aeros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regardless of whether the removal occurs in 3.11 or needs to be delayed for any reason, I think un-commenting the compiler warnings for 3.9 can only help users.

However, from looking at the blame and locating the commit that added the comments, it's not completely clear to me as to why it was done: 3c8724f. It looks like support for the macro Py_DEPRECATED() was added to MSVC, and while working on that, these were added as comments. It appears that some of the other ones were added by @vstinner.

What is the purpose of adding them as comments in the first place? Is this just done to avoid scope creep in the other PRs, while still marking it as "to do" for later? Or is there some convention with regards to adding it as a comment before an actual warning?

Either way though, +1 for un-commenting the existing Py_DEPRECATED() macros for the unicode APIs that are being removed. Without the warnings in 3.9, I think a 3.11 removal would be too soon.

@methane
Copy link
Member Author

methane commented Jun 15, 2020

Another way to suppress warning is adding private function without warning, like _PyUnicode_AsUnicode. Public deprecated functions can be a wrapper of them.

Modules/_testcapimodule.c Outdated Show resolved Hide resolved
Include/cpython/unicodeobject.h Outdated Show resolved Hide resolved
Include/cpython/unicodeobject.h Outdated Show resolved Hide resolved
Include/cpython/unicodeobject.h Show resolved Hide resolved
Include/cpython/unicodeobject.h Outdated Show resolved Hide resolved
Modules/_testcapimodule.c Show resolved Hide resolved
@ambv
Copy link
Contributor

ambv commented Jun 16, 2020

I'm fine with having this in 3.9

@vstinner
Copy link
Member

About the "_impl" suffix discussion: I wrote PR #20931 to remove it from _PyObject_GC_TRACK() :-)

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the multiple updates, the PR now looks much better! I prefer the new code of static inline macros ;-)

It's easier to read, variables have a well defined scope, and the return type is now clearly void ;-) Once I tried to convert all unicodeobject.h macros into static inline functions, but it's giant work and it's tricky to not introduce new compiler warnings :-(

I just added a minor suggestion about _PyObject_CAST().

((PyASCIIObject*)op)->length :
((PyCompactUnicodeObject*)op)->wstr_length;
}
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might use _PyObject_CAST() macro:

Suggested change
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length(_PyObject_CAST(op))

@methane methane changed the title bpo-36346: Uncomment Py_DEPRECATED for deprecated unicode APIs bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs Jun 17, 2020
@methane
Copy link
Member Author

methane commented Jun 17, 2020

Thank you for your review!

@methane methane merged commit 2c4928d into python:master Jun 17, 2020
@methane methane deleted the pep393-deprecation branch June 17, 2020 11:09
@miss-islington
Copy link
Contributor

Thanks @methane for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 17, 2020
Co-authored-by: Kyle Stanley <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit 2c4928d)

Co-authored-by: Inada Naoki <[email protected]>
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Jun 17, 2020
@bedevere-bot
Copy link

GH-20932 is a backport of this pull request to the 3.9 branch.

@bedevere-bot
Copy link

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

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

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/1247) and take a look at the build logs.
  4. Check if the failure is related to this commit (2c4928d) 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/1247

Failed tests:

  • test_distutils

Failed subtests:

  • test_build_ext - distutils.tests.test_build_ext.BuildExtTestCase
  • test_build_ext - distutils.tests.test_build_ext.ParallelBuildExtTestCase
  • test_record_extensions - distutils.tests.test_install.InstallTestCase

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

== Tests result: FAILURE then FAILURE ==

410 tests OK.

10 slowest tests:

  • test_concurrent_futures: 3 min 4 sec
  • test_unparse: 2 min 49 sec
  • test_tokenize: 2 min 45 sec
  • test_capi: 2 min 22 sec
  • test_peg_generator: 2 min 3 sec
  • test_multiprocessing_spawn: 1 min 50 sec
  • test_lib2to3: 1 min 44 sec
  • test_asyncio: 1 min 31 sec
  • test_unicodedata: 1 min 23 sec
  • test_multiprocessing_forkserver: 1 min 17 sec

1 test failed:
test_distutils

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_distutils

Total duration: 23 min 43 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/tests/test_install.py", line 220, in test_record_extensions
    cmd.run()
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.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/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    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 447, in build_extensions
    self._build_extensions_parallel()
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/distutils/command/build_ext.py", line 469, in _build_extensions_parallel
    fut.result()
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  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/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/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    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

@bedevere-bot
Copy link

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

Hi! The buildbot AMD64 Debian root 3.x has failed when building commit 2c4928d.

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/225/builds/1262) and take a look at the build logs.
  4. Check if the failure is related to this commit (2c4928d) 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/225/builds/1262

Failed tests:

  • test_distutils

Failed subtests:

  • test_build_ext - distutils.tests.test_build_ext.BuildExtTestCase
  • test_build_ext - distutils.tests.test_build_ext.ParallelBuildExtTestCase
  • test_record_extensions - distutils.tests.test_install.InstallTestCase

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

== Tests result: FAILURE then FAILURE ==

403 tests OK.

10 slowest tests:

  • test_concurrent_futures: 4 min 15 sec
  • test_unparse: 2 min 43 sec
  • test_tokenize: 2 min 29 sec
  • test_multiprocessing_spawn: 2 min 26 sec
  • test_peg_generator: 2 min 24 sec
  • test_asyncio: 2 min 4 sec
  • test_capi: 1 min 49 sec
  • test_multiprocessing_forkserver: 1 min 39 sec
  • test_unicodedata: 1 min 9 sec
  • test_multiprocessing_fork: 1 min 8 sec

1 test failed:
test_distutils

20 tests skipped:
test_devpoll test_gdb test_idle test_ioctl test_kqueue test_msilib
test_ossaudiodev test_smtpnet test_ssl test_startfile test_tcl
test_tix test_tk test_ttk_guionly test_ttk_textonly test_turtle
test_winconsoleio test_winreg test_winsound test_zipfile64

1 re-run test:
test_distutils

Total duration: 24 min 50 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/unixccompiler.py", line 117, in _compile
    self.spawn(compiler_so + cc_args + [src, '-o', obj] +
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/ccompiler.py", line 910, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/root/buildarea/3.x.angelico-debian-amd64/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 "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/tests/test_install.py", line 220, in test_record_extensions
    cmd.run()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension
    objects = self.compiler.compile(sources,
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/root/buildarea/3.x.angelico-debian-amd64/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 "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension
    objects = self.compiler.compile(sources,
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/root/buildarea/3.x.angelico-debian-amd64/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 "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 447, in build_extensions
    self._build_extensions_parallel()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 469, in _build_extensions_parallel
    fut.result()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/command/build_ext.py", line 529, in build_extension
    objects = self.compiler.compile(sources,
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1

@bedevere-bot
Copy link

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

Hi! The buildbot PPC64LE RHEL7 3.x has failed when building commit 2c4928d.

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/347/builds/796) and take a look at the build logs.
  4. Check if the failure is related to this commit (2c4928d) 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/347/builds/796

Failed tests:

  • test_distutils

Failed subtests:

  • test_build_ext - distutils.tests.test_build_ext.BuildExtTestCase
  • test_build_ext - distutils.tests.test_build_ext.ParallelBuildExtTestCase
  • test_record_extensions - distutils.tests.test_install.InstallTestCase

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

== Tests result: FAILURE then FAILURE ==

410 tests OK.

10 slowest tests:

  • test_concurrent_futures: 3 min 23 sec
  • test_unparse: 3 min 7 sec
  • test_peg_generator: 2 min 45 sec
  • test_tokenize: 2 min 37 sec
  • test_multiprocessing_spawn: 1 min 58 sec
  • test_lib2to3: 1 min 46 sec
  • test_unicodedata: 1 min 36 sec
  • test_capi: 1 min 29 sec
  • test_asyncio: 1 min 26 sec
  • test_multiprocessing_forkserver: 1 min 25 sec

1 test failed:
test_distutils

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_distutils

Total duration: 5 min 38 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/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-ppc64le/build/Lib/distutils/ccompiler.py", line 910, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/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-ppc64le/build/Lib/distutils/tests/test_install.py", line 220, in test_record_extensions
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/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-ppc64le/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-ppc64le/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-ppc64le/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-ppc64le/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/command/build_ext.py", line 447, in build_extensions
    self._build_extensions_parallel()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/command/build_ext.py", line 469, in _build_extensions_parallel
    fut.result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/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-ppc64le/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-ppc64le/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-ppc64le/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/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-ppc64le/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-ppc64le/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-ppc64le/build/Lib/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1

@vstinner
Copy link
Member

The change broke multiple buildbots on master, so I rejected the 3.9 backport PR.

@bedevere-bot
Copy link

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

Hi! The buildbot AMD64 RHEL7 3.x has failed when building commit 2c4928d.

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/4/builds/1098) and take a look at the build logs.
  4. Check if the failure is related to this commit (2c4928d) 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/4/builds/1098

Failed tests:

  • test_distutils

Failed subtests:

  • test_build_ext - distutils.tests.test_build_ext.BuildExtTestCase
  • test_build_ext - distutils.tests.test_build_ext.ParallelBuildExtTestCase
  • test_record_extensions - distutils.tests.test_install.InstallTestCase

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

== Tests result: FAILURE then FAILURE ==

409 tests OK.

10 slowest tests:

  • test_concurrent_futures: 3 min 19 sec
  • test_unparse: 2 min 3 sec
  • test_tokenize: 1 min 50 sec
  • test_peg_generator: 1 min 48 sec
  • test_multiprocessing_spawn: 1 min 42 sec
  • test_asyncio: 1 min 34 sec
  • test_capi: 1 min 32 sec
  • test_shelve: 1 min 29 sec
  • test_lib2to3: 1 min 23 sec
  • test_multiprocessing_forkserver: 1 min 19 sec

1 test failed:
test_distutils

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_distutils

Total duration: 5 min 15 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/command/build_ext.py", line 447, in build_extensions
    self._build_extensions_parallel()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/command/build_ext.py", line 469, in _build_extensions_parallel
    fut.result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/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/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/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/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/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/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/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/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/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/build/Lib/distutils/tests/test_install.py", line 220, in test_record_extensions
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/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/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/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/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/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/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/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/build/Lib/distutils/spawn.py", line 81, in spawn
    raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1

@bedevere-bot
Copy link

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

Hi! The buildbot PPC64LE RHEL7 LTO + PGO 3.x has failed when building commit 2c4928d.

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/344/builds/797) and take a look at the build logs.
  4. Check if the failure is related to this commit (2c4928d) 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/344/builds/797

Failed tests:

  • test_distutils

Failed subtests:

  • test_build_ext - distutils.tests.test_build_ext.BuildExtTestCase
  • test_build_ext - distutils.tests.test_build_ext.ParallelBuildExtTestCase
  • test_record_extensions - distutils.tests.test_install.InstallTestCase

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

== Tests result: FAILURE then FAILURE ==

409 tests OK.

10 slowest tests:

  • test_peg_generator: 6 min 34 sec
  • test_concurrent_futures: 3 min 50 sec
  • test_tokenize: 3 min 33 sec
  • test_multiprocessing_spawn: 2 min 53 sec
  • test_lib2to3: 2 min 48 sec
  • test_unparse: 2 min 47 sec
  • test_multiprocessing_forkserver: 2 min
  • test_pickle: 1 min 46 sec
  • test_asyncio: 1 min 43 sec
  • test_unicodedata: 1 min 14 sec

1 test failed:
test_distutils

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_distutils

Total duration: 7 min 35 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/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-ppc64le.lto-pgo/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-ppc64le.lto-pgo/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-ppc64le.lto-pgo/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-ppc64le.lto-pgo/build/Lib/distutils/tests/test_install.py", line 220, in test_record_extensions
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/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-ppc64le.lto-pgo/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-ppc64le.lto-pgo/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-ppc64le.lto-pgo/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-ppc64le.lto-pgo/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/command/build_ext.py", line 447, in build_extensions
    self._build_extensions_parallel()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/command/build_ext.py", line 469, in _build_extensions_parallel
    fut.result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/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-ppc64le.lto-pgo/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-ppc64le.lto-pgo/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-ppc64le.lto-pgo/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-ppc64le.lto-pgo/build/Lib/distutils/ccompiler.py", line 910, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto-pgo/build/Lib/distutils/spawn.py", line 81, in spawn
    raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1

@bedevere-bot
Copy link

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

Hi! The buildbot aarch64 RHEL7 3.x has failed when building commit 2c4928d.

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/568/builds/724) and take a look at the build logs.
  4. Check if the failure is related to this commit (2c4928d) 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/568/builds/724

Failed tests:

  • test_distutils

Failed subtests:

  • test_build_ext - distutils.tests.test_build_ext.BuildExtTestCase
  • test_build_ext - distutils.tests.test_build_ext.ParallelBuildExtTestCase
  • test_record_extensions - distutils.tests.test_install.InstallTestCase

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

== Tests result: FAILURE then FAILURE ==

409 tests OK.

10 slowest tests:

  • test_unparse: 4 min 17 sec
  • test_concurrent_futures: 4 min 10 sec
  • test_tokenize: 3 min 30 sec
  • test_peg_generator: 3 min 18 sec
  • test_capi: 3 min 10 sec
  • test_asyncio: 2 min 43 sec
  • test_multiprocessing_spawn: 2 min 36 sec
  • test_lib2to3: 2 min 35 sec
  • test_unicodedata: 1 min 39 sec
  • test_multiprocessing_forkserver: 1 min 36 sec

1 test failed:
test_distutils

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_distutils

Total duration: 7 min 57 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/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-aarch64/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-aarch64/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-aarch64/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-aarch64/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/command/build_ext.py", line 447, in build_extensions
    self._build_extensions_parallel()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/command/build_ext.py", line 469, in _build_extensions_parallel
    fut.result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/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-aarch64/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-aarch64/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-aarch64/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-aarch64/build/Lib/distutils/ccompiler.py", line 910, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/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-aarch64/build/Lib/distutils/tests/test_install.py", line 220, in test_record_extensions
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/build/Lib/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-aarch64/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-aarch64/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-aarch64/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-aarch64/build/Lib/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1

@bedevere-bot
Copy link

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

Hi! The buildbot PPC64LE RHEL7 LTO 3.x has failed when building commit 2c4928d.

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/373/builds/800) and take a look at the build logs.
  4. Check if the failure is related to this commit (2c4928d) 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/373/builds/800

Failed tests:

  • test_distutils

Failed subtests:

  • test_build_ext - distutils.tests.test_build_ext.BuildExtTestCase
  • test_build_ext - distutils.tests.test_build_ext.ParallelBuildExtTestCase
  • test_record_extensions - distutils.tests.test_install.InstallTestCase

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

== Tests result: FAILURE then FAILURE ==

410 tests OK.

10 slowest tests:

  • test_peg_generator: 4 min 23 sec
  • test_concurrent_futures: 3 min 44 sec
  • test_tokenize: 3 min 38 sec
  • test_unparse: 2 min 55 sec
  • test_multiprocessing_spawn: 2 min 21 sec
  • test_lib2to3: 2 min 6 sec
  • test_multiprocessing_forkserver: 1 min 35 sec
  • test_asyncio: 1 min 30 sec
  • test_multiprocessing_fork: 1 min 26 sec
  • test_pickle: 1 min 17 sec

1 test failed:
test_distutils

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_distutils

Total duration: 8 min 2 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.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-ppc64le.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-ppc64le.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-ppc64le.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-ppc64le.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-ppc64le.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-ppc64le.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-ppc64le.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-ppc64le.lto/build/Lib/distutils/tests/test_install.py", line 220, in test_record_extensions
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.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-ppc64le.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-ppc64le.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-ppc64le.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-ppc64le.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-ppc64le.lto/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/command/build_ext.py", line 447, in build_extensions
    self._build_extensions_parallel()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/distutils/command/build_ext.py", line 469, in _build_extensions_parallel
    fut.result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.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-ppc64le.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-ppc64le.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

@bedevere-bot
Copy link

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

Hi! The buildbot AMD64 RHEL7 LTO + PGO 3.x has failed when building commit 2c4928d.

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/196/builds/1037) and take a look at the build logs.
  4. Check if the failure is related to this commit (2c4928d) 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/196/builds/1037

Failed tests:

  • test_distutils

Failed subtests:

  • test_build_ext - distutils.tests.test_build_ext.BuildExtTestCase
  • test_build_ext - distutils.tests.test_build_ext.ParallelBuildExtTestCase
  • test_record_extensions - distutils.tests.test_install.InstallTestCase

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

== Tests result: FAILURE then FAILURE ==

409 tests OK.

10 slowest tests:

  • test_peg_generator: 3 min 55 sec
  • test_concurrent_futures: 2 min 53 sec
  • test_tokenize: 1 min 48 sec
  • test_multiprocessing_spawn: 1 min 45 sec
  • test_unparse: 1 min 34 sec
  • test_asyncio: 1 min 23 sec
  • test_lib2to3: 1 min 19 sec
  • test_multiprocessing_forkserver: 1 min 14 sec
  • test_mailbox: 1 min 14 sec
  • test_multiprocessing_fork: 59.1 sec

1 test failed:
test_distutils

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_distutils

Total duration: 6 min 9 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/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-pgo/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-pgo/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-pgo/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/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-pgo/build/Lib/distutils/command/build_ext.py", line 447, in build_extensions
    self._build_extensions_parallel()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/distutils/command/build_ext.py", line 469, in _build_extensions_parallel
    fut.result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/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-pgo/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-pgo/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-pgo/build/Lib/distutils/tests/test_install.py", line 220, in test_record_extensions
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/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-pgo/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-pgo/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-pgo/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-pgo/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-pgo/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-pgo/build/Lib/distutils/tests/test_build_ext.py", line 76, in test_build_ext
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto-pgo/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-pgo/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-pgo/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-pgo/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-pgo/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-pgo/build/Lib/distutils/unixccompiler.py", line 120, in _compile
    raise 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 2c4928d.

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/1044) and take a look at the build logs.
  4. Check if the failure is related to this commit (2c4928d) 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/1044

Failed tests:

  • test_distutils

Failed subtests:

  • test_build_ext - distutils.tests.test_build_ext.BuildExtTestCase
  • test_build_ext - distutils.tests.test_build_ext.ParallelBuildExtTestCase
  • test_record_extensions - distutils.tests.test_install.InstallTestCase

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

== Tests result: FAILURE then FAILURE ==

409 tests OK.

10 slowest tests:

  • test_peg_generator: 3 min 10 sec
  • test_concurrent_futures: 3 min 9 sec
  • test_multiprocessing_spawn: 1 min 48 sec
  • test_mailbox: 1 min 45 sec
  • test_unparse: 1 min 39 sec
  • test_tokenize: 1 min 38 sec
  • test_asyncio: 1 min 27 sec
  • test_lib2to3: 1 min 24 sec
  • test_multiprocessing_forkserver: 1 min 15 sec
  • test_io: 1 min 7 sec

1 test failed:
test_distutils

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_distutils

Total duration: 5 min 52 sec

Click to see traceback logs
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/distutils/tests/test_install.py", line 220, in test_record_extensions
    cmd.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/dist.py", line 985, in run_command
    cmd_obj.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/tests/test_build_ext.py", line 76, in test_build_ext
    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/tests/test_build_ext.py", line 76, in test_build_ext
    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 447, in build_extensions
    self._build_extensions_parallel()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/distutils/command/build_ext.py", line 469, in _build_extensions_parallel
    fut.result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64.lto/build/Lib/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  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

methane added a commit to methane/cpython that referenced this pull request Jun 17, 2020
Co-authored-by: Kyle Stanley <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit 2c4928d)
methane added a commit that referenced this pull request Jun 18, 2020
Co-authored-by: Kyle Stanley <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit 2c4928d)
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants