[SciPy-User] Compiling SciPy almost works

Bruce Southey bsouthey at gmail.com
Fri Aug 6 14:11:29 EDT 2010


  On 08/06/2010 11:51 AM, David Warde-Farley wrote:
> 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
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user

This is the closed ticket 1180:
http://projects.scipy.org/scipy/ticket/1180

See the thread from about two weeks ago:
http://thread.gmane.org/gmane.comp.python.scientific.devel/14323/focus=14324

Hopefully that will give you sufficient information to address it for icc.

Bruce

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20100806/1278c04e/attachment.html>


More information about the SciPy-User mailing list