[NumPy-Tickets] [NumPy] #1944: ieee754.c in numpy-1.6.1 doesnt compile under cygwin

NumPy Trac numpy-tickets@scipy....
Mon Aug 29 12:07:12 CDT 2011


#1944: ieee754.c in numpy-1.6.1 doesnt compile under cygwin
----------------------------+-----------------------------------------------
 Reporter:  sebastian_sohr  |       Owner:  somebody
     Type:  defect          |      Status:  new     
 Priority:  normal          |   Milestone:  1.6.2   
Component:  numpy.core      |     Version:  devel   
 Keywords:  cygwin          |  
----------------------------+-----------------------------------------------

Comment(by sebastian_sohr):

 No, it does not compile with this change. You get:
 {{{
 gcc: numpy/core/src/multiarray/multiarraymodule_onefile.c
 In file included from
 numpy/core/src/multiarray/multiarraymodule_onefile.c:21:
 numpy/core/src/multiarray/ctors.c: In function 'swab_separator':
 numpy/core/src/multiarray/ctors.c:70: warning: array subscript has type
 'char'
 numpy/core/src/multiarray/ctors.c:74: warning: array subscript has type
 'char'
 numpy/core/src/multiarray/ctors.c: In function 'fromstr_skip_separator':
 numpy/core/src/multiarray/ctors.c:137: warning: array subscript has type
 'char'
 numpy/core/src/multiarray/multiarraymodule_onefile.c: At top level:
 numpy/core/src/multiarray/mapping.c:75: warning: '_array_ass_item' defined
 but not used
 build/src.cygwin-1.7.9-i686-2.6/numpy/core/include/numpy/__ufunc_api.h:227:
 warning: '_import_umath' defined but not use
 d
 gcc -shared -Wl,--enable-auto-image-base
 build/temp.cygwin-1.7.9-i686-2.6/numpy/core/src/multiarray/multiarraymodule_one
 file.o -L/usr/lib/python2.6/config -Lbuild/temp.cygwin-1.7.9-i686-2.6
 -lnpymath -lpython2.6 -o build/lib.cygwin-1.7.9-i6
 86-2.6/numpy/core/multiarray.dll
 '''build/temp.cygwin-1.7.9-i686-2.6/libnpymath.a(ieee754.o):ieee754.c:(.rdata+0x0):
 multiple definition of `_npy__fe_dfl_en
 '''v'
 build/temp.cygwin-1.7.9-i686-2.6/numpy/core/src/multiarray/multiarraymodule_onefile.o:multiarraymodule_onefile.c:(.rdata
 +0x907c): first defined here
 collect2: ld returned 1 exit status
 build/temp.cygwin-1.7.9-i686-2.6/libnpymath.a(ieee754.o):ieee754.c:(.rdata+0x0):
 multiple definition of `_npy__fe_dfl_en
 v'
 build/temp.cygwin-1.7.9-i686-2.6/numpy/core/src/multiarray/multiarraymodule_onefile.o:multiarraymodule_onefile.c:(.rdata
 +0x907c): first defined here
 collect2: ld returned 1 exit status
 error: Command "gcc -shared -Wl,--enable-auto-image-base
 build/temp.cygwin-1.7.9-i686-2.6/numpy/core/src/multiarray/mult
 iarraymodule_onefile.o -L/usr/lib/python2.6/config
 -Lbuild/temp.cygwin-1.7.9-i686-2.6 -lnpymath -lpython2.6 -o build/lib
 .cygwin-1.7.9-i686-2.6/numpy/core/multiarray.dll" failed with exit status
 1
 }}}

 It compiles with

  {{{
  elif defined(__CYGWIN__)
    include "numpy/fenv/fenv.h"
  endif
  }}}


 The numpy.test() then throws some errors. Maybe they are related to
 {{{
 build/src.cygwin-1.7.9-i686-2.6/numpy/core/include/numpy/__ufunc_api.h:227:
 warning: '_import_umath' defined but not used
 }}}
 Replying to [comment:1 rgommers]:
 > I think the change should be
 > {{{
 > elif defined(__CYGWIN__)
 >   include "numpy/fenv/fenv.c"
 > endif
 > }}}
 >
 > Can you try if that compiles too, and run the numpy tests by doing in
 the interpreter:
 > {{{
 > import numpy
 > numpy.test()
 > }}}
 >
 > The offending commit is commit:7e18eafe

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1944#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list