demuxlet icon indicating copy to clipboard operation
demuxlet copied to clipboard

Install dependency problem with htslib

Open ppaxisa opened this issue 4 years ago • 2 comments

I have managed to install demuxlet in the past but when trying to install on a another server recently the make step gave me an error for demuxlet. I found out that it's linked to an update of htslib. When I reverted to an older commit of htslib of January 23rd 2020 (commit ecf021604a34063cd16a4518976c6d716b87beae) I was able to install demuxlet successfully.

ppaxisa avatar Mar 27 '20 13:03 ppaxisa

Thanks @ppaxisa - rolling back to that commit works when building demuxlet on centos7.

rmarable avatar Apr 27 '20 04:04 rmarable

When building against htslib-1.10.2, I see the following error:

/bin/sh ./libtool --tag=CXX --mode=link g++ -g -O2 -o demuxlet Error.o PhredHelper.o params.o hts_utils.o bcf_ordered_reader.o interval.o interval_tree.o utils.o genome_interval.o reference_sequence.o bcf_chunked_reader.o genomeChunk.o sam_filtered_reader.o sc_drop_seq.o bcf_filtered_reader.o filter.o tsv_reader.o cmd_cram_demuxlet.o ../htslib/libhts.a -lpthread -llzma -lz -lbz2 -lgomp -lcurl -lcrypto -lz
libtool: link: g++ -g -O2 -o demuxlet Error.o PhredHelper.o params.o hts_utils.o bcf_ordered_reader.o interval.o interval_tree.o utils.o genome_interval.o reference_sequence.o bcf_chunked_reader.o genomeChunk.o sam_filtered_reader.o sc_drop_seq.o bcf_filtered_reader.o filter.o tsv_reader.o cmd_cram_demuxlet.o ../htslib/libhts.a -lpthread -llzma -lbz2 -lgomp -lcurl -lcrypto -lz
filter.o: In function `ks_resize':
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
filter.o:/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: more undefined references to `ks_resize2(kstring_t*, unsigned long)' follow
collect2: error: ld returned 1 exit status
make[1]: *** [demuxlet] Error 1
make[1]: Leaving directory `/local_scratch/__pkgInstaller/demuxlet'
make: *** [all] Error 2
/bin/sh ./libtool --tag=CXX --mode=link g++ -g -O2 -o demuxlet Error.o PhredHelper.o params.o hts_utils.o bcf_ordered_reader.o interval.o interval_tree.o utils.o genome_interval.o reference_sequence.o bcf_chunked_reader.o genomeChunk.o sam_filtered_reader.o sc_drop_seq.o bcf_filtered_reader.o filter.o tsv_reader.o cmd_cram_demuxlet.o ../htslib/libhts.a -lpthread -llzma -lz -lbz2 -lgomp -lcurl -lcrypto -lz
libtool: link: g++ -g -O2 -o demuxlet Error.o PhredHelper.o params.o hts_utils.o bcf_ordered_reader.o interval.o interval_tree.o utils.o genome_interval.o reference_sequence.o bcf_chunked_reader.o genomeChunk.o sam_filtered_reader.o sc_drop_seq.o bcf_filtered_reader.o filter.o tsv_reader.o cmd_cram_demuxlet.o ../htslib/libhts.a -lpthread -llzma -lbz2 -lgomp -lcurl -lcrypto -lz
filter.o: In function `ks_resize':
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: undefined reference to `ks_resize2(kstring_t*, unsigned long)'
filter.o:/local_scratch/__pkgInstaller/demuxlet/../htslib/htslib/kstring.h:149: more undefined references to `ks_resize2(kstring_t*, unsigned long)' follow
collect2: error: ld returned 1 exit status
make: *** [demuxlet] Error 1

rmarable avatar Apr 27 '20 04:04 rmarable