clueboy / pymssql_issues

0 stars 0 forks source link

Build Issue on Windows - MinGW32 #83

Closed clueboy closed 11 years ago

clueboy commented 11 years ago

From Matthew.Martz on March 01, 2012 22:23:29

What steps will reproduce the problem? 1. building with mingw32 on windows What is the expected output? What do you see instead? $ python setup.py build --compiler=mingw32 running build running build_ext extracting FreeTDS cythoning _mssql.pyx to _mssql.c building '_mssql' extension creating build creating build\temp.win32-2.7 creating build\temp.win32-2.7\Release C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Iwin32\freetds\include -IC:\Python27\include -IC:\Python27\PC -c _mssql.c -o build\temp.win32-2.7\Release_mssql.o -DMSDBLIB -Wl,-allow-multiple-definition -Wl,-subsystem,windows-mthreads -mwindows -Wl,--strip-all cc1.exe: error: unrecognized command line option '-mno-cygwin' warning: _mssql.pyx:170:11: Unreachable code error: command 'gcc' failed with exit status 1 What version of the product are you using? On what operating system? latest Please provide any additional information below.

Original issue: http://code.google.com/p/pymssql/issues/detail?id=83

clueboy commented 11 years ago

From marunguy on March 08, 2012 07:41:58

This error occurred by mingw. gcc 4.6.x don't accept -mno-cygwin. http://sourceforge.net/tracker/?func=detail&aid=3413937&group_id=200665&atid=974439 To fix this error, remove -mno-cygwin option at Mingw32CCompiler class's init method in C:\python27\Lib\distutils\cygwinccompiler.py file.

clueboy commented 11 years ago

From Matthew.Martz on March 08, 2012 07:44:05

Perfect. Thanks!

clueboy commented 11 years ago

From rsyring on March 08, 2012 09:07:14

Is there a way to override this value rather than altering python proper source code?

Status: Accepted

clueboy commented 11 years ago

From rsyring on April 03, 2012 08:52:04

Going to close this since it doesn't seem as though its something we have control over.

Status: WontFix