[issue9558] build_ext fails on VS8.0

Hirokazu Yamamoto report at bugs.python.org
Wed Aug 11 07:13:59 CEST 2010


Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp> added the comment:

> Does test_build_ext pass?

Here are results. py26 is calling python_d.exe built with VS8.0.
I installed VS8.0 very recently, so I'm not familier with historical
reason. ;-)

# Translate error message into English...
# LINK : fatal error LNK1104: cannot open 'python26_d.lib'

//////////////////////////////////////////////////////
// Before applying patch

E:\python-dev\release26-maint>py26 -m distutils.tests.test_build_ext
test_build_ext (__main__.BuildExtTestCase) ... xxmodule.c
LINK : fatal error LNK1104: ファイル 'python26_d.lib' を開くことができません。
ERROR
test_build_ext_inplace (__main__.BuildExtTestCase) ... ok
test_build_ext_path_cross_platform (__main__.BuildExtTestCase) ... ok
test_build_ext_path_with_os_sep (__main__.BuildExtTestCase) ... ok
test_check_extensions_list (__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
   ライブラリ c:\docume~1\ocean\locals~1\temp\pythontest_mq7y1g\tempt\docume~1\o
cean\locals~1\temp\tmpt9b30o\foo_d.lib とオブジェクト c:\docume~1\ocean\locals~1
\temp\pythontest_mq7y1g\tempt\docume~1\ocean\locals~1\temp\tmpt9b30o\foo_d.exp
を作成中
foo.c
   ライブラリ c:\docume~1\ocean\locals~1\temp\pythontest_mq7y1g\tempt\docume~1\o
cean\locals~1\temp\tmpt9b30o\foo_d.lib とオブジェクト c:\docume~1\ocean\locals~1
\temp\pythontest_mq7y1g\tempt\docume~1\ocean\locals~1\temp\tmpt9b30o\foo_d.exp
を作成中
ok
test_get_source_files (__main__.BuildExtTestCase) ... ok
test_setuptools_compat (__main__.BuildExtTestCase) ... ok
test_solaris_enable_shared (__main__.BuildExtTestCase) ... ok

======================================================================
ERROR: test_build_ext (__main__.BuildExtTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "e:\python-dev\release26-maint\lib\distutils\tests\test_build_ext.py", li
ne 58, in test_build_ext
    cmd.run()
  File "e:\python-dev\release26-maint\lib\distutils\command\build_ext.py", line
340, in run
    self.build_extensions()
  File "e:\python-dev\release26-maint\lib\distutils\command\build_ext.py", line
449, in build_extensions
    self.build_extension(ext)
  File "e:\python-dev\release26-maint\lib\distutils\command\build_ext.py", line
531, in build_extension
    target_lang=language)
  File "e:\python-dev\release26-maint\lib\distutils\ccompiler.py", line 769, in
link_shared_object
    extra_preargs, extra_postargs, build_temp, target_lang)
  File "e:\python-dev\release26-maint\lib\distutils\msvc9compiler.py", line 647,
 in link
    raise LinkError(msg)
LinkError: command '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.exe"
' failed with exit status 1104

----------------------------------------------------------------------
Ran 12 tests in 31.005s

FAILED (errors=1)
Traceback (most recent call last):
  File "e:\python-dev\release26-maint\lib\runpy.py", line 122, in _run_module_as
_main
    "__main__", fname, loader, pkg_name)
  File "e:\python-dev\release26-maint\lib\runpy.py", line 34, in _run_code
    exec code in run_globals
  File "e:\python-dev\release26-maint\lib\distutils\tests\test_build_ext.py", li
ne 407, in <module>
    test_support.run_unittest(test_suite())
  File "e:\python-dev\release26-maint\lib\test\test_support.py", line 820, in ru
n_unittest
    _run_suite(suite)
  File "e:\python-dev\release26-maint\lib\test\test_support.py", line 803, in _r
un_suite
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "e:\python-dev\release26-maint\lib\distutils\tests\test_build_ext.py", li
ne 58, in test_build_ext
    cmd.run()
  File "e:\python-dev\release26-maint\lib\distutils\command\build_ext.py", line
340, in run
    self.build_extensions()
  File "e:\python-dev\release26-maint\lib\distutils\command\build_ext.py", line
449, in build_extensions
    self.build_extension(ext)
  File "e:\python-dev\release26-maint\lib\distutils\command\build_ext.py", line
531, in build_extension
    target_lang=language)
  File "e:\python-dev\release26-maint\lib\distutils\ccompiler.py", line 769, in
link_shared_object
    extra_preargs, extra_postargs, build_temp, target_lang)
  File "e:\python-dev\release26-maint\lib\distutils\msvc9compiler.py", line 647,
 in link
    raise LinkError(msg)
LinkError: command '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.exe"
' failed with exit status 1104

[34753 refs]

//////////////////////////////////////////////////////
// After applying patch

E:\python-dev\release26-maint>py26 -m distutils.tests.test_build_ext
test_build_ext (__main__.BuildExtTestCase) ... xxmodule.c
   ライブラリ c:\docume~1\ocean\locals~1\temp\pythontest_picqhq\Debug\docume~1\o
cean\locals~1\temp\pythontest_picqhq\xx_d.lib とオブジェクト c:\docume~1\ocean\l
ocals~1\temp\pythontest_picqhq\Debug\docume~1\ocean\locals~1\temp\pythontest_pic
qhq\xx_d.exp を作成中
ok
test_build_ext_inplace (__main__.BuildExtTestCase) ... ok
test_build_ext_path_cross_platform (__main__.BuildExtTestCase) ... ok
test_build_ext_path_with_os_sep (__main__.BuildExtTestCase) ... ok
test_check_extensions_list (__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
   ライブラリ c:\docume~1\ocean\locals~1\temp\pythontest_rm2eak\tempt\docume~1\o
cean\locals~1\temp\tmpg_ea28\foo_d.lib とオブジェクト c:\docume~1\ocean\locals~1
\temp\pythontest_rm2eak\tempt\docume~1\ocean\locals~1\temp\tmpg_ea28\foo_d.exp
を作成中
foo.c
   ライブラリ c:\docume~1\ocean\locals~1\temp\pythontest_rm2eak\tempt\docume~1\o
cean\locals~1\temp\tmpg_ea28\foo_d.lib とオブジェクト c:\docume~1\ocean\locals~1
\temp\pythontest_rm2eak\tempt\docume~1\ocean\locals~1\temp\tmpg_ea28\foo_d.exp
を作成中
ok
test_get_source_files (__main__.BuildExtTestCase) ... ok
test_setuptools_compat (__main__.BuildExtTestCase) ... ok
test_solaris_enable_shared (__main__.BuildExtTestCase) ... ok

----------------------------------------------------------------------
Ran 12 tests in 38.636s

OK
[34825 refs]

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9558>
_______________________________________


More information about the Python-bugs-list mailing list