This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_distutils failure on the ppc Debian buildbot
Type: behavior Stage:
Components: Distutils Versions: Python 3.1, Python 2.7
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: tarek Nosy List: doko, pitrou, tarek
Priority: normal Keywords:

Created on 2009-04-19 22:18 by pitrou, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg86183 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-04-19 22:18
The following test fails on the ppc Debian buildbot (trunk and py3k):

test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase) ...
gcc-4.3: x86_64: No such file or directory
cc1: error: unrecognized command line option "-arch"
ERROR

======================================================================
ERROR: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/distutils/tests/test_build_ext.py",
line 64, in test_build_ext
    cmd.run()
  File
"/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/distutils/command/build_ext.py",
line 353, in run
    self.build_extensions()
  File
"/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/distutils/command/build_ext.py",
line 480, in build_extensions
    self.build_extension(ext)
  File
"/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/distutils/command/build_ext.py",
line 550, in build_extension
    depends=ext.depends)
  File
"/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/distutils/ccompiler.py",
line 695, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File
"/home/pybot/buildarea/trunk.klose-debian-ppc/build/Lib/distutils/unixccompiler.py",
line 180, in _compile
    raise CompileError, msg
CompileError: command 'gcc' failed with exit status 1

Here are links to the log files:
http://www.python.org/dev/buildbot/trunk.stable/ppc%20Debian%20unstable%20trunk/builds/388/step-test/0
http://www.python.org/dev/buildbot/3.x.stable/ppc%20Debian%20unstable%203.x/builds/654/step-test/0
msg86184 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-04-19 22:21
Two strange things:
- "-arch" doesn't exist, it should be "-march="
- why is there a reference to x86_64 on a ppc buildbot?
msg86185 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-04-19 22:48
Ok, I assume "-arch x86_64" is a MacOS X-specific gcc flag.
The problem could be with distutils.tests.test_util:test_get_platform
which borks the environment variable CFLAGS by adding this flag.
msg86191 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-04-20 07:57
r71758 fixes it, but I'd like to run the buildbot on the debian ppc
slave before I update Misc/NEWS and merge in py3K.

I tried to force a build here, but it failed 

http://www.python.org/dev/buildbot/trunk.stable/ppc%20Debian%20unstable%20trunk

I'll ask Matthias about that.
msg86196 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-04-20 14:28
Fixed in r71758, all green under ppc. I am updating the News file now

thanks!
History
Date User Action Args
2022-04-11 14:56:48adminsetgithub: 50045
2009-04-20 14:28:53tareksetstatus: open -> closed

messages: + msg86196
2009-04-20 07:57:39tareksetmessages: + msg86191
2009-04-19 22:48:55pitrousetmessages: + msg86185
2009-04-19 22:21:57pitrousetnosy: + doko
messages: + msg86184
2009-04-19 22:18:42pitroucreate