nanopolish icon indicating copy to clipboard operation
nanopolish copied to clipboard

Cannot install: many warnings

Open ZabalaAitor opened this issue 1 year ago • 14 comments

Hi,

I tried to install as recommended:

git clone --recursive `https://github.com/jts/nanopolish.git`
cd nanopolish
make

and I obtained many warnings. Example:

file_image.c:27:58: note: in expansion of macro ‘FAIL_PUTS_Endition)) FAIL_PUTS_ERROR(string) } while(0)
      |                                                          ^~~~~~~~~~~~~~~
file_image.c:1135:5: note: in expansion of macro ‘VERIFY’
 1135 |     VERIFY(image_size == -1, "H5Fget_file_image(5) succeeded.");
      |     ^~~~~~
../src/H5private.h:1539:14: warning: ISO C90 does not support ‘__func__’ predefined identifier [-Wpedantic]
 1539 | #define FUNC __func__
      |              ^~~~~~~~
h5test.h:90:53: note: in expansion of macro ‘FUNC’
   90 |                                 __FILE__, __LINE__, FUNC);
      |                                                     ^~~~
h5test.h:111:42: note: in expansion of macro ‘AT’
  111 | #define FAIL_PUTS_ERROR(s) {H5_FAILED(); AT(); puts(s); goto error;}
      |                                          ^~
file_image.c:27:58: note: in expansion of macro ‘FAIL_PUTS_ERROR’
   27 | #define VERIFY(condition, string) do { if (!(condition)) FAIL_PUTS_ERROR(string) } while(0)

the code is finished like this:

gcc -g -Wall -O2 -fvisibility=hidden -I.  -fpic -c -o htscodecs/htscodecs/tokenise_name3.pico htscodecs/htscodecs/tokenise_name3.c
gcc -shared -Wl,-soname,libhts.so.3 -fvisibility=hidden -o libhts.so kfunc.pico kstring.pico bcf_sr_sort.pico bgzf.pico errmod.pico faidx.pico header.pico hfile.pico hts.pico hts_expr.pico hts_os.pico md5.pico multipart.pico probaln.pico realn.pico regidx.pico region.pico sam.pico synced_bcf_reader.pico vcf_sweep.pico tbx.pico textutils.pico thread_pool.pico vcf.pico vcfutils.pico cram/cram_codecs.pico cram/cram_decode.pico cram/cram_encode.pico cram/cram_external.pico cram/cram_index.pico cram/cram_io.pico cram/cram_stats.pico cram/mFILE.pico cram/open_trace_file.pico cram/pooled_alloc.pico cram/string_alloc.pico htscodecs/htscodecs/arith_dynamic.pico htscodecs/htscodecs/fqzcomp_qual.pico htscodecs/htscodecs/htscodecs.pico htscodecs/htscodecs/pack.pico htscodecs/htscodecs/rANS_static4x16pr.pico htscodecs/htscodecs/rANS_static.pico htscodecs/htscodecs/rle.pico htscodecs/htscodecs/tokenise_name3.pico -lz -lm -lbz2 -lpthread
/usr/bin/ld: cannot find -lbz2: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:316: libhts.so] Error 1
make[1]: Leaving directory '/home/marcos/aitor/methylation_tools/nanopolish/htslib'
make: *** [Makefile:139: htslib/libhts.a] Error 255

I tried also installing with conda. In these way, when I used nanopolish I obtained this:

nanopolish: error while loading shared libraries: libhdf5.so.10: cannot open shared object file: No such file or directory

Any suggestion?

Thanks.

Aitor Zabala

ZabalaAitor avatar Dec 26 '22 11:12 ZabalaAitor