[issue6459] Lib/distutils\tests\test_build_ext.py fails on VC6
Hirokazu Yamamoto
report at bugs.python.org
Sat Jul 11 03:20:10 CEST 2009
New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:
I got distutils error on Lib/distutils\tests\test_build_ext.py. I hope
attached file will fix this issue. (This should complete r64127)
E:\python-dev\py3k>py3k Lib\distutils\tests\test_build_ext.py
test_build_ext (__main__.BuildExtTestCase) ... xxmodule.c
Library c:\docume~1\whiter~1\locals~1\temp\tmpbj3fb0\Debug\docume~1
\whiter~1\l
ocals~1\temp\tmpbj3fb0\xx_d.lib とオブジェクト c:\docume~1\whiter~1\locals~1
\temp\tm
pbj3fb0\Debug\docume~1\whiter~1\locals~1\temp\tmpbj3fb0\xx_d.exp is now
being created
ok
test_check_extensions_list (__main__.BuildExtTestCase) ... ok
test_compiler_deprecation_warning (__main__.BuildExtTestCase) ... ok
test_compiler_option (__main__.BuildExtTestCase) ... ok
test_ext_fullpath (__main__.BuildExtTestCase) ... ok
test_finalize_options (__main__.BuildExtTestCase) ... ok
test_get_outputs (__main__.BuildExtTestCase) ... foo.c
LINK : error LNK2001: External symbol "PyInit_foo" is not resolved
c:\docume~1\whiter~1\locals~1\temp\tmp1bfgxq\tempt\docume~1\whiter~1
\locals~1\te
mp\tmpnttk0b\foo_d.lib : fatal error LNK1120: External symbol 1 is not
resolved
LINK : fatal error LNK1141: Got trouble in building export file
ERROR
test_get_source_files (__main__.BuildExtTestCase) ... ok
test_optional_extension (__main__.BuildExtTestCase) ... ok
test_solaris_enable_shared (__main__.BuildExtTestCase) ... ok
test_user_site (__main__.BuildExtTestCase) ... ok
======================================================================
ERROR: test_get_outputs (__main__.BuildExtTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "e:\python-dev\py3k\lib\distutils\msvccompiler.py", line 524, in
link
self.spawn([self.linker] + ld_args)
File "e:\python-dev\py3k\lib\distutils\ccompiler.py", line 981, in
spawn
spawn(cmd, dry_run=self.dry_run)
File "e:\python-dev\py3k\lib\distutils\spawn.py", line 36, in spawn
_spawn_nt(cmd, search_path, dry_run=dry_run)
File "e:\python-dev\py3k\lib\distutils\spawn.py", line 77, in
_spawn_nt
"command '%s' failed with exit status %d" % (cmd[0], rc))
distutils.errors.DistutilsExecError: command '"C:\Program
Files\Microsoft Visual
Studio\VC98\BIN\link.exe"' failed with exit status 1141
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Lib\distutils\tests\test_build_ext.py", line 323, in
test_get_outputs
cmd.run()
File "e:\python-dev\py3k\lib\distutils\command\build_ext.py", line
394, in run
self.build_extensions()
File "e:\python-dev\py3k\lib\distutils\command\build_ext.py", line
503, in bui
ld_extensions
self.build_extension(ext)
File "e:\python-dev\py3k\lib\distutils\command\build_ext.py", line
590, in bui
ld_extension
target_lang=language)
File "e:\python-dev\py3k\lib\distutils\ccompiler.py", line 791, in
link_shared
_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "e:\python-dev\py3k\lib\distutils\msvccompiler.py", line 526, in
link
raise LinkError(msg)
distutils.errors.LinkError: command '"C:\Program Files\Microsoft Visual
Studio\V
C98\BIN\link.exe"' failed with exit status 1141
----------------------------------------------------------------------
Ran 11 tests in 1826.566s
FAILED (errors=1)
Traceback (most recent call last):
File "Lib\distutils\tests\test_build_ext.py", line 432, in <module>
----------
assignee: tarek
components: Distutils, Windows
files: fix_distutils_test.patch
keywords: patch
messages: 90400
nosy: ocean-city, tarek
severity: normal
status: open
title: Lib/distutils\tests\test_build_ext.py fails on VC6
versions: Python 3.2
Added file: http://bugs.python.org/file14483/fix_distutils_test.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6459>
_______________________________________
More information about the Python-bugs-list
mailing list