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

Mailing List Archive: Python: Bugs

[issue15315] Can't build Python extension with mingw32 on Windows

 

 

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


report at bugs

Jul 9, 2012, 9:52 PM

Post #1 of 8 (228 views)
Permalink
[issue15315] Can't build Python extension with mingw32 on Windows

New submission from Craig McQueen <python [at] craig>:

I'm trying this with my 'cobs' Python package:

c:\Python33\python.exe setup.py build --compiler=mingw32 bdist_msi

With Python 3.3 beta, it fails with an exception:

ValueError: Unknown MS Compiler version 1600

It works with Python 3.2.

----------
components: Extension Modules
messages: 165159
nosy: cmcqueen1975
priority: normal
severity: normal
status: open
title: Can't build Python extension with mingw32 on Windows
versions: Python 3.3

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15315>
_______________________________________
_______________________________________________
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 9, 2012, 10:07 PM

Post #2 of 8 (233 views)
Permalink
[issue15315] Can't build Python extension with mingw32 on Windows [In reply to]

Roundup Robot <devnull [at] psf> added the comment:

New changeset eee92b9ac4ad by Martin v. Löwis in branch 'default':
Issue #15315: Support VS 2010 in distutils cygwincompiler.
http://hg.python.org/cpython/rev/eee92b9ac4ad

----------
nosy: +python-dev

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15315>
_______________________________________
_______________________________________________
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 9, 2012, 10:08 PM

Post #3 of 8 (228 views)
Permalink
[issue15315] Can't build Python extension with mingw32 on Windows [In reply to]

Martin v. Löwis <martin [at] v> added the comment:

This should now be fixed in the repository. It would be good if you could manually apply the change to your installation, and report whether it works.

----------
nosy: +loewis

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15315>
_______________________________________
_______________________________________________
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 10, 2012, 12:54 AM

Post #4 of 8 (225 views)
Permalink
[issue15315] Can't build Python extension with mingw32 on Windows [In reply to]

Craig McQueen <python [at] craig> added the comment:

That's definitely an improvement. It gets further, but on my PC, the compile fails:

...
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot find -lmsvcr100
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

I'll have to see if I can get the required library I guess.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15315>
_______________________________________
_______________________________________________
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 10, 2012, 1:13 AM

Post #5 of 8 (224 views)
Permalink
[issue15315] Can't build Python extension with mingw32 on Windows [In reply to]

Craig McQueen <python [at] craig> added the comment:

I downloaded the latest MinGW, and now it tells me:

...
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python33\include -IC:\Python33\PC -c python3/src/_cobs_ext.c -o bui
ld\temp.win32-3.3\Release\python3\src\_cobs_ext.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15315>
_______________________________________
_______________________________________________
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 10, 2012, 1:17 AM

Post #6 of 8 (230 views)
Permalink
[issue15315] Can't build Python extension with mingw32 on Windows [In reply to]

Craig McQueen <python [at] craig> added the comment:

It sounds as though the option '-mno-cygwin' is related to issue #12641.

Does that mean I need to find a version of MinGW that is old enough to support the option '-mno-cygwin', but new enough to include a library for msvcr100?

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15315>
_______________________________________
_______________________________________________
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 10, 2012, 2:09 AM

Post #7 of 8 (231 views)
Permalink
[issue15315] Can't build Python extension with mingw32 on Windows [In reply to]

Martin v. Löwis <martin [at] v> added the comment:

I'm not a Cygwin user myself, so it would be good if you could figure this out somehow. Feel free to ask on Cygwin lists how this is supposed to work. Our requirement is that the resulting pyd needs to link with msvcr100.dll. It may well be that *no* version of Cygwin ever supported this, in which case we should drop Cygwin support from Python 3.3.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15315>
_______________________________________
_______________________________________________
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 10, 2012, 4:48 PM

Post #8 of 8 (222 views)
Permalink
[issue15315] Can't build Python extension with mingw32 on Windows [In reply to]

Craig McQueen <python [at] craig> added the comment:

I've succeeded in building an extension for Python 3.3 (at least, on Windows XP, 32-bit; haven't tried any 64-bit), by the hack of copying libmsvcr100.a from a recent MinGW release (20120426) into an older MinGW release (20101030).

I haven't looked at MinGW releases to see if I can find one that supports both the -mno-cygwin option and msvcr100.

I guess the best solution for this is to resolve issue #12641 for Python 3.3.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue15315>
_______________________________________
_______________________________________________
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 Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.