[SciPy-User] Can't build numpy 1.6.1 on Ubuntu 11.10

Klonuo Umom klonuo@gmail....
Wed Sep 28 05:10:11 CDT 2011


I build numpy w/o ATLAS or MKL, but speed comparison (~10 times slower
depending on code) made me remove it and concentrate on the most boring part
I wanted to avoid: building numpy with ATLAS or MKL

I started with ATLAS, but just couldn't compile and error about missing
`libf77blas.a` library which somehow wasn't created by build process. Google
didn't give me pointers. As I couldn't do it with ATLAS, I step in Intel
solution:

Following previously known posts and Intel adviser I prepared `site.cfg`:

[DEFAULT]
include_dirs = /opt/SuiteSparse/UFconfig

[amd]
amd_libs = amd
library_dirs = /opt/SuiteSparse/AMD/Lib
include_dirs = /opt/SuiteSparse/AMD/Include

[umfpack]
umfpack_libs = umfpack
library_dirs = /opt/SuiteSparse/UMFPACK/Lib
include_dirs = /opt/SuiteSparse/UMFPACK/Include

[mkl]
include_dirs = /opt/intel/composerxe-2011.4.191/mkl/include
library_dirs = /opt/intel/composerxe-2011.4.191/mkl/lib/ia32
lapack_libs = mkl_lapack95
mkl_libs = mkl_intel mkl_sequential mkl_core pthread


and started:

$ python setup.py config --compiler=intel build_clib --compiler=intel
build_ext --compiler=intel


Result (whole in attachment):

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core
-Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath
-Inumpy/core/include -I/usr/include/python2.7 -c'
icc: _configtest.c
icc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: icc

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core
-Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath
-Inumpy/core/include -I/usr/include/python2.7 -c'
icc: _configtest.c
icc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building extension "numpy.core._sort" sources
Generating build/src.linux-i686-2.7/numpy/core/include/numpy/config.h
C compiler: icc

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core
-Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath
-Inumpy/core/include -I/usr/include/python2.7 -c'
icc: _configtest.c
/usr/include/gnu/stubs.h(7): catastrophic error: cannot open source file
"gnu/stubs-32.h"
  # include <gnu/stubs-32.h>
                            ^

compilation aborted for _configtest.c (code 4)
/usr/include/gnu/stubs.h(7): catastrophic error: cannot open source file
"gnu/stubs-32.h"
  # include <gnu/stubs-32.h>
                            ^

compilation aborted for _configtest.c (code 4)
failure.
removing: _configtest.c _configtest.o



Google suggests that it's probably related to ICC compiler
Any kind pointer?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20110928/2fb087f9/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: err.log
Type: application/octet-stream
Size: 6501 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/scipy-user/attachments/20110928/2fb087f9/attachment.obj 


More information about the SciPy-User mailing list