This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Compiling with mingw32 gcc, content of variable "extra_postargs" invalid
Type: Stage:
Components: Distutils Versions: Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: tarek Nosy List: popelkopp, tarek
Priority: normal Keywords:

Created on 2010-01-04 02:17 by popelkopp, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg97187 - (view) Author: Markus (popelkopp) Date: 2010-01-04 02:17
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.
msg97188 - (view) Author: Markus (popelkopp) Date: 2010-01-04 02:30
Sorry, my fault.
"/MT" was given in "setup.py" of "pylzma". I didn't search properly.
Please close.
History
Date User Action Args
2022-04-11 14:56:56adminsetgithub: 51878
2010-01-04 02:51:19r.david.murraysetstatus: open -> closed
resolution: not a bug
2010-01-04 02:30:21popelkoppsetmessages: + msg97188
2010-01-04 02:17:15popelkoppcreate