[Numpy-discussion] Failure to build numpy 1.6.1

David Cournapeau cournape@gmail....
Tue Nov 8 03:02:34 CST 2011


On Tue, Nov 8, 2011 at 9:01 AM, David Cournapeau <cournape@gmail.com> wrote:
> Hi Mads,
>
> On Tue, Nov 8, 2011 at 8:40 AM, Mads Ipsen <madsipsen@gmail.com> wrote:
>> Hi,
>>
>> I am trying to build numpy-1.6.1 with the following gcc compiler specs:
>>
>> Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
>> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
>> --infodir=/usr/share/info --enable-shared --enable-threads=posix
>> --disable-checking --with-system-zlib --enable-__cxa_atexit
>> --disable-libunwind-exceptions --enable-java-awt=gtk
>> --host=x86_64-redhat-linux
>> Thread model: posix
>> gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)
>>
>> I get the following error (any clues at what goes wrong)?
>
> This looks like a compiler bug (gcc 3.4 is really old). einsum uses
> SSE intrinsics, and old gcc implementations are quite buggy in that
> area.
>
> Could you try the following, at line 38, to add the following:
>
> #define EINSUM_USE_SSE1 0
> #define EINSUM_USE_SSE2 0

I meant to add this in the file
numpy/core/src/multiarray/einsum.c.src, and then rebuild numpy

David


More information about the NumPy-Discussion mailing list