[pycrypto] Unrecognized command line option '-mno-cygwin'

Legrandin gooksankoo at hoiptorrow.mailexpire.com
Sun Jul 8 06:02:42 EDT 2012


> I’m trying to build the pycrypto libarary. I browse to the folder where my
> files are extracted an type ‘make’. Things progress along just fine for
> quite a few minutes when suddenly I get this error and the process halts:*
> ***
>
> ** **
>
> Cc1.exe: error: unrecognized command line option '-mno-cygwin'****
>
> Error: command ‘gcc’ failed with exit status 1****
>
> ** **
>
> I’m working in MinGW (not cygwin). Can anybody suggest how to fix this?
> Thanks.
>

It is a known issue of distutils.

Edit C:\Python2.7.1\Lib\distutils\cygwincompiler.py and remove
'-mno-cygwin' everywhere.

See here:

http://www.secker.nl/2012/03/08/setup-python-2-7-2-and-mingw-on-windows-xp/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dlitz.net/pipermail/pycrypto/attachments/20120708/32692e65/attachment.html>


More information about the pycrypto mailing list