On Thu, Jun 4, 2009 at 2:14 PM, David Martin <[email protected]> wrote:
>
> I've attached a patch for my addition of the "--mingw" option to
> runtests.py.
Looks good.
> There was a small issue regarding trailing backslashes in the
> INCLUDE_DIRS list, and aside from that, I couldn't get the mingw compiler to
> work correctly unless I emptied the INCLUDE_DIRS list (I run from a VS
> command prompt for our build system, so it will always have VS directories
> in my "include" env variable). It definitely shouldn't assign an empty list
> for INCLUDE_DIRS if --mingw is given, but it is the only way I could get it
> to work quickly. =)
>
I understand...
> If you know what needs to be done to fix those errors I can definitely help
> out. I've also attached the log containing the small amount of tests that
> are failing for me when using the MinGW compiler, which I believe are the
> same tests that are failing for you.
>
I'm tempted to either remove that getenv INCLUDE, or change the name.
That getenv was needed long ago for running numpy-specific tests, It
seems we could get rid of that hackery.
What other people on cython-dev think?
> -David
>
> --- runtests.py 2009-05-20 10:37:46.000000000 -0500
> +++ runtests222.py 2009-06-04 11:48:07.000000000 -0500
> @@ -3,6 +3,7 @@
> import os, sys, re, shutil, unittest, doctest
>
> WITH_CYTHON = True
> +MINGW = False
>
> from distutils.dist import Distribution
> from distutils.core import Extension
> @@ -32,7 +33,9 @@
> # (2,4) : lambda x: x in ['run.set']
> }
>
> -INCLUDE_DIRS = [ d for d in os.getenv('INCLUDE', '').split(os.pathsep) if d
> ]
> +# Remove any trailing backslashes in the include paths because they cause
> +# gcc to incorrectly handle spaces in the paths that follow.
> +INCLUDE_DIRS = [ d.rstrip('\\') for d in os.getenv('INCLUDE',
> '').split(os.pathsep) if d ]
> CFLAGS = os.getenv('CFLAGS', '').split()
>
> class build_ext(_build_ext):
> @@ -277,6 +280,8 @@
> os.chdir(workdir)
> try:
> build_extension = build_ext(distutils_distro)
> + if MINGW:
> + build_extension.compiler = 'mingw32'
> build_extension.include_dirs = INCLUDE_DIRS[:]
> if incdir:
> build_extension.include_dirs.append(incdir)
> @@ -505,7 +510,11 @@
> help="do not run the file based tests")
> parser.add_option("--no-pyregr", dest="pyregr",
> action="store_false", default=True,
> - help="do not run the regression tests of CPython in
> tests/pyregr/")
> + help="do not run the regression tests of CPython in
> tests/pyregr/")
> + if sys.platform.startswith('win'):
> + parser.add_option("--mingw", dest="mingw",
> + action="store_true", default=False,
> + help="compile C/C++ code using the MinGW
> compilers")
> parser.add_option("--cython-only", dest="cython_only",
> action="store_true", default=False,
> help="only compile pyx to c, do not run C compiler or
> run the tests")
> @@ -547,6 +556,11 @@
> import coverage
> coverage.erase()
> coverage.start()
> +
> + if sys.platform.startswith('win'):
> + MINGW = options.mingw
> + if MINGW:
> + INCLUDE_DIRS = []
>
> WITH_CYTHON = options.with_cython
>
>
> Running tests against Cython 0.11.2
> Python 2.5.4 (r254:67916, Mar 25 2009, 13:58:21) [MSC v.1310 32 bit (Intel)]
>
> belchenko1.cpp: In function `void initbelchenko1()':
> belchenko1.cpp:430: warning: statement has no effect
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\callingconvention.o:callingconvention.c:(.text+0
> x22c): undefined reference to `p1'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\callingconvention.o:callingconvention.c:(.text+0
> x230): undefined reference to `f1'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\callingconvention.o:callingconvention.c:(.text+0
> x236): undefined reference to `p2'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\callingconvention.o:callingconvention.c:(.text+0
> x23a): undefined reference to `f2'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\callingconvention.o:callingconvention.c:(.text+0
> x240): undefined reference to `p3'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\callingconvention.o:callingconvention.c:(.text+0
> x244): undefined reference to `...@0'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\callingconvention.o:callingconvention.c:(.text+0
> x24a): undefined reference to `p4'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\callingconvention.o:callingconvention.c:(.text+0
> x24e): undefined reference to `...@f4@0'
> collect2: ld returned 1 exit status
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\callingconvention.o:callingconvention.cpp:(.te
> xt+0x22c): undefined reference to `p1'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\callingconvention.o:callingconvention.cpp:(.te
> xt+0x230): undefined reference to `f1'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\callingconvention.o:callingconvention.cpp:(.te
> xt+0x236): undefined reference to `p2'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\callingconvention.o:callingconvention.cpp:(.te
> xt+0x23a): undefined reference to `f2'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\callingconvention.o:callingconvention.cpp:(.te
> xt+0x240): undefined reference to `p3'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\callingconvention.o:callingconvention.cpp:(.te
> xt+0x244): undefined reference to `...@0'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\callingconvention.o:callingconvention.cpp:(.te
> xt+0x24a): undefined reference to `p4'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\callingconvention.o:callingconvention.cpp:(.te
> xt+0x24e): undefined reference to `...@f4@0'
> collect2: ld returned 1 exit status
> cnamespec.c: In function `c_spam':
> cnamespec.c:343: warning: '__pyx_v_p' might be used uninitialized in this
> function
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\cnamespec.o:cnamespec.c:(.text+0xf):
> undefined r
> eference to `c_a'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\cnamespec.o:cnamespec.c:(.text+0x20):
> undefined
> reference to `c_b'
> collect2: ld returned 1 exit status
> cnamespec.cpp: In function `double c_spam(int, float)':
> cnamespec.cpp:343: warning: '__pyx_v_p' might be used uninitialized in this
> function
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\cnamespec.o:cnamespec.cpp:(.text+0xf):
> undefin
> ed reference to `c_a'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\cnamespec.o:cnamespec.cpp:(.text+0x20):
> undefi
> ned reference to `c_b'
> collect2: ld returned 1 exit status
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\coercearraytoptr.o:coercearraytoptr.c:(.text+0xd
> ): undefined reference to `spam'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\coercearraytoptr.o:coercearraytoptr.c:(.text+0x1
> 8): undefined reference to `spam'
> collect2: ld returned 1 exit status
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\coercearraytoptr.o:coercearraytoptr.cpp:(.text
> +0xd): undefined reference to `spam'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\coercearraytoptr.o:coercearraytoptr.cpp:(.text
> +0x18): undefined reference to `spam'
> collect2: ld returned 1 exit status
> complexbasetype.cpp: In function `void initcomplexbasetype()':
> complexbasetype.cpp:433: warning: statement has no effect
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\cpp_exceptions_t265.o:cpp_exceptions_T265.cpp:
> (.text+0x1e6): undefined reference to `generic_error()'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\cpp_exceptions_t265.o:cpp_exceptions_T265.cpp:
> (.text+0x25a): undefined reference to `specified_error()'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\cpp_exceptions_t265.o:cpp_exceptions_T265.cpp:
> (.text+0x2e0): undefined reference to `dynamic_error()'
> collect2: ld returned 1 exit status
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\declarations.o:declarations.c:(.text+0x5):
> undef
> ined reference to `ifnp'
> collect2: ld returned 1 exit status
> declarations.cpp: In function `void initdeclarations()':
> declarations.cpp:472: warning: statement has no effect
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\declarations.o:declarations.cpp:(.text+0x5):
> u
> ndefined reference to `ifnp'
> collect2: ld returned 1 exit status
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\excvalcheck.o:excvalcheck.c:(.text+0x7):
> undefin
> ed reference to `spam'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\excvalcheck.o:excvalcheck.c:(.text+0x33):
> undefi
> ned reference to `grail'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\excvalcheck.o:excvalcheck.c:(.text+0x64):
> undefi
> ned reference to `tomato'
> collect2: ld returned 1 exit status
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\excvalcheck.o:excvalcheck.cpp:(.text+0x7):
> und
> efined reference to `spam'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\excvalcheck.o:excvalcheck.cpp:(.text+0x33):
> un
> defined reference to `grail'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\excvalcheck.o:excvalcheck.cpp:(.text+0x64):
> un
> defined reference to `tomato'
> collect2: ld returned 1 exit status
> extern.cpp: In function `void initextern()':
> extern.cpp:440: warning: statement has no effect
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\nogil.o:nogil.c:(.text+0x19):
> undefined referenc
> e to `g2'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\nogil.o:nogil.c:(.text+0x21):
> undefined referenc
> e to `g2'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\nogil.o:nogil.c:(.text+0x26):
> undefined referenc
> e to `e1'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\c\nogil.o:nogil.c:(.text+0x2b):
> undefined referenc
> e to `e2'
> collect2: ld returned 1 exit status
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\nogil.o:nogil.cpp:(.text+0x1a):
> undefined refe
> rence to `g2'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\nogil.o:nogil.cpp:(.text+0x22):
> undefined refe
> rence to `g2'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\nogil.o:nogil.cpp:(.text+0x27):
> undefined refe
> rence to `e1()'
> E:\py\build\trunk\recipes\Cython-0.11.2\tests\BUILD\compile\cpp\nogil.o:nogil.cpp:(.text+0x2c):
> undefined refe
> rence to `e2()'
> collect2: ld returned 1 exit status
>
> ======================================================================
> ERROR: compiling (c) callingconvention
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'gcc' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (cpp) callingconvention
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'g++' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (c) cnamespec
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'gcc' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (cpp) cnamespec
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'g++' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (c) coercearraytoptr
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'gcc' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (cpp) coercearraytoptr
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'g++' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (cpp) cpp_exceptions_T265
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'g++' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (c) declarations
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'gcc' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (cpp) declarations
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'g++' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (c) excvalcheck
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'gcc' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (cpp) excvalcheck
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'g++' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (c) nogil
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'gcc' failed with exit status 1
>
> ======================================================================
> ERROR: compiling (cpp) nogil
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "runtests.py", line 226, in runTest
> self.runCompileTest()
> File "runtests.py", line 230, in runCompileTest
> self.directory, self.expect_errors, self.annotate)
> File "runtests.py", line 336, in compile
> self.run_distutils(module, workdir, incdir)
> File "runtests.py", line 304, in run_distutils
> build_extension.run()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 290, in run
> self.build_extensions()
> File "E:\py\build\lib\distutils\command\build_ext.py", line 416, in
> build_extensions
> self.build_extension(ext)
> File "runtests.py", line 48, in build_extension
> _build_ext.build_extension(self, ext)
> File "E:\py\build\lib\distutils\command\build_ext.py", line 513, in
> build_extension
> target_lang=language)
> File "E:\py\build\lib\distutils\ccompiler.py", line 845, in
> link_shared_object
> extra_preargs, extra_postargs, build_temp, target_lang)
> File "E:\py\build\lib\distutils\cygwinccompiler.py", line 246, in link
> target_lang)
> File "E:\py\build\lib\distutils\unixccompiler.py", line 254, in link
> raise LinkError, msg
> LinkError: command 'g++' failed with exit status 1
>
> ----------------------------------------------------------------------
> Ran 1477 tests in 1347.264s
>
> FAILED (errors=13)
>
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev