[New-bugs-announce] [issue7629] Compiling with mingw32 gcc, content of variable "extra_postargs" invalid

Markus report at bugs.python.org
Mon Jan 4 03:17:16 CET 2010


New submission from Markus <hardcorevenom at gmx.de>:

I tried to build "pylzma" with "python setup.py build -cmingw32" and got the following message.

C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DWIN32=1 -DCOMPRESS_MF_MT=1 -DWITH_COMPAT=1 -IC:\work\dev\Python26\include -I. -IC:\work\dev\Python26\include -IC:\work\dev\Python26\PC -c pylzma.c -o build\temp.win32-2.6\Release\pylzma.o /MT
gcc: /MT: No such file or directory

"/MT" is the content of variable "extra_postargs" in "cygwinccompiler.py" upon the gcc call. Oddly "/MT" is a switch of the MSVC compiler not MinGW.
I modified "cygwinccompiler.py" and cleared extra_postargs with "[]" it compiled without a problem then.

----------
assignee: tarek
components: Distutils
messages: 97187
nosy: popelkopp, tarek
severity: normal
status: open
title: Compiling with mingw32 gcc, content of variable "extra_postargs" invalid
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7629>
_______________________________________


More information about the New-bugs-announce mailing list