[SciPy-User] Compiling SciPy almost works

David Warde-Farley dwf at cs.toronto.edu
Fri Aug 6 12:51:45 EDT 2010


On 2010-08-05, at 3:11 AM, David wrote:

> On 08/05/2010 03:27 PM, Søren Gammelmark wrote:
>> I have attached the build-log. As far as I can see it chooses the Intel
>> compiler with the correct options as it should.
>> 
>> Also recompiling after removing build did not change anything (I do not
>> believe it should have, since I was quite careful of doing this with
>> every attempt).
> 
> Could you try linking the extension "manually" and add -lstdc++, i.e..
> 
> icc -fPIC -fomit-frame-pointer -O2 -g -parallel -shared 
> build/temp.linux-x86_64-2.6/scipy/sparse/sparsetools/csr_wrap.o 
> -Lbuild/temp.linux-x86_64-2.6 -o 
> build/lib.linux-x86_64-2.6/scipy/sparse/sparsetools/_csr.so -lstdc++

Hey David,

The command I'm using is similar but the build actually fails for me with 11.1... It seems it does not like these sprintf statements:

gpc-f101n084-$ icc -xHost -O3 -fPIC -openmp -I/home/dwf/pkg/lib/python2.7/site-packages/numpy/core/include -I/home/dwf/pkg/include/python2.7 -c scipy/sparse/sparsetools/csr_wrap.cxx -o build/temp.linux-x86_64-2.7/scipy/sparse/sparsetools/csr_wrap.o         
scipy/sparse/sparsetools/csr_wrap.cxx(2910): error: expected a ")"
  	sprintf(s,"%" NPY_INTP_FMT ",", size[i]);                
  	              ^

scipy/sparse/sparsetools/csr_wrap.cxx(2917): error: expected a ")"
        sprintf(s,"%" NPY_INTP_FMT ",", array_size(ary,i));                            
                      ^

compilation aborted for scipy/sparse/sparsetools/csr_wrap.cxx (code 2)
gpc-f101n084-$ icc --version
icc (ICC) 11.1 20100414
Copyright (C) 1985-2010 Intel Corporation.  All rights reserved.


Any thoughts?

David


More information about the SciPy-User mailing list