Closed kingzcheung closed 2 years ago
I got error on my macbook m1.
error: linking with `cc` failed: exit status: 1 | = note: "cc" "-arch" "arm64" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.15y0mxaisygeybv4.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.16iynio6ure42lyx.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.1c0oi8mrf0degq2t.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.1ner4ngc0suidgfd.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.1r95aynkrsipxt9r.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.1vv4ed0ctn2rvdgx.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.2exg089oh2acxtky.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.2jydhusom7z0qvrb.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.2nxg59rqggu3e9bm.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.2op2z2qcimz5jqo6.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.2utg5l6dwbejz0la.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.359gjbd38ok5ohpz.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.3fo5oeaadvbggb3z.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.3ig2w098c8pg1k72.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.42m8dwm7d1dwehkd.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.4ldb0bo6cgv8aedq.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.4qlttl83bb0ye7gv.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.4vdk8serce0swo7t.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.50p0on0z6dv0lfq3.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.52nouuc1sh0dvjzc.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.54l75eewhw4t7dy.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.ky72hj9gysvajjv.rcgu.o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0.17gubvxp0bq6hj0e.rcgu.o" "-L" "/Users/kingzcheung/rust/tris/target/debug/deps" "-L" "/opt/homebrew/Cellar/faiss/1.7.2/lib" "-L" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/kingzcheung/rust/tris/target/debug/deps/libfaiss-18908e24c0be1756.rlib" "/Users/kingzcheung/rust/tris/target/debug/deps/libfaiss_sys-103c102dfb14c0d0.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0dd069df8d91d43f.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-7cbaf788dfce5d66.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-af5296f79b444c55.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-f15ae47b27e6c368.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-3e9ec6def1f5cffe.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-302f1e935cf05b0d.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-bb4e9f007ffeee2c.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-c9d4bbaea0812982.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-69fbf5632ee1531d.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-d0d3793083fe7a23.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-e9688be92d7fdfea.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-1a07d2235b647a42.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-f4705be43877013e.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-218bb6979b4b9957.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-5f8d5e70b747a13a.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-8a2a692899862816.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-b8205ba56f89023d.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-76ce7e0c1f6d7b3f.rlib" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4014697324d67e93.rlib" "-lfaiss_c" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/kingzcheung/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/kingzcheung/rust/tris/target/debug/deps/faiss_demo-3d8cabe14327e0d0" "-Wl,-dead_strip" "-nodefaultlibs" = note: Undefined symbols for architecture arm64: "_faiss_Index_is_trained", referenced from: _$LT$faiss..index..IndexImpl$u20$as$u20$faiss..index..Index$GT$::is_trained::hb658f6bf133d59b5 in libfaiss-18908e24c0be1756.rlib(faiss-18908e24c0be1756.faiss.5cda5eee-cgu.2.rcgu.o) "_faiss_get_last_error", referenced from: faiss::error::NativeError::from_last_error::h8c9f45b5d85d2050 in libfaiss-18908e24c0be1756.rlib(faiss-18908e24c0be1756.faiss.5cda5eee-cgu.7.rcgu.o) "_faiss_Index_free", referenced from: _$LT$faiss..index..IndexImpl$u20$as$u20$core..ops..drop..Drop$GT$::drop::heaac5513632449a0 in libfaiss-18908e24c0be1756.rlib(faiss-18908e24c0be1756.faiss.5cda5eee-cgu.2.rcgu.o) "_faiss_index_factory", referenced from: faiss::index::index_factory::hbcd8721430e299d8 in faiss_demo-3d8cabe14327e0d0.42m8dwm7d1dwehkd.rcgu.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I got error on my macbook m1.