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

Mailing List Archive: Python: Dev

possible bug in distutils (Mingw32CCompiler)?

 

 

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


sturla at molden

May 24, 2012, 5:03 AM

Post #1 of 3 (185 views)
Permalink
possible bug in distutils (Mingw32CCompiler)?

Mingw32CCompiler in cygwincompiler.py emits the symbol -mno-cygwin.

This is used to make Cygwin's gcc behave as mingw. As of gcc 4.6 it is
not recognized by the mingw gcc compiler itself, and causes as crash. It
should be removed because it is never needed for mingw (in any version),
only for cross-compilation to mingw from other gcc versions.

Instead, those who use CygwinCCompiler or Linux GCC to "cross-compile"
to plain Win32 can set -mno-cygwin manually. It also means -mcygwin
should be removed from the output of CygwinCCompiler.

I think...


Sturla



_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


brian at python

May 24, 2012, 6:45 AM

Post #2 of 3 (177 views)
Permalink
Re: possible bug in distutils (Mingw32CCompiler)? [In reply to]

On Thu, May 24, 2012 at 7:03 AM, Sturla Molden <sturla [at] molden> wrote:
>
> Mingw32CCompiler in cygwincompiler.py emits the symbol -mno-cygwin.
>
> This is used to make Cygwin's gcc behave as mingw. As of gcc 4.6 it is not
> recognized by the mingw gcc compiler itself, and causes as crash. It should
> be removed because it is never needed for mingw (in any version), only for
> cross-compilation to mingw from other gcc versions.
>
> Instead, those who use CygwinCCompiler or Linux GCC to "cross-compile" to
> plain Win32 can set -mno-cygwin manually. It also means -mcygwin should be
> removed from the output of CygwinCCompiler.
>
> I think...

Please report bugs to http://bugs.python.org so they don't get lost in
email. The relevant people will be notified or assigned if a bug is
entered.
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


rdmurray at bitdance

May 24, 2012, 7:11 AM

Post #3 of 3 (174 views)
Permalink
Re: possible bug in distutils (Mingw32CCompiler)? [In reply to]

On Thu, 24 May 2012 08:45:30 -0500, Brian Curtin <brian [at] python> wrote:
> On Thu, May 24, 2012 at 7:03 AM, Sturla Molden <sturla [at] molden> wrote:
> >
> > Mingw32CCompiler in cygwincompiler.py emits the symbol -mno-cygwin.
> >
> > This is used to make Cygwin's gcc behave as mingw. As of gcc 4.6 it is not
> > recognized by the mingw gcc compiler itself, and causes as crash. It should
> > be removed because it is never needed for mingw (in any version), only for
> > cross-compilation to mingw from other gcc versions.
> >
> > Instead, those who use CygwinCCompiler or Linux GCC to "cross-compile" to
> > plain Win32 can set -mno-cygwin manually. It also means -mcygwin should be
> > removed from the output of CygwinCCompiler.
> >
> > I think...
>
> Please report bugs to http://bugs.python.org so they don't get lost in
> email. The relevant people will be notified or assigned if a bug is
> entered.

It was already reported by someone else:

http://bugs.python.org/issue12641

--David
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev 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.