[Cython] q re environment for successful test suite run

James C. McPherson James.McPherson at oracle.com
Mon Nov 7 02:05:25 EST 2016


Hi all,
I'm building Cython 0.24.1 for Solaris and I'm finding it
difficult to get the test suite to run successfully.

I've tried several different versions of gcc (4.9, 5.3, 5.4)
and Solaris Studio (12.4), but to no avail.

For starters, here's the first lot of errors from gcc 5.4
in 32bit mode against python2.7:


warning: 
BUILD/inline/_cython_inline_d1a30658ebea82281640c5ea0e1db57e.pyx:6:4: 
Unreachable code
warning: 
BUILD/inline/_cython_inline_121fdd47c08e20991f90b2566f9a1705.pyx:6:4: 
Unreachable code
warning: 
BUILD/inline/_cython_inline_a938867fe92f83497d786ebdab9e4e1d.pyx:7:4: 
Unreachable code
BUILD/inline/_cython_inline_a938867fe92f83497d786ebdab9e4e1d.c: In 
function '__pyx_pf_5numpy_7ndarray___getbuffer__':
BUILD/inline/_cython_inline_a938867fe92f83497d786ebdab9e4e1d.c:1522:50: 
error: 'NPY_C_CONTIGUOUS' undeclared (first use in this function)
    __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 
0)) != 0);
                                                   ^
BUILD/inline/_cython_inline_a938867fe92f83497d786ebdab9e4e1d.c:1522:50: 
note: each undeclared identifier is reported only once for each function 
it appears in
BUILD/inline/_cython_inline_a938867fe92f83497d786ebdab9e4e1d.c:1586:50: 
error: 'NPY_F_CONTIGUOUS' undeclared (first use in this function)
    __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 
0)) != 0);
                                                   ^

When you run the test suite, what combination of compiler(s),
python interpreter(s) and CFLAGS/CXXFLAGS are used?


Thankyou in advance,
James C. McPherson
--
Oracle
Systems / Solaris / Core
https://www.jmcpdotcom.com/blog


More information about the cython-devel mailing list