Downloading/unpacking pysam
Downloading pysam-0.7.7.tar.gz (1.5MB): 1.5MB downloaded
Running setup.py (path:/tmp/pip_build_dominik/pysam/setup.py) egg_info for package pysam
warning: no files found matching 'distribute_setup.py'
warning: no files found matching 'pysam/csamtools.c'
warning: no files found matching 'pysam/ctabix.c'
warning: no files found matching 'pysam/TabProxies.c'
warning: no files found matching 'pysam/cvcf.c'
Requirement already satisfied (use --upgrade to upgrade): cython>=0.17 in /usr/lib/python3.4/site-packages (from pysam)
Installing collected packages: pysam
Running setup.py install for pysam
Fixing build/lib.linux-x86_64-3.4/pysam/__init__.py build/lib.linux-x86_64-3.4/pysam/namedtuple.py build/lib.linux-x86_64-3.4/pysam/Pileup.py build/lib.linux-x86_64-3.4/pysam/version.py build/lib.linux-x86_64-3.4/pysam/include/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/bcftools/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/win32/__init__.py build/lib.linux-x86_64-3.4/pysam/include/tabix/__init__.py
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Fixing build/lib.linux-x86_64-3.4/pysam/__init__.py build/lib.linux-x86_64-3.4/pysam/namedtuple.py build/lib.linux-x86_64-3.4/pysam/Pileup.py build/lib.linux-x86_64-3.4/pysam/version.py build/lib.linux-x86_64-3.4/pysam/include/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/bcftools/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/win32/__init__.py build/lib.linux-x86_64-3.4/pysam/include/tabix/__init__.py
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
cythoning pysam/csamtools.pyx to pysam/csamtools.c
building 'pysam.csamtools' extension
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE= -Isamtools -Ipysam -I/usr/include/python3.4m -c pysam/csamtools.c -o build/temp.linux-x86_64-3.4/pysam/csamtools.o
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:383:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void *bam_strmap_init();
^
samtools/bam.h:398:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
bam_header_t *bam_header_init();
^
In file included from pysam/csamtools.c:354:0:
pysam/pysam_util.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void pysam_unset_stderr();
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_7Samfile_20fetch':
pysam/csamtools.c:13539:7: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type [enabled by default]
__pyx_t_5 = __Pyx_PyInt_From_int(bam_fetch(__pyx_v_self->samfile->x.bam, __pyx_v_self->index, __pyx_v_rtid, __pyx_v_rstart, __pyx_v_rend, ((void *)__pyx_v_callback), __pyx_f_5pysam_9csamtools_fetch_callback)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:644:6: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
int bam_fetch(bamFile fp, const bam_index_t *idx, int tid, int beg, int end, void *data, bam_fetch_f func);
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_7Samfile_22mate':
pysam/csamtools.c:14008:3: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type [enabled by default]
bam_fetch(__pyx_v_self->samfile->x.bam, __pyx_v_self->index, __pyx_v_read->_delegate->core.mtid, __pyx_v_read->_delegate->core.mpos, (__pyx_v_read->_delegate->core.mpos + 1), ((void *)(&__pyx_v_mate_data)), __pyx_f_5pysam_9csamtools_mate_callback);
^
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:644:6: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
int bam_fetch(bamFile fp, const bam_index_t *idx, int tid, int beg, int end, void *data, bam_fetch_f func);
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_7Samfile_24count':
pysam/csamtools.c:14525:5: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type [enabled by default]
bam_fetch(__pyx_v_self->samfile->x.bam, __pyx_v_self->index, __pyx_v_rtid, __pyx_v_rstart, __pyx_v_rend, ((void *)(&__pyx_v_counter)), __pyx_f_5pysam_9csamtools_count_callback);
^
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:644:6: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
int bam_fetch(bamFile fp, const bam_index_t *idx, int tid, int beg, int end, void *data, bam_fetch_f func);
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_7Samfile_26pileup':
pysam/csamtools.c:14979:7: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type [enabled by default]
bam_fetch(__pyx_v_self->samfile->x.bam, __pyx_v_self->index, __pyx_v_rtid, __pyx_v_rstart, __pyx_v_rend, __pyx_v_buf, __pyx_f_5pysam_9csamtools_pileup_fetch_callback);
^
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:644:6: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
int bam_fetch(bamFile fp, const bam_index_t *idx, int tid, int beg, int end, void *data, bam_fetch_f func);
^
pysam/csamtools.c: In function '__pyx_f_5pysam_9csamtools___advance_snpcalls':
pysam/csamtools.c:22036:7: warning: implicit declaration of function 'bam_prob_realn' [-Wimplicit-function-declaration]
bam_prob_realn(__pyx_v_b, __pyx_v_d->seq);
^
pysam/csamtools.c:22064:7: warning: implicit declaration of function 'bam_cap_mapQ' [-Wimplicit-function-declaration]
__pyx_v_q = bam_cap_mapQ(__pyx_v_b, __pyx_v_d->seq, __pyx_v_capQ_thres);
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_20IteratorColumnRegion_2__next__':
pysam/csamtools.c:23733:5: warning: passing argument 1 of '__pyx_f_5pysam_9csamtools_makePileupProxy' from incompatible pointer type [enabled by default]
__pyx_t_2 = __pyx_f_5pysam_9csamtools_makePileupProxy((&__pyx_v_self->__pyx_base.plp), __pyx_v_self->__pyx_base.tid, __pyx_v_self->__pyx_base.pos, __pyx_v_self->__pyx_base.n_plp); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
pysam/csamtools.c:4177:18: note: expected 'struct bam_pileup1_t **' but argument is of type 'const struct bam_pileup1_t **'
static PyObject *__pyx_f_5pysam_9csamtools_makePileupProxy(bam_pileup1_t **__pyx_v_plp, int __pyx_v_tid, int __pyx_v_pos, int __pyx_v_n) {
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_21IteratorColumnAllRefs_2__next__':
pysam/csamtools.c:24006:7: warning: passing argument 1 of '__pyx_f_5pysam_9csamtools_makePileupProxy' from incompatible pointer type [enabled by default]
__pyx_t_2 = __pyx_f_5pysam_9csamtools_makePileupProxy((&__pyx_v_self->__pyx_base.plp), __pyx_v_self->__pyx_base.tid, __pyx_v_self->__pyx_base.pos, __pyx_v_self->__pyx_base.n_plp); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
pysam/csamtools.c:4177:18: note: expected 'struct bam_pileup1_t **' but argument is of type 'const struct bam_pileup1_t **'
static PyObject *__pyx_f_5pysam_9csamtools_makePileupProxy(bam_pileup1_t **__pyx_v_plp, int __pyx_v_tid, int __pyx_v_pos, int __pyx_v_n) {
^
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE= -Isamtools -Ipysam -I/usr/include/python3.4m -c pysam/pysam_util.c -o build/temp.linux-x86_64-3.4/pysam/pysam_util.o
In file included from pysam/pysam_util.c:3:0:
samtools/bam.h:383:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void *bam_strmap_init();
^
samtools/bam.h:398:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
bam_header_t *bam_header_init();
^
In file included from pysam/pysam_util.c:6:0:
samtools/bam_endian.h:6:19: warning: function declaration isn't a prototype [-Wstrict-prototypes]
static inline int bam_is_big_endian()
^
In file included from pysam/pysam_util.c:8:0:
pysam/pysam_util.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void pysam_unset_stderr();
^
pysam/pysam_util.c:30:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void pysam_unset_stderr()
^
In file included from pysam/pysam_util.c:4:0:
samtools/khash.h:168:23: warning: function declaration isn't a prototype [-Wstrict-prototypes]
SCOPE kh_##name##_t *kh_init_##name() { \
^
samtools/khash.h:307:2: note: in expansion of macro 'KHASH_INIT2'
KHASH_INIT2(name, static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
^
samtools/khash.h:495:2: note: in expansion of macro 'KHASH_INIT'
KHASH_INIT(name, khint32_t, khval_t, 1, kh_int_hash_func, kh_int_hash_equal)
^
pysam/pysam_util.c:66:1: note: in expansion of macro 'KHASH_MAP_INIT_INT'
KHASH_MAP_INIT_INT(i, bam_binlist_t);
^
samtools/khash.h:168:23: warning: function declaration isn't a prototype [-Wstrict-prototypes]
SCOPE kh_##name##_t *kh_init_##name() { \
^
samtools/khash.h:307:2: note: in expansion of macro 'KHASH_INIT2'
KHASH_INIT2(name, static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
^
samtools/khash.h:526:2: note: in expansion of macro 'KHASH_INIT'
KHASH_INIT(name, kh_cstr_t, khval_t, 1, kh_str_hash_func, kh_str_hash_equal)
^
pysam/pysam_util.c:67:1: note: in expansion of macro 'KHASH_MAP_INIT_STR'
KHASH_MAP_INIT_STR(s, int)
^
pysam/pysam_util.c:99:19: warning: function declaration isn't a prototype [-Wstrict-prototypes]
static mempool_t *mp_init()
^
pysam/pysam_util.c: In function 'pysam_pileup_next':
pysam/pysam_util.c:196:8: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
*plp = bam_plp_next(buf->iter, tid, pos, n_plp);
^
pysam/pysam_util.c: In function 'pysam_dispatch':
pysam/pysam_util.c:340:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
int retval = 0;
^
In file included from pysam/pysam_util.h:4:0,
from pysam/pysam_util.c:8:
pysam/pysam_util.c: At top level:
samtools/kseq.h:152:16: warning: 'kseq_init' defined but not used [-Wunused-function]
SCOPE kseq_t *kseq_init(type_t fd) \
^
samtools/kseq.h:223:2: note: in expansion of macro '__KSEQ_BASIC'
__KSEQ_BASIC(SCOPE, type_t) \
^
samtools/kseq.h:226:35: note: in expansion of macro 'KSEQ_INIT2'
#define KSEQ_INIT(type_t, __read) KSEQ_INIT2(static, type_t, __read)
^
pysam/pysam_util.h:8:1: note: in expansion of macro 'KSEQ_INIT'
KSEQ_INIT(gzFile, gzread)
^
samtools/kseq.h:158:13: warning: 'kseq_destroy' defined but not used [-Wunused-function]
SCOPE void kseq_destroy(kseq_t *ks) \
^
samtools/kseq.h:223:2: note: in expansion of macro '__KSEQ_BASIC'
__KSEQ_BASIC(SCOPE, type_t) \
^
samtools/kseq.h:226:35: note: in expansion of macro 'KSEQ_INIT2'
#define KSEQ_INIT(type_t, __read) KSEQ_INIT2(static, type_t, __read)
^
pysam/pysam_util.h:8:1: note: in expansion of macro 'KSEQ_INIT'
KSEQ_INIT(gzFile, gzread)
^
samtools/kseq.h:172:12: warning: 'kseq_read' defined but not used [-Wunused-function]
SCOPE int kseq_read(kseq_t *seq) \
^
samtools/kseq.h:224:2: note: in expansion of macro '__KSEQ_READ'
__KSEQ_READ(SCOPE)
^
samtools/kseq.h:226:35: note: in expansion of macro 'KSEQ_INIT2'
#define KSEQ_INIT(type_t, __read) KSEQ_INIT2(static, type_t, __read)
^
pysam/pysam_util.h:8:1: note: in expansion of macro 'KSEQ_INIT'
KSEQ_INIT(gzFile, gzread)
^
pysam/pysam_util.c:99:19: warning: 'mp_init' defined but not used [-Wunused-function]
static mempool_t *mp_init()
^
pysam/pysam_util.c:105:13: warning: 'mp_destroy' defined but not used [-Wunused-function]
static void mp_destroy(mempool_t *mp)
^
cc1: some warnings being treated as errors
warning: pysam/csamtools.pyx:316:55: Unreachable code
warning: pysam/csamtools.pyx:322:32: Unreachable code
warning: pysam/csamtools.pyx:331:32: Unreachable code
warning: pysam/csamtools.pyx:2165:18: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: pysam/csamtools.pyx:2188:18: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: pysam/csamtools.pyx:2327:20: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: pysam/csamtools.pyx:2327:24: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_dominik/pysam/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ktckw0ld-record/install-record.txt --single-version-externally-managed --compile --user:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/pysam
copying pysam/__init__.py -> build/lib.linux-x86_64-3.4/pysam
copying pysam/namedtuple.py -> build/lib.linux-x86_64-3.4/pysam
copying pysam/Pileup.py -> build/lib.linux-x86_64-3.4/pysam
copying pysam/version.py -> build/lib.linux-x86_64-3.4/pysam
creating build/lib.linux-x86_64-3.4/pysam/include
copying pysam/include/__init__.py -> build/lib.linux-x86_64-3.4/pysam/include
creating build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/__init__.py -> build/lib.linux-x86_64-3.4/pysam/include/samtools
creating build/lib.linux-x86_64-3.4/pysam/include/samtools/bcftools
copying samtools/bcftools/__init__.py -> build/lib.linux-x86_64-3.4/pysam/include/samtools/bcftools
creating build/lib.linux-x86_64-3.4/pysam/include/samtools/win32
copying samtools/win32/__init__.py -> build/lib.linux-x86_64-3.4/pysam/include/samtools/win32
creating build/lib.linux-x86_64-3.4/pysam/include/tabix
copying tabix/__init__.py -> build/lib.linux-x86_64-3.4/pysam/include/tabix
copying pysam/ctabix.pxd -> build/lib.linux-x86_64-3.4/pysam
copying pysam/csamtools.pxd -> build/lib.linux-x86_64-3.4/pysam
copying pysam/cvcf.pxd -> build/lib.linux-x86_64-3.4/pysam
copying pysam/TabProxies.pxd -> build/lib.linux-x86_64-3.4/pysam
copying pysam/tabix_util.h -> build/lib.linux-x86_64-3.4/pysam
copying pysam/pysam_util.h -> build/lib.linux-x86_64-3.4/pysam
copying samtools/kstring.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/ksort.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/kaln.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/bam_endian.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/faidx.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/knetfile.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/sam.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/bam_tview.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/bgzf.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/pysam.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/sample.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/kseq.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/khash.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/errmod.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/bam2bcf.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/kprobaln.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/sam_header.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/razf.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/klist.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/bam.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools
copying samtools/bcftools/bcf.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools/bcftools
copying samtools/bcftools/kmin.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools/bcftools
copying samtools/bcftools/prob1.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools/bcftools
copying samtools/win32/xcurses.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools/win32
copying samtools/win32/zlib.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools/win32
copying samtools/win32/zconf.h -> build/lib.linux-x86_64-3.4/pysam/include/samtools/win32
copying tabix/kstring.h -> build/lib.linux-x86_64-3.4/pysam/include/tabix
copying tabix/ksort.h -> build/lib.linux-x86_64-3.4/pysam/include/tabix
copying tabix/bam_endian.h -> build/lib.linux-x86_64-3.4/pysam/include/tabix
copying tabix/knetfile.h -> build/lib.linux-x86_64-3.4/pysam/include/tabix
copying tabix/bgzf.h -> build/lib.linux-x86_64-3.4/pysam/include/tabix
copying tabix/pysam.h -> build/lib.linux-x86_64-3.4/pysam/include/tabix
copying tabix/kseq.h -> build/lib.linux-x86_64-3.4/pysam/include/tabix
copying tabix/tabix.h -> build/lib.linux-x86_64-3.4/pysam/include/tabix
copying tabix/khash.h -> build/lib.linux-x86_64-3.4/pysam/include/tabix
Fixing build/lib.linux-x86_64-3.4/pysam/__init__.py build/lib.linux-x86_64-3.4/pysam/namedtuple.py build/lib.linux-x86_64-3.4/pysam/Pileup.py build/lib.linux-x86_64-3.4/pysam/version.py build/lib.linux-x86_64-3.4/pysam/include/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/bcftools/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/win32/__init__.py build/lib.linux-x86_64-3.4/pysam/include/tabix/__init__.py
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Fixing build/lib.linux-x86_64-3.4/pysam/__init__.py build/lib.linux-x86_64-3.4/pysam/namedtuple.py build/lib.linux-x86_64-3.4/pysam/Pileup.py build/lib.linux-x86_64-3.4/pysam/version.py build/lib.linux-x86_64-3.4/pysam/include/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/bcftools/__init__.py build/lib.linux-x86_64-3.4/pysam/include/samtools/win32/__init__.py build/lib.linux-x86_64-3.4/pysam/include/tabix/__init__.py
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
running build_ext
cythoning pysam/csamtools.pyx to pysam/csamtools.c
building 'pysam.csamtools' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/pysam
creating build/temp.linux-x86_64-3.4/samtools
creating build/temp.linux-x86_64-3.4/samtools/bcftools
creating build/temp.linux-x86_64-3.4/samtools/misc
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE= -Isamtools -Ipysam -I/usr/include/python3.4m -c pysam/csamtools.c -o build/temp.linux-x86_64-3.4/pysam/csamtools.o
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:383:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void *bam_strmap_init();
^
samtools/bam.h:398:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
bam_header_t *bam_header_init();
^
In file included from pysam/csamtools.c:354:0:
pysam/pysam_util.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void pysam_unset_stderr();
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_7Samfile_20fetch':
pysam/csamtools.c:13539:7: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type [enabled by default]
__pyx_t_5 = __Pyx_PyInt_From_int(bam_fetch(__pyx_v_self->samfile->x.bam, __pyx_v_self->index, __pyx_v_rtid, __pyx_v_rstart, __pyx_v_rend, ((void *)__pyx_v_callback), __pyx_f_5pysam_9csamtools_fetch_callback)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:644:6: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
int bam_fetch(bamFile fp, const bam_index_t *idx, int tid, int beg, int end, void *data, bam_fetch_f func);
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_7Samfile_22mate':
pysam/csamtools.c:14008:3: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type [enabled by default]
bam_fetch(__pyx_v_self->samfile->x.bam, __pyx_v_self->index, __pyx_v_read->_delegate->core.mtid, __pyx_v_read->_delegate->core.mpos, (__pyx_v_read->_delegate->core.mpos + 1), ((void *)(&__pyx_v_mate_data)), __pyx_f_5pysam_9csamtools_mate_callback);
^
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:644:6: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
int bam_fetch(bamFile fp, const bam_index_t *idx, int tid, int beg, int end, void *data, bam_fetch_f func);
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_7Samfile_24count':
pysam/csamtools.c:14525:5: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type [enabled by default]
bam_fetch(__pyx_v_self->samfile->x.bam, __pyx_v_self->index, __pyx_v_rtid, __pyx_v_rstart, __pyx_v_rend, ((void *)(&__pyx_v_counter)), __pyx_f_5pysam_9csamtools_count_callback);
^
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:644:6: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
int bam_fetch(bamFile fp, const bam_index_t *idx, int tid, int beg, int end, void *data, bam_fetch_f func);
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_7Samfile_26pileup':
pysam/csamtools.c:14979:7: warning: passing argument 7 of 'bam_fetch' from incompatible pointer type [enabled by default]
bam_fetch(__pyx_v_self->samfile->x.bam, __pyx_v_self->index, __pyx_v_rtid, __pyx_v_rstart, __pyx_v_rend, __pyx_v_buf, __pyx_f_5pysam_9csamtools_pileup_fetch_callback);
^
In file included from pysam/csamtools.c:351:0:
samtools/bam.h:644:6: note: expected 'bam_fetch_f' but argument is of type 'int (*)(struct bam1_t *, void *)'
int bam_fetch(bamFile fp, const bam_index_t *idx, int tid, int beg, int end, void *data, bam_fetch_f func);
^
pysam/csamtools.c: In function '__pyx_f_5pysam_9csamtools___advance_snpcalls':
pysam/csamtools.c:22036:7: warning: implicit declaration of function 'bam_prob_realn' [-Wimplicit-function-declaration]
bam_prob_realn(__pyx_v_b, __pyx_v_d->seq);
^
pysam/csamtools.c:22064:7: warning: implicit declaration of function 'bam_cap_mapQ' [-Wimplicit-function-declaration]
__pyx_v_q = bam_cap_mapQ(__pyx_v_b, __pyx_v_d->seq, __pyx_v_capQ_thres);
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_20IteratorColumnRegion_2__next__':
pysam/csamtools.c:23733:5: warning: passing argument 1 of '__pyx_f_5pysam_9csamtools_makePileupProxy' from incompatible pointer type [enabled by default]
__pyx_t_2 = __pyx_f_5pysam_9csamtools_makePileupProxy((&__pyx_v_self->__pyx_base.plp), __pyx_v_self->__pyx_base.tid, __pyx_v_self->__pyx_base.pos, __pyx_v_self->__pyx_base.n_plp); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
pysam/csamtools.c:4177:18: note: expected 'struct bam_pileup1_t **' but argument is of type 'const struct bam_pileup1_t **'
static PyObject *__pyx_f_5pysam_9csamtools_makePileupProxy(bam_pileup1_t **__pyx_v_plp, int __pyx_v_tid, int __pyx_v_pos, int __pyx_v_n) {
^
pysam/csamtools.c: In function '__pyx_pf_5pysam_9csamtools_21IteratorColumnAllRefs_2__next__':
pysam/csamtools.c:24006:7: warning: passing argument 1 of '__pyx_f_5pysam_9csamtools_makePileupProxy' from incompatible pointer type [enabled by default]
__pyx_t_2 = __pyx_f_5pysam_9csamtools_makePileupProxy((&__pyx_v_self->__pyx_base.plp), __pyx_v_self->__pyx_base.tid, __pyx_v_self->__pyx_base.pos, __pyx_v_self->__pyx_base.n_plp); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
pysam/csamtools.c:4177:18: note: expected 'struct bam_pileup1_t **' but argument is of type 'const struct bam_pileup1_t **'
static PyObject *__pyx_f_5pysam_9csamtools_makePileupProxy(bam_pileup1_t **__pyx_v_plp, int __pyx_v_tid, int __pyx_v_pos, int __pyx_v_n) {
^
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE= -Isamtools -Ipysam -I/usr/include/python3.4m -c pysam/pysam_util.c -o build/temp.linux-x86_64-3.4/pysam/pysam_util.o
In file included from pysam/pysam_util.c:3:0:
samtools/bam.h:383:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void *bam_strmap_init();
^
samtools/bam.h:398:2: warning: function declaration isn't a prototype [-Wstrict-prototypes]
bam_header_t *bam_header_init();
^
In file included from pysam/pysam_util.c:6:0:
samtools/bam_endian.h:6:19: warning: function declaration isn't a prototype [-Wstrict-prototypes]
static inline int bam_is_big_endian()
^
In file included from pysam/pysam_util.c:8:0:
pysam/pysam_util.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void pysam_unset_stderr();
^
pysam/pysam_util.c:30:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void pysam_unset_stderr()
^
In file included from pysam/pysam_util.c:4:0:
samtools/khash.h:168:23: warning: function declaration isn't a prototype [-Wstrict-prototypes]
SCOPE kh_##name##_t *kh_init_##name() { \
^
samtools/khash.h:307:2: note: in expansion of macro 'KHASH_INIT2'
KHASH_INIT2(name, static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
^
samtools/khash.h:495:2: note: in expansion of macro 'KHASH_INIT'
KHASH_INIT(name, khint32_t, khval_t, 1, kh_int_hash_func, kh_int_hash_equal)
^
pysam/pysam_util.c:66:1: note: in expansion of macro 'KHASH_MAP_INIT_INT'
KHASH_MAP_INIT_INT(i, bam_binlist_t);
^
samtools/khash.h:168:23: warning: function declaration isn't a prototype [-Wstrict-prototypes]
SCOPE kh_##name##_t *kh_init_##name() { \
^
samtools/khash.h:307:2: note: in expansion of macro 'KHASH_INIT2'
KHASH_INIT2(name, static inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
^
samtools/khash.h:526:2: note: in expansion of macro 'KHASH_INIT'
KHASH_INIT(name, kh_cstr_t, khval_t, 1, kh_str_hash_func, kh_str_hash_equal)
^
pysam/pysam_util.c:67:1: note: in expansion of macro 'KHASH_MAP_INIT_STR'
KHASH_MAP_INIT_STR(s, int)
^
pysam/pysam_util.c:99:19: warning: function declaration isn't a prototype [-Wstrict-prototypes]
static mempool_t *mp_init()
^
pysam/pysam_util.c: In function 'pysam_pileup_next':
pysam/pysam_util.c:196:8: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
*plp = bam_plp_next(buf->iter, tid, pos, n_plp);
^
pysam/pysam_util.c: In function 'pysam_dispatch':
pysam/pysam_util.c:340:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
int retval = 0;
^
In file included from pysam/pysam_util.h:4:0,
from pysam/pysam_util.c:8:
pysam/pysam_util.c: At top level:
samtools/kseq.h:152:16: warning: 'kseq_init' defined but not used [-Wunused-function]
SCOPE kseq_t *kseq_init(type_t fd) \
^
samtools/kseq.h:223:2: note: in expansion of macro '__KSEQ_BASIC'
__KSEQ_BASIC(SCOPE, type_t) \
^
samtools/kseq.h:226:35: note: in expansion of macro 'KSEQ_INIT2'
#define KSEQ_INIT(type_t, __read) KSEQ_INIT2(static, type_t, __read)
^
pysam/pysam_util.h:8:1: note: in expansion of macro 'KSEQ_INIT'
KSEQ_INIT(gzFile, gzread)
^
samtools/kseq.h:158:13: warning: 'kseq_destroy' defined but not used [-Wunused-function]
SCOPE void kseq_destroy(kseq_t *ks) \
^
samtools/kseq.h:223:2: note: in expansion of macro '__KSEQ_BASIC'
__KSEQ_BASIC(SCOPE, type_t) \
^
samtools/kseq.h:226:35: note: in expansion of macro 'KSEQ_INIT2'
#define KSEQ_INIT(type_t, __read) KSEQ_INIT2(static, type_t, __read)
^
pysam/pysam_util.h:8:1: note: in expansion of macro 'KSEQ_INIT'
KSEQ_INIT(gzFile, gzread)
^
samtools/kseq.h:172:12: warning: 'kseq_read' defined but not used [-Wunused-function]
SCOPE int kseq_read(kseq_t *seq) \
^
samtools/kseq.h:224:2: note: in expansion of macro '__KSEQ_READ'
__KSEQ_READ(SCOPE)
^
samtools/kseq.h:226:35: note: in expansion of macro 'KSEQ_INIT2'
#define KSEQ_INIT(type_t, __read) KSEQ_INIT2(static, type_t, __read)
^
pysam/pysam_util.h:8:1: note: in expansion of macro 'KSEQ_INIT'
KSEQ_INIT(gzFile, gzread)
^
pysam/pysam_util.c:99:19: warning: 'mp_init' defined but not used [-Wunused-function]
static mempool_t *mp_init()
^
pysam/pysam_util.c:105:13: warning: 'mp_destroy' defined but not used [-Wunused-function]
static void mp_destroy(mempool_t *mp)
^
cc1: some warnings being treated as errors
warning: pysam/csamtools.pyx:316:55: Unreachable code
warning: pysam/csamtools.pyx:322:32: Unreachable code
warning: pysam/csamtools.pyx:331:32: Unreachable code
warning: pysam/csamtools.pyx:2165:18: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: pysam/csamtools.pyx:2188:18: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: pysam/csamtools.pyx:2327:20: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: pysam/csamtools.pyx:2327:24: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_dominik/pysam/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ktckw0ld-record/install-record.txt --single-version-externally-managed --compile --user failed with error code 1 in /tmp/pip_build_dominik/pysam
Storing debug log for failure in /home/dominik/.pip/pip.log
Edit: I am sorry, I forgot to write that I use Arch Linux, Python 3.4 and gcc 4.8.2!