Title: test_distutils failure on the ppc Debian buildbot
Type: behavior Stage:
Components: Distutils Versions: Python 3.1, Python 2.7
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 2009-04-20 14:28 by tarek. 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: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase)
Traceback (most recent call last):
line 64, in test_build_ext
line 353, in run
line 480, in build_extensions
line 550, in build_extension
line 695, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
line 180, in _compile
    raise CompileError, msg
CompileError: command 'gcc' failed with exit status 1

Here are links to the log files:
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

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

Date User Action Args
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