2014-03-26 16:27 GMT+01:00 Olivier Grisel <[email protected]>: > Hi Carl, > > I installed Python 2.7.6 64 bits on a windows server instance from > rackspace cloud and then ran get-pip.py and then could successfully > install the numpy and scipy wheel packages from your google drive > folder. I tested dot products and scipy.linalg.svd and they work as > expected. > > Then I uncompressed your mingw toolchain in c:\mingw, put c:\mingw\bin > in my PATH and tried to build the scikit-learn git master with it, > however it fails with: > > building 'sklearn.__check_build._check_build' extension > compiling C sources > C compiler: gcc -DMS_WIN64 -O2 -msse -msse2 -Wall -Wstrict-prototypes > > compile options: '-D__MSVCRT_VERSION__=0x0900 > -Ic:\Python27\lib\site-packages\numpy\core\include > -Ic:\Python27\lib\site-packages\numpy\core\include -Ic:\Python2 > 7\include -Ic:\Python27\PC -c' > gcc -DMS_WIN64 -O2 -msse -msse2 -Wall -Wstrict-prototypes > -D__MSVCRT_VERSION__=0x0900 > -Ic:\Python27\lib\site-packages\numpy\core\include > -Ic:\Python27\lib\site- > packages\numpy\core\include -Ic:\Python27\include -Ic:\Python27\PC -c > sklearn\__check_build\_check_build.c -o > build\temp.win-amd64-2.7\Release\sklearn\__check_b > uild\_check_build.o > Found executable c:\mingw\bin\gcc.exe > gcc -shared -Wl,-gc-sections -Wl,-s > build\temp.win-amd64-2.7\Release\sklearn\__check_build\_check_build.o > -Lc:\Python27\libs -Lc:\Python27\PCbuild\amd64 -Lbuild > \temp.win-amd64-2.7 -lpython27 -lmsvcr90 -o > build\lib.win-amd64-2.7\sklearn\__check_build\_check_build.pyd > build\temp.win-amd64-2.7\Release\sklearn\__check_build\_check_build.o:_check_build.c:(.text+0x3): > undefined reference to `__imp__Py_NoneStruct' > build\temp.win-amd64-2.7\Release\sklearn\__check_build\_check_build.o:_check_build.c:(.text+0x1ca): > undefined reference to `__imp__PyThreadState_Current' > build\temp.win-amd64-2.7\Release\sklearn\__check_build\_check_build.o:_check_build.c:(.text+0x405): > undefined reference to `__imp_PyExc_ImportError' > c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: > build\temp.win-amd64-2.7\Release\sklearn\__check_build\_check_build. > o: bad reloc address 0x0 in section `.data' > collect2.exe: error: ld returned 1 exit status > error: Command "gcc -shared -Wl,-gc-sections -Wl,-s > build\temp.win-amd64-2.7\Release\sklearn\__check_build\_check_build.o > -Lc:\Python27\libs -Lc:\Python27\PCbui > ld\amd64 -Lbuild\temp.win-amd64-2.7 -lpython27 -lmsvcr90 -o > build\lib.win-amd64-2.7\sklearn\__check_build\_check_build.pyd" failed > with exit status 1
Ignore that, I had forgotten to copy the libpython17.a file in c:\Python27\libs on that instance. Building scikit-learn works with the static toolchain. I have failing tests but those are probably not related to the toolchain. -- Olivier http://twitter.com/ogrisel - http://github.com/ogrisel _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
