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

macOS M1 compiling error #14

Open
jianshu93 opened this issue Apr 16, 2023 · 1 comment
Open

macOS M1 compiling error #14

jianshu93 opened this issue Apr 16, 2023 · 1 comment

Comments

@jianshu93
Copy link

Hello Team,

I have compiling error on my M1 MacBook Pro:

warning: unused variable: i
--> src/me.rs:41:14
|
41 | for (i, count) in self.quartet_pattern_counts.iter().enumerate() {
| ^ help: if this is intentional, prefix it with an underscore: _i
|
= note: #[warn(unused_variables)] on by default

warning: value assigned to target_read_seq is never read
--> src/tag.rs:180:17
|
180 | let mut target_read_seq = String::new();
| ^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
= note: #[warn(unused_assignments)] on by default

warning: value assigned to target_ref_seq is never read
--> src/tag.rs:181:17
|
181 | let mut target_ref_seq = String::new();
| ^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?

error: linking with cc failed: exit status: 1
|
= note: LC_ALL="C" PATH="/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/jianshuzhao/miniconda3/condabin:/Users/jianshuzhao/Github/bowtie2-2.5.0-macos-arm64:/opt/homebrew/bin:/Users/jianshuzhao/bin:/opt/homebrew/opt/bzip2/bin:/Users/jianshuzhao/Github/mummer-4.0.0beta5/bin:/Users/jianshuzhao/go/bin:/Users/jianshuzhao/Github/hmmer-h3-arm/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/Cellar/coreutils/9.1/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/jianshuzhao/.cargo/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/opt/X11/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mr/8qybn91j5fgdbrcdmq7ckftw0000gn/T/rustcll67kX/symbols.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.0.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.1.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.10.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.11.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.12.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.13.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.14.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.15.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.2.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.3.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.4.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.5.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.6.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.7.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.8.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.metheor.561f884f-cgu.9.rcgu.o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467.3yv2gu0h4xu5bhlb.rcgu.o" "-L" "/Users/jianshuzhao/Github/metheor/target/release/deps" "-L" "/Users/jianshuzhao/Github/metheor/target/release/build/hts-sys-83070af6d8f8cdd1/out" "-L" "/Users/jianshuzhao/Github/metheor/target/release/build/libz-sys-a35a44e768290f1f/out/lib" "-L" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libmetheor-51853234744ad2e6.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libindicatif-4ce108a83f16fbbe.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libconsole-e34478993a61c7e7.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libterminal_size-3cfb34f20c7c49da.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libnumber_prefix-6bfca70a357266ef.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/librand-a86e415522284826.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/librand_chacha-21337ae0dbee2d5a.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libppv_lite86-0f923c878d002a70.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/librand_core-1a2d9e3418aebe97.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libgetrandom-dbdb31b2a408391c.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libcfg_if-0692cee5d0087e61.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libitertools-6d6b032ba143324f.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libeither-4e75df5e24197e15.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/librust_htslib-6d50cecf178cf1ea.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libhts_sys-30f214de24a6c356.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/liblibz_sys-977e0389b85adc1b.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libieee754-d9a5bc22b3ffafd5.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/liburl-4dd628c0671e01fc.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libidna-f03c07a49ac481d4.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libunicode_normalization-a0e2e971ed29053b.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libtinyvec-578cef4b7f7be158.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libtinyvec_macros-b04713a4a486580f.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libunicode_bidi-e31b0e7e02283d3f.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libform_urlencoded-09ac049f1e0ab7bf.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libpercent_encoding-6d4988b06f6c0563.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libmatches-9e5ddf4ae59475db.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libbio_types-deb50b889908fbcf.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libthiserror-3905235ce943b1d3.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libbyteorder-feb8a6d8cd38719b.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libregex-eb234dc4aa72db7d.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libaho_corasick-a71f4d101a88a0cb.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libmemchr-b9afceb11d89c5ca.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libregex_syntax-37daa5846bec1b7a.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/liblinear_map-4838a86b7e655dab.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/liblazy_static-ebd75cc0f36ef66d.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libnewtype_derive-6fa9e09451ee14e9.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libcustom_derive-1f51536ac455317f.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libclap-caf72f098a9bf682.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libatty-ed264e4880171121.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/liblibc-8b68b267d7147c4b.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libstrsim-90b63ed9f828463f.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libtermcolor-ff0126ae5373e748.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libtextwrap-f45d8d20080186bf.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libclap_lex-7b691335eb9c31c0.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libos_str_bytes-0d3eded880d8d113.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libindexmap-cb088934ecb46261.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libhashbrown-fe8315aebe5807ae.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libbitflags-2bbfbfade6407190.rlib" "/Users/jianshuzhao/Github/metheor/target/release/deps/libonce_cell-5383e829d857c9fc.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-d5a3f57504f7a14f.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-aaf4ac3c521012c9.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-cd42e1b658cd7f92.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-0a8461be627e45e2.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-97072f876dfd4d7b.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-09fc9571a9cc504b.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-d1904e7690a7173c.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-9935599dae7bb88b.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-a56ab59688d684a4.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-cdb24b6480b438e1.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-76654c2e9596f21f.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-868acc5dc881c98f.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-f2d65ef668c8a2cb.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-0116381dd066fd23.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-5f66eee729a1c2a5.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-6a2598ea62c3cf2b.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a8a859a864856684.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-908209eee60fb642.rlib" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-8442c7e70a5ccb57.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/jianshuzhao/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/jianshuzhao/Github/metheor/target/release/deps/metheor-4efa23aba41ec467" "-Wl,-dead_strip" "-nodefaultlibs"
= note: Undefined symbols for architecture arm64:
"___emutls_get_address", referenced from:
_crc32 in liblibz_sys-977e0389b85adc1b.rlib(crc32_braid.c.o)
_lm_set_level in liblibz_sys-977e0389b85adc1b.rlib(deflate.c.o)
_deflateResetKeep in liblibz_sys-977e0389b85adc1b.rlib(deflate.c.o)
_deflate in liblibz_sys-977e0389b85adc1b.rlib(deflate.c.o)
_read_buf in liblibz_sys-977e0389b85adc1b.rlib(deflate.c.o)
_fill_window in liblibz_sys-977e0389b85adc1b.rlib(deflate.c.o)
inflateInit2 in liblibz_sys-977e0389b85adc1b.rlib(inflate.c.o)
...
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status

warning: metheor (bin "metheor") generated 3 warnings
error: could not compile metheor (bin "metheor") due to previous error; 3 warnings emitted

Any idea why, it seems no problems on x86 linux.

Thanks,

Jianshu

@dohlee
Copy link
Owner

dohlee commented Apr 16, 2023

Hi! Could you please give me more details about the command used for compilation?

Also it would be great to know your current environment for Rust development. Could you share the results from rustc --version and cargo --version?

Best,
Dohoon

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

2 participants