-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
test_search_cpp error on AIX (with xlc) #55400
Comments
I have the following error in distutils on AIX. ====================================================================== Traceback (most recent call last):
File "/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/distutils/unixccompiler.py", line 166, in preprocess
self.spawn(pp_args)
File "/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/distutils/ccompiler.py", line 911, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/distutils/spawn.py", line 34, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/distutils/spawn.py", line 138, in _spawn_posix
% (cmd[0], exit_status))
distutils.errors.DistutilsExecError: command 'xlc' failed with exit status 40
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/distutils/tests/test_config_cmd.py", line 47, in test_search_cpp
match = cmd.search_cpp(pattern='xxx', body='// xxx')
File "/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/distutils/command/config.py", line 203, in search_cpp
src, out = self._preprocess(body, headers, include_dirs, lang)
File "/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/distutils/command/config.py", line 126, in _preprocess
self.compiler.preprocess(src, out, include_dirs=include_dirs)
File "/san_cis/home/cis/.buildbot/python-aix6/3.x.phenix.xlc/build/Lib/distutils/unixccompiler.py", line 168, in preprocess
raise CompileError(msg)
distutils.errors.CompileError: command 'xlc' failed with exit status 40 I haven't investigated yet. |
After three years can we close this test failure as "out of date"? |
I don't have any AIX environment to try to reproduce the issue, so feel free to close it. |
After even more years - I see the same test failing, just a bit different. And, others.... in short: ./python Lib/test/test_distutils.py FAILED (errors=7, skipped=31) I have managed to get this to: FAILED (errors=1, skipped=37) And this is still: ERROR: test_search_cpp (distutils.tests.test_config_cmd.ConfigTestCase) So, moving forward now. |
a) Is this normal? root@x065:[/data/prj/python/git/python3-3.7]./python -m unittest test.test_distutils ---------------------------------------------------------------------- OK In short - at the start I had: ./python Lib/test/test_distutils.py That is now down to: There were two issues for search_cpp: As is: the error was: ERROR: test_search_cpp (distutils.tests.test_config_cmd.ConfigTestCase) Traceback (most recent call last):
File "/data/prj/python/git/xlc-python3-3.7/Lib/distutils/unixccompiler.py", line 107, in preprocess
self.spawn(pp_args)
File "/data/prj/python/git/xlc-python3-3.7/Lib/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/data/prj/python/git/xlc-python3-3.7/Lib/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/data/prj/python/git/xlc-python3-3.7/Lib/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'xlc_r' failed with exit status 40
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/prj/python/git/xlc-python3-3.7/Lib/distutils/tests/test_config_cmd.py", line 49, in test_search_cpp
match = cmd.search_cpp(pattern='xxx', body='/* xxx */')
File "/data/prj/python/git/xlc-python3-3.7/Lib/distutils/command/config.py", line 201, in search_cpp
src, out = self._preprocess(body, headers, include_dirs, lang)
File "/data/prj/python/git/xlc-python3-3.7/Lib/distutils/command/config.py", line 124, in _preprocess
self.compiler.preprocess(src, out, include_dirs=include_dirs)
File "/data/prj/python/git/xlc-python3-3.7/Lib/distutils/unixccompiler.py", line 109, in preprocess
raise CompileError(msg)
distutils.errors.CompileError: command 'xlc_r' failed with exit status 40 and it is now: Traceback (most recent call last):
File "/data/prj/python/git/python3-3.7/Lib/distutils/tests/test_config_cmd.py", line 49, in test_search_cpp
match = cmd.search_cpp(pattern='xxx', body='/* xxx */')
File "/data/prj/python/git/python3-3.7/Lib/distutils/command/config.py", line 206, in search_cpp
file = open(out)
FileNotFoundError: [Errno 2] No such file or directory: '_configtest.i' The code I do not know how to fix is: File: Lib/distutils/command/config.py See https://github.com/aixtools/cpython/tree/bpo-11191 for my changes |
Just tested the patch presented. For Python3-3.6.4 the patch in PR-5206 works as is, however, for Python3-3.5.4 - the patch to Lib/test/support/init.py does not work. So, for Python3-3.5, Python3-3.6 and Python3-master - the test test_search_cpp is resolved. As that is the "literal" question here - I am removing the patch to Lib/test/support/init.py so that the same tests fail (for different reasons). I'll open a new issue for these tests - so that this PR can be applied to all current Python3 branches (and skip the test_search_cpp test when the compiler is not gcc on AIX). HTH! |
I hope this can be reviewed and eventually closed - not because it is X years old and unresolved - but because it is resolved for the latest branches! Thx |
@tarek - anything specific/extra you need? |
The current PR8709 resolves two issues, not one - so will create a new issue for the second element. Am also shorting the NEWS text, with the expanded explanation here as:
The additional find while researching this issue:
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: