ETS installation issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ETS installation issue

emmawillemsma
I am trying to install ets from source using the ets.py script provided. I am on Windows, using MinGW with GCC 4.6.2 (no cygwin). Everything runs fine until it tries to build the scimath.interpolate._interpolate extension. I get:

running build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
building 'scimath.interpolate._interpolate' extension
compiling C++ sources
C compiler: g++ -mno-cygwin -O2 -Wall

compile options: '-Iscimath\interpolate -Ic:\python25\lib\site-packages\numpy\core\include -Ic:\python25\include -Ic:\python25\PC -c'
g++ -mno-cygwin -O2 -Wall -Iscimath\interpolate -Ic:\python25\lib\site-packages\numpy\core\include -Ic:\python25\include -Ic:\python25\PC -c scimath\interpolate\_interpolate.cpp -o build\temp.win32-2.5\Release\scimath\interpolate\_interpolate.o
Found executable C:\MinGW\bin\g++.exe
cc1plus.exe: error: unrecognized command line option '-mno-cygwin'
error: Command "g++ -mno-cygwin -O2 -Wall -Iscimath\interpolate -Ic:\python25\lib\site-packages\numpy\core\include -Ic:\python25\include -Ic:\python25\PC -c scimath\interpolate\_interpolate.cpp -o build\temp.win32-2.5\Release\scimath\interpolate\_interpolate.o" failed with exit status 1
   Error running command in package scimath:
   Command '['c:\\python25\\python.exe', 'setup.py', 'develop']' returned non-zero exit status 1
   Press enter to process remaining packages.

I am aware of the issue of MinGW GCC removing the -mno-cygwin option, and have removed all instances of  -mno-cygwin from my distutils cygwinccompiler.py file (as per posting: http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o). I am able to compile c extensions manually with Cython, but I'm still having this problem with the ets installation. I tried searching for -mno-cygwin in both my distutils and in the ets distribution, and I haven't been able to find where this is occurring.

Any help is appreciated. Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: ETS installation issue

Robert Kern
On Wed, Jun 27, 2012 at 4:42 PM, emmawillemsma
<[hidden email]> wrote:

> I am trying to install ets from source using the ets.py script provided. I am
> on Windows, using MinGW with GCC 4.6.2 (no cygwin). Everything runs fine
> until it tries to build the scimath.interpolate._interpolate extension. I
> get:
>
> running build_ext
> customize Mingw32CCompiler
> customize Mingw32CCompiler using build_ext
> customize Mingw32CCompiler
> customize Mingw32CCompiler using build_ext
> building 'scimath.interpolate._interpolate' extension
> compiling C++ sources
> C compiler: g++ -mno-cygwin -O2 -Wall
>
> compile options: '-Iscimath\interpolate
> -Ic:\python25\lib\site-packages\numpy\core\include -Ic:\python25\include
> -Ic:\python25\PC -c'
> g++ -mno-cygwin -O2 -Wall -Iscimath\interpolate
> -Ic:\python25\lib\site-packages\numpy\core\include -Ic:\python25\include
> -Ic:\python25\PC -c scimath\interpolate\_interpolate.cpp -o
> build\temp.win32-2.5\Release\scimath\interpolate\_interpolate.o
> Found executable C:\MinGW\bin\g++.exe
> cc1plus.exe: error: unrecognized command line option '-mno-cygwin'
> error: Command "g++ -mno-cygwin -O2 -Wall -Iscimath\interpolate
> -Ic:\python25\lib\site-packages\numpy\core\include -Ic:\python25\include
> -Ic:\python25\PC -c scimath\interpolate\_interpolate.cpp -o
> build\temp.win32-2.5\Release\scimath\interpolate\_interpolate.o" failed with
> exit status 1
>   Error running command in package scimath:
>   Command '['c:\\python25\\python.exe', 'setup.py', 'develop']' returned
> non-zero exit status 1
>   Press enter to process remaining packages.
>
> I am aware of the issue of MinGW GCC removing the -mno-cygwin option, and
> have removed all instances of  -mno-cygwin from my distutils
> cygwinccompiler.py file (as per posting:
> http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o).
> I am able to compile c extensions manually with Cython, but I'm still having
> this problem with the ets installation. I tried searching for -mno-cygwin in
> both my distutils and in the ets distribution, and I haven't been able to
> find where this is occurring.

numpy.distutils adds it.

https://github.com/numpy/numpy/blob/master/numpy/distutils/mingw32ccompiler.py#L117

--
Robert Kern
Enthought
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: ETS installation issue

Christoph Gohlke
In reply to this post by emmawillemsma
On 6/27/2012 8:42 AM, emmawillemsma wrote:

> I am trying to install ets from source using the ets.py script provided. I am
> on Windows, using MinGW with GCC 4.6.2 (no cygwin). Everything runs fine
> until it tries to build the scimath.interpolate._interpolate extension. I
> get:
>
> running build_ext
> customize Mingw32CCompiler
> customize Mingw32CCompiler using build_ext
> customize Mingw32CCompiler
> customize Mingw32CCompiler using build_ext
> building 'scimath.interpolate._interpolate' extension
> compiling C++ sources
> C compiler: g++ -mno-cygwin -O2 -Wall
>
> compile options: '-Iscimath\interpolate
> -Ic:\python25\lib\site-packages\numpy\core\include -Ic:\python25\include
> -Ic:\python25\PC -c'
> g++ -mno-cygwin -O2 -Wall -Iscimath\interpolate
> -Ic:\python25\lib\site-packages\numpy\core\include -Ic:\python25\include
> -Ic:\python25\PC -c scimath\interpolate\_interpolate.cpp -o
> build\temp.win32-2.5\Release\scimath\interpolate\_interpolate.o
> Found executable C:\MinGW\bin\g++.exe
> cc1plus.exe: error: unrecognized command line option '-mno-cygwin'
> error: Command "g++ -mno-cygwin -O2 -Wall -Iscimath\interpolate
> -Ic:\python25\lib\site-packages\numpy\core\include -Ic:\python25\include
> -Ic:\python25\PC -c scimath\interpolate\_interpolate.cpp -o
> build\temp.win32-2.5\Release\scimath\interpolate\_interpolate.o" failed with
> exit status 1
>     Error running command in package scimath:
>     Command '['c:\\python25\\python.exe', 'setup.py', 'develop']' returned
> non-zero exit status 1
>     Press enter to process remaining packages.
>
> I am aware of the issue of MinGW GCC removing the -mno-cygwin option, and
> have removed all instances of  -mno-cygwin from my distutils
> cygwinccompiler.py file (as per posting:
> http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o).
> I am able to compile c extensions manually with Cython, but I'm still having
> this problem with the ets installation. I tried searching for -mno-cygwin in
> both my distutils and in the ets distribution, and I haven't been able to
> find where this is occurring.
>
> Any help is appreciated. Thanks!
>
>

Try to upgrade to numpy 1.6.2 or remove `-mno-cygwin` from
C:\Python25\Lib\site-packages\numpy\distutils\mingw32ccompiler.py

Christoph
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: ETS installation issue

emmawillemsma
Thank you, removing -mno-cygwin from numpy's numpy mingw32ccompiler.py worked.