Issue 1:
Hi guys,

I tried everything but cannot find any solution. Please help. thanks a lot.

The following is from the compilation:

compiling C sources

C compiler: gcc -m64 -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -DHAVE_NCURSES_H -fPIC

compile options: '-DNO_ATLAS_INFO=1 -Isklearn/src/cblas -I/users/home/aagns9c3/django_projects/epd/lib/python2.7/site-packages/numpy/core/include -I/users/home/aagns9c3/django_projects/epd/lib/python2.7/site-packages/numpy/core/include -I/users/home/aagns9c3/django_projects/epd/include/python2.7 -c'

gcc: sklearn/utils/arrayfuncs.c

In file included from sklearn/utils/arrayfuncs.c:241:

sklearn/utils/src/cholesky_delete.c: In function `float_cholesky_delete':

sklearn/utils/src/cholesky_delete.c:55: error: syntax error before numeric constant

sklearn/utils/src/cholesky_delete.c:58: warning: passing arg 2 of `cblas_scopy' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:58: warning: passing arg 4 of `cblas_scopy' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:59: error: invalid lvalue in assignment

sklearn/utils/src/cholesky_delete.c:62: error: invalid lvalue in assignment

sklearn/utils/src/cholesky_delete.c:65: warning: passing arg 1 of `cblas_srotg' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:65: warning: passing arg 2 of `cblas_srotg' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:66: error: subscripted value is neither array nor pointer

sklearn/utils/src/cholesky_delete.c:72: error: subscripted value is neither array nor pointer

sklearn/utils/src/cholesky_delete.c:73: error: invalid lvalue in assignment

sklearn/utils/src/cholesky_delete.c:76: warning: passing arg 2 of `cblas_srot' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:76: warning: passing arg 4 of `cblas_srot' makes pointer from integer without a cast

In file included from sklearn/utils/arrayfuncs.c:241:

sklearn/utils/src/cholesky_delete.c: In function `float_cholesky_delete':

sklearn/utils/src/cholesky_delete.c:55: error: syntax error before numeric constant

sklearn/utils/src/cholesky_delete.c:58: warning: passing arg 2 of `cblas_scopy' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:58: warning: passing arg 4 of `cblas_scopy' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:59: error: invalid lvalue in assignment

sklearn/utils/src/cholesky_delete.c:62: error: invalid lvalue in assignment

sklearn/utils/src/cholesky_delete.c:65: warning: passing arg 1 of `cblas_srotg' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:65: warning: passing arg 2 of `cblas_srotg' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:66: error: subscripted value is neither array nor pointer

sklearn/utils/src/cholesky_delete.c:72: error: subscripted value is neither array nor pointer

sklearn/utils/src/cholesky_delete.c:73: error: invalid lvalue in assignment

sklearn/utils/src/cholesky_delete.c:76: warning: passing arg 2 of `cblas_srot' makes pointer from integer without a cast

sklearn/utils/src/cholesky_delete.c:76: warning: passing arg 4 of `cblas_srot' makes pointer from integer without a cast

error: Command "gcc -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -DHAVE_NCURSES_H -fPIC -DNO_ATLAS_INFO=1 -Isklearn/src/cblas -I/users/home/aagns9c3/django_projects/epd/lib/python2.7/site-packages/numpy/core/include -I/users/home/aagns9c3/django_projects/epd/lib/python2.7/site-packages/numpy/core/include -I/users/home/aagns9c3/django_projects/epd/include/python2.7 -c sklearn/utils/arrayfuncs.c -o build/temp.solaris-2.11-i86pc-2.7/sklearn/utils/arrayfuncs.o" failed with exit status 1

Command /users/home/aagns9c3/django_projects/recco_site/bin/python -c "import setuptools;file='/users/home/aagns9c3/django_projects/recco_site/build/scikit-learn/setup.py';execfile(file)" install --single-version-externally-managed --record /tmp/pip-yWjH4h-record/install-record.txt --install-headers /users/home/aagns9c3/django_projects/recco_site/include/site/python2.7 failed with error code 1

Exception information:

Traceback (most recent call last):

File "/users/home/aagns9c3/django_projects/recco_site/lib/python2.7/site-packages/pip-0.8.1-py2.7.egg/pip/basecommand.py", line 130, in main

self.run(options, args)

File "/users/home/aagns9c3/django_projects/recco_site/lib/python2.7/site-packages/pip-0.8.1-py2.7.egg/pip/commands/install.py", line 228, in run

requirement_set.install(install_options, global_options)

File "/users/home/aagns9c3/django_projects/recco_site/lib/python2.7/site-packages/pip-0.8.1-py2.7.egg/pip/req.py", line 1043, in install

requirement.install(install_options, global_options)

File "/users/home/aagns9c3/django_projects/recco_site/lib/python2.7/site-packages/pip-0.8.1-py2.7.egg/pip/req.py", line 559, in install

cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)

File "/users/home/aagns9c3/django_projects/recco_site/lib/python2.7/site-packages/pip-0.8.1-py2.7.egg/pip/init.py", line 249, in call_subprocess

% (command_desc, proc.returncode))

InstallationError: Command /users/home/aagns9c3/django_projects/recco_site/bin/python -c "import setuptools;file='/users/home/aagns9c3/django_projects/recco_site/build/scikit-learn/setup.py';execfile(file)" install --single-version-externally-managed --record /tmp/pip-yWjH4h-record/install-record.txt --install-headers /users/home/aagns9c3/django_projects/recco_site/include/site/python2.7 failed with error code 1

:

Issue 2:
Building failed on a Solaris system with the following error:

sklearn/utils/src/cholesky_delete.c:55:13: error: expected identifier or ‘(’ before numeric constant

There's also same error reported for Cygwin:

http://permalink.gmane.org/gmane.comp.python.scikit-learn/3353

It turns out in cholesky_delete.c it has a variable named _L, but the _L is defined somewhere as a macro, put a #undef _L fixes the build error. But a proper fix should be rename the _L to something else..