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 issue #78

Open
cjhong opened this issue Dec 7, 2020 · 2 comments
Open

installation issue #78

cjhong opened this issue Dec 7, 2020 · 2 comments

Comments

@cjhong
Copy link

cjhong commented Dec 7, 2020

I have a copy of htlib (1.11) and demuxlet from gituhub in a directory.
I compiled/link htlib successfully.
When I run 'make' for demux, I got this error message. Need your help. Thank you

In file included from hts_utils.h:42,
from hts_utils.cpp:24:
hts_utils.cpp:53:23: error: invalid use of incomplete type ‘const faidx_t’ {aka ‘const struct faidx_t’}
53 | val = kh_value(fai->hash, iter);
| ^~
../htslib/htslib/khash.h:549:26: note: in definition of macro ‘kh_value’
549 | #define kh_value(h, x) ((h)->vals[x])
| ^
In file included from hts_utils.h:47,
from hts_utils.cpp:24:
../htslib/htslib/faidx.h:69:8: note: forward declaration of ‘faidx_t’ {aka ‘struct faidx_t’}
69 | struct faidx_t;
| ^~~~~~~
hts_utils.cpp:61:29: error: invalid use of incomplete type ‘const faidx_t’ {aka ‘const struct faidx_t’}
61 | int ret = bgzf_useek(fai->bgzf, val.offset + p_beg_i / val.line_blen * val.line_len + p_beg_i % val.line_blen, SEEK_SET);
| ^~
In file included from hts_utils.h:47,
from hts_utils.cpp:24:
../htslib/htslib/faidx.h:69:8: note: forward declaration of ‘faidx_t’ {aka ‘struct faidx_t’}
69 | struct faidx_t;
| ^~~~~~~
hts_utils.cpp:70:29: error: invalid use of incomplete type ‘const faidx_t’ {aka ‘const struct faidx_t’}
70 | while ( (c=bgzf_getc(fai->bgzf))>=0 && l < p_end_i - p_beg_i + 1)
| ^~
In file included from hts_utils.h:47,
from hts_utils.cpp:24:
../htslib/htslib/faidx.h:69:8: note: forward declaration of ‘faidx_t’ {aka ‘struct faidx_t’}
69 | struct faidx_t;
| ^~~~~~~
make[1]: *** [Makefile:507: hts_utils.o] Error 1

@Gvaihir
Copy link
Contributor

Gvaihir commented Dec 9, 2020

htslib 1.11 is not supported. Please use earlier releases (1.10.2)

@hyunminkang
Copy link
Contributor

I pushed a change that solves the compatibility issue with latest htslib (1.11). Let me know if the problem persists.

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

3 participants