Skip to content

cram_io.c:(.text+0x1700): undefined reference to `libdeflate_crc32' #16

@ZON-ZONG-MIN

Description

@ZON-ZONG-MIN

I followed the installation steps in README.md
In the last step make I get the error

[ 39%] Built target son
[ 51%] Built target lpsolve
[ 51%] Built target HTSLIB_CONFIGURED
[ 78%] Built target hts
[ 90%] Built target marginLib
[ 91%] Linking C executable allTests
/usr/bin/ld: libhts.a(cram_io.c.o): in function `itf8_decode_crc':
cram_io.c:(.text+0x1700): undefined reference to `libdeflate_crc32'
/usr/bin/ld: cram_io.c:(.text+0x17b6): undefined reference to `libdeflate_crc32'
/usr/bin/ld: cram_io.c:(.text+0x180c): undefined reference to `libdeflate_crc32'
/usr/bin/ld: cram_io.c:(.text+0x187f): undefined reference to `libdeflate_crc32'
/usr/bin/ld: cram_io.c:(.text+0x18a2): undefined reference to `libdeflate_crc32'
/usr/bin/ld: libhts.a(cram_io.c.o):cram_io.c:(.text+0x284a): more undefined references to `libdeflate_crc32' follow
/usr/bin/ld: libhts.a(bgzf.c.o): in function `bgzf_decode_func':
bgzf.c:(.text+0x4ce): undefined reference to `libdeflate_alloc_decompressor'
/usr/bin/ld: bgzf.c:(.text+0x4f2): undefined reference to `libdeflate_deflate_decompress'
/usr/bin/ld: bgzf.c:(.text+0x4fd): undefined reference to `libdeflate_free_decompressor'
/usr/bin/ld: libhts.a(bgzf.c.o): in function `bgzf_compress':
bgzf.c:(.text+0x10c4): undefined reference to `libdeflate_alloc_compressor'
/usr/bin/ld: bgzf.c:(.text+0x10ea): undefined reference to `libdeflate_deflate_compress'
/usr/bin/ld: bgzf.c:(.text+0x1103): undefined reference to `libdeflate_free_compressor'
/usr/bin/ld: bgzf.c:(.text+0x1131): undefined reference to `libdeflate_crc32'
/usr/bin/ld: bgzf.c:(.text+0x11a2): undefined reference to `libdeflate_free_compressor'
/usr/bin/ld: libhts.a(bgzf.c.o): in function `bgzf_read_block':
bgzf.c:(.text+0x22d3): undefined reference to `libdeflate_alloc_decompressor'
/usr/bin/ld: bgzf.c:(.text+0x22fb): undefined reference to `libdeflate_deflate_decompress'
/usr/bin/ld: bgzf.c:(.text+0x2306): undefined reference to `libdeflate_free_decompressor'
/usr/bin/ld: bgzf.c:(.text+0x2322): undefined reference to `libdeflate_crc32'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/allTests.dir/build.make:260: allTests] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/allTests.dir/all] Error 2
make: *** [Makefile:95: all] Error 2

what should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions