Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue6459] Lib/distutils\tests\test_build_ext.py fails on VC6

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 10, 2009, 6:20 PM

Post #1 of 4 (106 views)
Permalink
[issue6459] Lib/distutils\tests\test_build_ext.py fails on VC6

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>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 11, 2009, 2:59 AM

Post #2 of 4 (97 views)
Permalink
[issue6459] Lib/distutils\tests\test_build_ext.py fails on VC6 [In reply to]

Amaury Forgeot d'Arc <amauryfa[at]gmail.com> added the comment:

Confirmed with vs2008. I wonder why the buildbots don't fail.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6459>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 11, 2009, 3:31 AM

Post #3 of 4 (96 views)
Permalink
[issue6459] Lib/distutils\tests\test_build_ext.py fails on VC6 [In reply to]

Tarek Ziadé <ziade.tarek[at]gmail.com> added the comment:

Thanks for the patch, I'll integrate asap.

Notice that I run the tests under windows but without a full range of VC
versions, so I count a lot on the buildbots to show me these kind of
failures.

----------
priority: -> normal
resolution: -> accepted

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6459>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 11, 2009, 3:47 AM

Post #4 of 4 (96 views)
Permalink
[issue6459] Lib/distutils\tests\test_build_ext.py fails on VC6 [In reply to]

Tarek Ziadé <ziade.tarek[at]gmail.com> added the comment:

Mmm, also notice that the current build_ext trunk uses "init"
in the code, which means that the "PyInit" prefix was added on
py3k but not backported in the trunk.

So i'll fix that too

----------

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue6459>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.