brittneybrinsfield / pysam

Automatically exported from code.google.com/p/pysam
0 stars 0 forks source link

Pysam does not compile (Cython error) #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download tar ball
2. run python setup.py build

What is the expected output? What do you see instead?
I expect it to compile. Instead I get an error message:
cythoning pysam/ctabix.pyx to pysam/ctabix.c

Error compiling Cython file:
------------------------------------------------------------
...
#########################################################
## Iterators for parsing through unindexed files.
#########################################################
cdef buildGzipError(void *gzfp):
    cdef int errnum = 0
    cdef const char *s = gzerror(gzfp, &errnum)
                   ^
------------------------------------------------------------

pysam/ctabix.pyx:799:20: Syntax error in C variable declaration
building 'pysam.ctabix' extension
creating build/temp.linux-x86_64-2.7/tabix
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE= -Itabix 
-Ipysam -I/usr/include/python2.7 -c pysam/ctabix.c -o 
build/temp.linux-x86_64-2.7/pysam/ctabix.o 
-Wno-error=declaration-after-statement
pysam/ctabix.c:1:2: error: #error Do not use this file, it is the result of a 
failed Cython compilation.
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?
Latest commit was: bb62b3d877
Operating system is Ubuntu 12.04 LTS

Please provide any additional information below.
python: 2.7.3-0ubuntu2.2
cython: 0.15.1-1ubuntu1

Original issue reported on code.google.com by oliver.s...@gmail.com on 14 Apr 2014 at 11:40

GoogleCodeExporter commented 9 years ago
Thanks. I have removed the 'const' keyword. 

Interestingly it has been compiling fine for me (cython 0.20).

Best wishes,
Andreas

Original comment by andreas....@gmail.com on 3 May 2014 at 10:49