<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 7:46 AM, Frédéric Bastien <span dir="ltr"><<a href="mailto:nouiz@nouiz.org" target="_blank">nouiz@nouiz.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br>I checkout the dev version of numpy and it fail to compile with this error:<br><br>
creating build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/multiarray<br><br>compile options: '-DHAVE_NPY_CONFIG_H=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/opt/lisa/os/epd-7.1.2/include/python2.7 -c'<br>
<br>gcc: numpy/core/src/multiarray/sequence.c<br><br>gcc: numpy/core/src/multiarray/descriptor.c<br><br>gcc: numpy/core/src/multiarray/getset.c<br><br>gcc: numpy/core/src/multiarray/arrayobject.c<br><br>gcc: numpy/core/src/multiarray/methods.c<br>
<br>numpy/core/src/multiarray/methods.c: In function ‘array_partition’:<br><br>numpy/core/src/multiarray/methods.c:1199:38: error: ‘PyArray_SelectkindConverter’ undeclared (first use in this function)<br><br>numpy/core/src/multiarray/methods.c:1199:38: note: each undeclared identifier is reported only once for each function it appears in<br>
<br>numpy/core/src/multiarray/methods.c: In function ‘array_argpartition’:<br><br>numpy/core/src/multiarray/methods.c:1316:38: error: ‘PyArray_SelectkindConverter’ undeclared (first use in this function)<br><br>numpy/core/src/multiarray/methods.c:1352:9: warning: assignment makes pointer from integer without a cast<br>
<br>numpy/core/src/multiarray/methods.c: In function ‘array_partition’:<br><br>numpy/core/src/multiarray/methods.c:1199:38: error: ‘PyArray_SelectkindConverter’ undeclared (first use in this function)<br><br>numpy/core/src/multiarray/methods.c:1199:38: note: each undeclared identifier is reported only once for each function it appears in<br>
<br>numpy/core/src/multiarray/methods.c: In function ‘array_argpartition’:<br><br>numpy/core/src/multiarray/methods.c:1316:38: error: ‘PyArray_SelectkindConverter’ undeclared (first use in this function)<br><br>numpy/core/src/multiarray/methods.c:1352:9: warning: assignment makes pointer from integer without a cast<br>
<br>error: Command "gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC -DHAVE_NPY_CONFIG_H=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/opt/lisa/os/epd-7.1.2/include/python2.7 -c numpy/core/src/multiarray/methods.c -o build/temp.linux-x86_64-2.7/numpy/core/src/multiarray/methods.o" failed with exit status 1<br>
<br><br></div> PyArray_SelectkindConverter is defined in numpy/core/src/multiarray/conversion_utils.c. methods.c include conversion_utils.h, but there is no fct declaration of this fct in this file. Is that normal?<br><br>
</div></div></blockquote><div><br></div><div>No, it looks like a bug. What is strange is that it doesn't show up on my machine. What compiler flags are you using?<br><br></div><div>Could you make a PR for this?<br><br>
</div><div><snip><br></div><div><br></div><div>Chuck <br></div></div></div></div>