[ python-Bugs-877165 ] distutils - compiling C++ ext in cyg or mingw w/ std Python

SourceForge.net noreply at sourceforge.net
Wed Jan 14 16:55:20 EST 2004


Bugs item #877165, was opened at 2004-01-14 16:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=877165&group_id=5470

Category: Distutils
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Droettboom (mdboom)
Assigned to: Nobody/Anonymous (nobody)
Summary: distutils - compiling C++ ext in cyg or mingw w/ std Python

Initial Comment:
When compiling C++ extensions with Cygwin (Cygwin.dll
or MingW), the linker is erroneously set to cc, rather
than gcc.  Even though cc is a symlink to gcc, the
standard Python distribution is a standard Windows
executable which can not follow Cygwin symlinks, so
distutils displays the following error:

   command 'cc' failed: Invalid argument 

confusingly indicating cc.exe can not be found.

The error occurs because there is no compiler_cxx in
CygwinCCompiler to override the value in the
UnixCCompiler base class, as there is for compiler,
compiler_so etc...

The included patch (against revision 1.24 in CVS of
distutils/cygwinccompiler.py) adds this override and
fixes the error.

Thanks to Paul Moore for helping me track this down.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=877165&group_id=5470



More information about the Python-bugs-list mailing list