<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 11/08/2011 10:01 AM, David Cournapeau wrote:
    <blockquote
cite="mid:CAGY4rcVnJ4Xvbi79HHn_HXmEwDTZiLb1DfcoPTB8ja+w-4zE1A@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi Mads,

On Tue, Nov 8, 2011 at 8:40 AM, Mads Ipsen <a class="moz-txt-link-rfc2396E" href="mailto:madsipsen@gmail.com"><madsipsen@gmail.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">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)?
</pre>
      </blockquote>
      <pre wrap="">
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

cheers,

David
_______________________________________________
NumPy-Discussion mailing list
<a class="moz-txt-link-abbreviated" href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a>
<a class="moz-txt-link-freetext" href="http://mail.scipy.org/mailman/listinfo/numpy-discussion">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a>
</pre>
    </blockquote>
    <font face="Bitstream Vera Sans Mono">Yup, that fixes it.</font> For
    now, we can apply a temporary fix on our build system. Is this
    something that'll go into, say, 1.6.2?<br>
    <br>
    Best regards,<br>
    <br>
    Mads<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
+-----------------------------------------------------+
| Mads Ipsen                                          |
+----------------------+------------------------------+
| Gåsebæksvej 7, 4. tv |                              |
| DK-2500 Valby        | phone:          +45-29716388 |
| Denmark              | email:  <a class="moz-txt-link-abbreviated" href="mailto:mads.ipsen@gmail.com">mads.ipsen@gmail.com</a> |
+----------------------+------------------------------+

</pre>
  </body>
</html>