hydra icon indicating copy to clipboard operation
hydra copied to clipboard

build failure on rhel7 python 3.10.4 gcc 9.4.1

Open xloem opened this issue 3 years ago • 2 comments

gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/shared/src/Hydra/src -I/usr/local/include/python3.10 -c src/_hydra.c -o build/temp.linux-x86_64-3.10/src
/_hydra.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE                                                                                                                                                
src/_hydra.c: In function ‘__pyx_pf_6_hydra_8MMapIter_2__next__’:                                                                                                                             
src/_hydra.c:3377:36: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘Py_ssize_t’ {aka ‘long int’} [-Wsign-compare]               
 3377 |   __pyx_t_3 = ((__pyx_v_self->_idx < __pyx_t_2) != 0);                                                                                                                                
      |                                    ^                                                   
src/_hydra.c: In function ‘__pyx_tp_dealloc_6_hydra_MMapBitField’:                                                                                                                            
src/_hydra.c:7445:5: error: lvalue required as increment operand                                                                                                                              
 7445 |     ++Py_REFCNT(o);                                                                    
      |     ^~                                                                                                                                                                                
src/_hydra.c:7447:5: error: lvalue required as decrement operand                           
 7447 |     --Py_REFCNT(o);                                                                    
      |     ^~                                                                                                                                                                                
src/_hydra.c: In function ‘PyInit__hydra’:                                                                                                                                                    
src/_hydra.c:8530:34: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
 8530 |   __pyx_type_6_hydra_MMapBitField.tp_print = 0;                                                                                                                                       

xloem avatar Aug 17 '22 13:08 xloem

this looks similar, it says to upgrade cython and regenerate the file: https://github.com/mcfletch/pyopengl/issues/74

xloem avatar Aug 17 '22 13:08 xloem

any ideas how to do that?

this looks similar, it says to upgrade cython and regenerate the file: mcfletch/pyopengl#74

ThisisBillhe avatar May 28 '24 08:05 ThisisBillhe