New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build Python extension with mingw32 on Windows #59520
Comments
I'm trying this with my 'cobs' Python package:
With Python 3.3 beta, it fails with an exception:
It works with Python 3.2. |
New changeset eee92b9ac4ad by Martin v. Löwis in branch 'default': |
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. |
That's definitely an improvement. It gets further, but on my PC, the compile fails: ... I'll have to see if I can get the required library I guess. |
I downloaded the latest MinGW, and now it tells me: ... |
It sounds as though the option '-mno-cygwin' is related to issue bpo-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? |
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. |
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 (2012042) 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 bpo-12641 for Python 3.3. |
I have found a hack for the issue. Reason: During compilation, the directory for linking is C:\Python44\libs. Both -lpython and -lmsvcr100 are pointed to the same location. So, they have to be in the same directory. I have another problem here. |
Aditya, python3 changed the API to create modules. See bpo-18210. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: