google-code-export / pymssql

Automatically exported from code.google.com/p/pymssql
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Build Issue on Windows - MinGW32 #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by Matthew....@gmail.com on 2 Mar 2012 at 6:23

GoogleCodeExporter commented 9 years ago
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=974
439

To fix this error, remove -mno-cygwin option at Mingw32CCompiler class's 
__init__ method in C:\python27\Lib\distutils\cygwinccompiler.py file.

Original comment by marun...@gmail.com on 8 Mar 2012 at 3:41

GoogleCodeExporter commented 9 years ago
Perfect. Thanks!

Original comment by Matthew....@gmail.com on 8 Mar 2012 at 3:44

GoogleCodeExporter commented 9 years ago
Is there a way to override this value rather than altering python proper source 
code?

Original comment by rsyr...@gmail.com on 8 Mar 2012 at 5:07

GoogleCodeExporter commented 9 years ago
Going to close this since it doesn't seem as though its something we have 
control over.

Original comment by rsyr...@gmail.com on 3 Apr 2012 at 3:52