[Numpy-discussion] problem installing numpy on Fedora

Bruce Southey bsouthey at gmail.com
Wed Apr 13 10:14:02 EDT 2011


On 04/13/2011 08:30 AM, c cook wrote:
> Hello,
>
> I am trying to install numpy 1.6.0b2 version on Fedora and I am 
> getting the following error:
>
> In file included from numpy/core/src/private/npy_config.h:4,
>                  from numpy/core/src/multiarray/common.c:8,
>                  from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:8:
> build/src.linux-x86_64-2.4/numpy/core/include/numpy/config.h:34:1: 
> warning: "HAVE_HYPOT" redefined
> In file included from /home/cse/Apps/Python-2.4/Include/Python.h:8,
>                  from numpy/core/src/multiarray/common.c:2,
>                  from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:8:
> /home/cse/Apps/Python-2.4/pyconfig.h:232:1: warning: this is the 
> location of the previous definition
> In file included from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:14:
> numpy/core/src/multiarray/arraytypes.c.src: In function `VOID_getitem':
> numpy/core/src/multiarray/arraytypes.c.src:615: warning: label 
> `finish' defined but not used
> In file included from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:19:
> numpy/core/src/multiarray/descriptor.c: In function `descr_repeat':
> numpy/core/src/multiarray/descriptor.c:2840: warning: long int format, 
> different type arg (arg 3)
> In file included from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:27:
> numpy/core/src/multiarray/methods.c: In function `NpyArg_ParseKeywords':
> numpy/core/src/multiarray/methods.c:41: warning: passing arg 3 of 
> `PyArg_VaParseTupleAndKeywords' discards qualifiers from pointer 
> target type
> In file included from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:28:
> numpy/core/src/multiarray/convert_datatype.c: In function 
> `min_scalar_type_num':
> numpy/core/src/multiarray/convert_datatype.c:774: warning: comparison 
> is always true due to limited range of data type
> numpy/core/src/multiarray/descriptor.c: In function 
> `_convert_divisor_to_multiple':
> numpy/core/src/multiarray/descriptor.c:606: warning: 'q' might be used 
> uninitialized in this function
> numpy/core/src/multiarray/einsum.c.src: In function 
> `float_sum_of_products_contig_outstride0_one':
> numpy/core/src/multiarray/einsum.c.src:852: error: unrecognizable insn:
> (insn:HI 440 228 481 14 
> /usr/lib/gcc/x86_64-redhat-linux/3.4.4/include/xmmintrin.h:915 (set 
> (reg:SF 148)
>         (vec_select:SF (reg/v:V4SF 67 [ accum_sse ])
>             (parallel [
>                     (const_int 0 [0x0])
>                 ]))) -1 (insn_list 213 (nil))
>     (nil))
> numpy/core/src/multiarray/einsum.c.src:852: internal compiler error: 
> in extract_insn, at recog.c:2083
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
> Preprocessed source stored into /tmp/cck42rVN.out file, please attach 
> this to your bugreport.
> In file included from numpy/core/src/private/npy_config.h:4,
>                  from numpy/core/src/multiarray/common.c:8,
>                  from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:8:
> build/src.linux-x86_64-2.4/numpy/core/include/numpy/config.h:34:1: 
> warning: "HAVE_HYPOT" redefined
> In file included from /home/cse/Apps/Python-2.4/Include/Python.h:8,
>                  from numpy/core/src/multiarray/common.c:2,
>                  from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:8:
> /home/cse/Apps/Python-2.4/pyconfig.h:232:1: warning: this is the 
> location of the previous definition
> In file included from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:14:
> numpy/core/src/multiarray/arraytypes.c.src: In function `VOID_getitem':
> numpy/core/src/multiarray/arraytypes.c.src:615: warning: label 
> `finish' defined but not used
> In file included from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:19:
> numpy/core/src/multiarray/descriptor.c: In function `descr_repeat':
> numpy/core/src/multiarray/descriptor.c:2840: warning: long int format, 
> different type arg (arg 3)
> In file included from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:27:
> numpy/core/src/multiarray/methods.c: In function `NpyArg_ParseKeywords':
> numpy/core/src/multiarray/methods.c:41: warning: passing arg 3 of 
> `PyArg_VaParseTupleAndKeywords' discards qualifiers from pointer 
> target type
> In file included from 
> numpy/core/src/multiarray/multiarraymodule_onefile.c:28:
> numpy/core/src/multiarray/convert_datatype.c: In function 
> `min_scalar_type_num':
> numpy/core/src/multiarray/convert_datatype.c:774: warning: comparison 
> is always true due to limited range of data type
> numpy/core/src/multiarray/descriptor.c: In function 
> `_convert_divisor_to_multiple':
> numpy/core/src/multiarray/descriptor.c:606: warning: 'q' might be used 
> uninitialized in this function
> numpy/core/src/multiarray/einsum.c.src: In function 
> `float_sum_of_products_contig_outstride0_one':
> numpy/core/src/multiarray/einsum.c.src:852: error: unrecognizable insn:
> (insn:HI 440 228 481 14 
> /usr/lib/gcc/x86_64-redhat-linux/3.4.4/include/xmmintrin.h:915 (set 
> (reg:SF 148)
>         (vec_select:SF (reg/v:V4SF 67 [ accum_sse ])
>             (parallel [
>                     (const_int 0 [0x0])
>                 ]))) -1 (insn_list 213 (nil))
>     (nil))
> numpy/core/src/multiarray/einsum.c.src:852: internal compiler error: 
> in extract_insn, at recog.c:2083
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
> Preprocessed source stored into /tmp/cck42rVN.out file, please attach 
> this to your bugreport.
> error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 
> -Wall -Wstrict-prototypes -fPIC -Inumpy/core/include 
> -Ibuild/src.linux-x86_64-2.4/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/include 
> -I/home/cse/Apps/Python-2.4/Include -I/home/cse/Apps/Python-2.4 
> -Ibuild/src.linux-x86_64-2.4/numpy/core/src/multiarray 
> -Ibuild/src.linux-x86_64-2.4/numpy/core/src/umath -c 
> numpy/core/src/multiarray/multiarraymodule_onefile.c -o 
> build/temp.linux-x86_64-2.4/multiarraymodule_onefile.o" failed with 
> exit status 1
>
>
> Any idea what is the problem?
>
> Thank you,
> Csaba
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

I have no problem with Python2.4 and gcc version 4.5 on Fedora 14.
Which version of Fedora are you using?
That gcc version 3.4.4 is rather old as in Fedora Core 3 (cf Fedora 15 
in alpha release now).

I think that numpy requires at least gcc version 4+ but it actual 
version needs to be more specific than that. Hopefully someone with 
sufficient gcc knowledge will correct me and the documentation.

Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110413/1e04eab5/attachment.html>


More information about the NumPy-Discussion mailing list