minimap2-rs icon indicating copy to clipboard operation
minimap2-rs copied to clipboard

Difficulty building on M1 mac

Open rob-p opened this issue 1 year ago • 2 comments

Hi @jguhlin,

I encounter the following error when attempting to include the minimap2-rs crate when building on OSX on an M1 Mac (MacOS 13.4):

  = note: ld: warning: directory not found for option '-L/Users/rob/software_src/oarfish/target/release/build/libz-sys-388cc2f2b07c10b2/out/lib64'
          Undefined symbols for architecture arm64:
            "_gzclose", referenced from:
                _mm_bseq_close in libminimap2_sys-4b0173a9259d886d.rlib(aa1d8596991defc1-bseq.o)
            "_gzdopen", referenced from:
                _mm_bseq_open in libminimap2_sys-4b0173a9259d886d.rlib(aa1d8596991defc1-bseq.o)
            "_gzopen", referenced from:
                _mm_bseq_open in libminimap2_sys-4b0173a9259d886d.rlib(aa1d8596991defc1-bseq.o)
            "_gzread", referenced from:
                _ks_getuntil2 in libminimap2_sys-4b0173a9259d886d.rlib(aa1d8596991defc1-bseq.o)
                _kseq_read in libminimap2_sys-4b0173a9259d886d.rlib(aa1d8596991defc1-bseq.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Have you seen anything like this before? Any idea why the relevant libz functions might not be found?

Thanks!

rob-p avatar Aug 26 '24 16:08 rob-p