Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error #8

Open
demis001 opened this issue Feb 15, 2020 · 1 comment
Open

Installation error #8

demis001 opened this issue Feb 15, 2020 · 1 comment

Comments

@demis001
Copy link

demis001 commented Feb 15, 2020

> make
mpicc -c -Wall -g  -DHTSLIB -I/home/demis001/include:/home/demis001/bin/htslib-1.10.2/include:/home/demis001/bin/samtools-1.10 aux.c -o aux.o
aux.c: In function ‘sam_popen’:
aux.c:230:9: error: ‘htsFile’ {aka ‘struct <anonymous>’} has no member named ‘is_kstream’; did you mean ‘is_cram’?
     fp->is_kstream = 1;
         ^~~~~~~~~~
         is_cram
aux.c:233:11: error: ‘union <anonymous>’ has no member named ‘voidp’
     fp->fp.voidp = ks_init(gzfp);
           ^
aux.c:233:28: warning: passing argument 1 of ‘ks_init’ from incompatible pointer type [-Wincompatible-pointer-types]
     fp->fp.voidp = ks_init(gzfp);
                            ^~~~
In file included from bison.h:13,
                 from aux.c:1:
aux.c:3:1: note: expected ‘gzFile’ {aka ‘struct gzFile_s *’} but argument is of type ‘BGZF *’ {aka ‘struct BGZF *’}
 KSTREAM_INIT(gzFile, gzread, 16384)
 ^

Any idea?

Make file:

WORK=/home/demis001#This should be changed to match your needs
 PREFIX = $(WORK)/bin/bison
 CC = mpicc
 HTSLIB=${WORK}/bin/htslib-1.10.2/libhts.a
 INCLUDE_DIRS = -I$(WORK)/include:${WORK}/bin/htslib-1.10.2/include:${WORK}/bin/samtools-1.10
 LIB_DIRS = -L$(WORK)/lib:${WORK}/bin/htslib-1.10.2/htslib:${WORK}/bin/samtools-1.10
 OPTS := -Wall -g #-g -DDEBUG -DNOTHROTTLE
 #MPI = -lmpich -lmpl #This is usually appropriate for mpich2
 #MPI = #This is appropriate for mvapich2
 MPI = -lmpi #This is usually appropriate for openmpi

@dpryan79
Copy link
Owner

I don't think I've tried compiling against htslib 1.10, you might have better luck with 1.8 or 1.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants