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

yarn tauri dev failed(Apple Silicon M1) #1167

Closed
niannings opened this issue Jan 30, 2021 · 12 comments
Closed

yarn tauri dev failed(Apple Silicon M1) #1167

niannings opened this issue Jan 30, 2021 · 12 comments

Comments

@niannings
Copy link

Describe the bug
yarn tauri dev failed。

Platform and Versions (please complete the following information):

OS: macos big sur 11.1 (cpu is Apple Silicon M1)
Node: v15.7.0
NPM: 7.4.3
Yarn: 1.22.10
Rustc: 1.49.0

Error info

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-arch" "arm64" "-L" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.1768eirlr6h1fv7n.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.1hhz0vo3jwrr7cfj.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.1hnwetv60khlz5up.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.1kc46lxeo25z3bsz.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.1ouwt5blk09j95s8.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.1wzh74sxzgqfrand.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.1z7jxyyl2mtodldr.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.2434tx58kkktbs80.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.2f3x8agbmi54zx7y.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.2fb6qikqmmff9e96.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.34uv0sbedvqbzrzk.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.36j64o6q2gtoonv4.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.385675vyiiv0rzl7.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.38v3fu6aq99ha68e.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.3a5scv9m2ft5l8li.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.3gtph169gzjy794v.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.3j2td0tmbdc9oad8.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.3pw5i3gn2v30i6g0.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.49g4mz8xcvlo8gz7.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.4b2x9vt81vcwfnyw.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.4fn6mysmflu199to.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.4pu4ljhbvdrdj13g.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.53ezxtxw53i7g5uz.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.56hitmzu4rpza43v.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.5bxnbpnp31igmvmu.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.5c6hdeclclzcyupc.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.5fthe1na1y6m4zs2.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.hx5wborhot6tqsx.rcgu.o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.mso28dgh6uidqkc.rcgu.o" "-o" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/esop_fe.1tr832eiavqyrxi4.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps" "-L" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/build/nfd-be0c84c2c473ebf0/out" "-L" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/build/mac-notification-sys-a7e1c366da5eb068/out" "-L" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/build/tauri-dialog-sys-df249c58816a8635/out" "-L" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/build/bzip2-sys-0792d5f907961d0b/out/lib" "-L" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/build/webview-official-sys-6dd9967b5c038854/out" "-L" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtauri-9edf2d1f9778bac2.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libwebbrowser-a943fda478bcd93c.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libbase64-5324993b3ac213e4.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libenvmnt-2aea8cf7cd200761.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libfsio-6891d6ec2728e563.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libindexmap-d84992fb0672ec18.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libhashbrown-f11aab5440b41c40.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/liburlencoding-c994b87cd83651ef.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libthreadpool-df5e31ea51d2a380.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libuuid-76e699b067fc94ba.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtauri_api-89387d65a55fe20b.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libnotify_rust-11c5e54fd71c6e52.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libmac_notification_sys-b5979e37cdb5c61e.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libdirs-52d471c545072ed2.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libobjc_foundation-b9728c367125a544.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libblock-b0175ca8416b29b5.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libobjc_id-dd5d60228e45c65e.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libobjc-2d4f140fdbab585f.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libmalloc_buf-fb8d12aead679b2c.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libchrono-8770618f631f0cdd.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libnum_integer-ad3d24c380e2a8e1.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libnum_traits-60953b5354ff891f.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libdirs_next-37ae44a445e1ef41.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libdirs_sys_next-3eaba1a0493c3185.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libzip-be39edf41659f1ea.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtime-09a71b8fe699acb6.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libbzip2-0f5d9f7d737f100e.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libbzip2_sys-cb02e197f492ebfc.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libbyteorder-fbd54910b7a4a915.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtar-642da187df05038b.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libxattr-b65be0a70e5e8e56.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libfiletime-18572874942fe38a.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libsemver-011df772e92f4e4c.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libsemver_parser-fa169267f83e085b.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libpest-fa50458a09897e88.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libucd_trie-38611e293fadc1ba.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/librand-ff28e106698802f2.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/librand_pcg-298b71cbd199d733.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/librand_chacha-32de8d0f8751886c.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/librand_core-16a4201522ad5fef.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libgetrandom-f95042018e428ae4.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libattohttpc-2810b31914a55ab4.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libserde_urlencoded-43a60fba0834c7b7.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libdtoa-dca8991456f3ed86.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/liblog-ba9a52d38ccfde45.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libnative_tls-ca4dd0f59a35c371.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libsecurity_framework-dd12e88aa963d462.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libbitflags-9f1c1e3b07a00417.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libsecurity_framework_sys-5fa0455fa33ff452.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libcore_foundation-9264037cb408968a.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libcore_foundation_sys-f0fe6290d6b75541.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libwildmatch-b1b15bee02979d12.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libflate2-5d33d2b175574fb6.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libminiz_oxide-59562e83704f4751.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libadler32-1b7794f90bc26a6f.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libcrc32fast-463dc79229a3beba.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libhttp-123e1f8eab6dbd2f.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libbytes-f29df921279562a3.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libfnv-4db63b93616379ca.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/liburl-dde1eb4c33ebf204.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libidna-65339606d794f92d.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libunicode_normalization-f3678f7e8e0a2095.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtinyvec-7e877d3db67a82b9.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtinyvec_macros-18968677d3721ebb.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libunicode_bidi-0c5d551069b76509.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libform_urlencoded-4c8ce5f61f91f2c9.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libpercent_encoding-3b36db03d518f827.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libmatches-c3e4ce7674012ab0.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtempfile-c0c39770046d7259.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/librand-34f2f7e80723f3ce.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/librand_chacha-9241761bcf3cf734.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libppv_lite86-77a6a537157e24dd.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/librand_core-71273ac7f23509ad.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libgetrandom-d21b8c921560a0ca.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libremove_dir_all-6e94340314b206cd.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtauri_dialog-066e3983ad0eeecc.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtauri_dialog_sys-ed0764a360be336f.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libnfd-c654c43bb45e6bbd.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libtauri_utils-50e36c40ace16603.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libthiserror-5ef90ff9e7a28aa7.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libsysinfo-0d9fe4ef7ff1c963.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libdoc_comment-57fd79df864e7a06.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/librayon-a29b345d528eee94.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/librayon_core-dca802c1472212b9.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libnum_cpus-b1d28f46bcd62684.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libcrossbeam_deque-d527cacab265d8a7.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libcrossbeam_epoch-67e4006724304f82.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libmemoffset-ef6cf02fc63a7b13.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libscopeguard-bc4540b14f2dd2fa.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libcrossbeam_channel-47dc8615e3063151.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libcrossbeam_utils-06a48fc587b4a918.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libcfg_if-3cf55d3b1f262bb5.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libeither-27926173c90b0fc9.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/liblibc-ce28469f87ffb556.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libcfg_if-a678137cc29aede2.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libanyhow-0c6d6a486596233a.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libwebview_official-3171a2afb3275a79.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libwebview_official_sys-42af29c4df3acdc7.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libserde_json-89134f1395470533.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libryu-8f41c26b98c64081.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libitoa-0b6a32a98a9feba4.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libonce_cell-adc5edf7495e0ff9.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/liblazy_static-09260e36393089cb.rlib" "/Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libserde-f2bb0c03bba34006.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-66c007ef72d8663e.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-a9451d2661722154.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-762dc53d4ee196bf.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-8574628b478a5c23.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-81d5bba5f99dc60c.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2ca8284befe9e594.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-b6e7b0a96c79838a.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-a91baa24b7903563.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-be586febb1d2abe5.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-91703e117e420011.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-8293d4970e524cf2.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-59ea5e5ce6eb23cb.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-92186cf5c5d5835d.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-80a2abfc52170c57.rlib" "/Users/tywl/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-e46c25039c9cecae.rlib" "-framework" "Foundation" "-lSystem" "-lobjc" "-framework" "Security" "-framework" "CoreFoundation" "-framework" "Cocoa" "-framework" "AppKit" "-framework" "IOKit" "-framework" "CoreFoundation" "-framework" "Cocoa" "-framework" "WebKit" "-lc++" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: in /Users/tywl/Desktop/workspace/fe/esop-fe-tools/src-tauri/target/debug/deps/libnfd-c654c43bb45e6bbd.rlib(nfd_common.o), archive member 'nfd_common.o' with length 7856 is not mach-o or llvm bitcode for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: aborting due to previous error
@sanket143
Copy link
Contributor

I was facing this same issue, can you check out this thread.
rust-lang/rust#25289

I'm not sure how the issue got resolved but I was after I updated the Xcode Command-line tools and then xcode-select --install.

@nothingismagick
Copy link
Sponsor Member

So, I cannot replicate. I have an M1 (I migrated a working macOS installation with the official migration tool) and everything just works.

@nothingismagick
Copy link
Sponsor Member

I am closing this issue. If the xcode-select --install solution still doesn't work for you, then please feel free to reopen.

@sanket143
Copy link
Contributor

sanket143 commented Feb 13, 2021

ok I faced this issue again when I changed my project branch and removing the target/ folder from src-tauri seems to be the solution if xcode-select --install does not help.

EDIT: Alright, I faced this again, and now I solved it by doing cargo clean and cargo build in src-tauri/ before doing npm run tauri dev.

@jimliang
Copy link

I get the same problem. But cannot fix if using xcode-select --install

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-arch" "arm64" "-L" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.11opiyodt0a3sa6y.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.13z5zvtow6itauy0.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.17z50lk1vlcn3nrv.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.19rgnty34v53f0sp.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.1kxr65pbbolhzffr.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.1p9153quiqan5hxt.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.1szlmgt3oo12kukb.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.2pl0b60mx8r7alfo.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.2qoh0bzaxjteijp0.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.322cn8dmwut3884b.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.364hcl3w81gq3598.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.3fewsmto1uqgckw8.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.3he9o9upbr364su4.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.3i4arkl13im3r1ie.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.3kh9x3ystjfnmzml.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.45qgaw05k9r6tvn5.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.47uwr9q5ycvx3hxo.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.4at07vc192ndqz25.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.4ltl4063t5bkwd1h.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.4mzj1aehc2lw34rv.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.4spx6vq9ryfw2nrp.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.4uqunx25rvj7je3.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.5clnpp69kca2lb70.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.6jqnrtlv63vldlv.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.c5v567jqytscwqa.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.cw2d6cu2xk6g625.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.ihoqfyar91kruvj.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.u1k17wmaqx3a0va.rcgu.o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.z29mpbc8bz7wua9.rcgu.o" "-o" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/app.1vrwqr6285ipiymy.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps" "-L" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/build/nfd-e97541036b3ea30d/out" "-L" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/build/mac-notification-sys-7842f3aa3e8681bf/out" "-L" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/build/tauri-dialog-sys-e6a44236185191a0/out" "-L" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/build/bzip2-sys-efe091d9b815a51c/out/lib" "-L" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/build/webview-official-sys-6a5b1ba29de5d4e7/out" "-L" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtauri-25b1f3899b7d1e12.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libwebbrowser-11e214f5f547eadf.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libbase64-de8d05b918ccb611.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libenvmnt-64ea1c944a8b0244.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libfsio-15a105ba4c47dd85.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libindexmap-a44a663d5f5d08c0.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libhashbrown-73e2d8b6fd4f2742.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/liburlencoding-0173251be3ae05e1.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libthreadpool-09e3df9c44f3ffce.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libuuid-7dbe6de3b78a75db.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtauri_api-c84063c228a1a480.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libnotify_rust-b7e3f1d272b71f91.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libmac_notification_sys-7be802bc911bb43e.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libdirs-bbf961da5fc6d3d7.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libobjc_foundation-9b1bf1a4250889ea.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libblock-8edd609bdaf86e5f.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libobjc_id-4b95710a40cb98a2.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libobjc-44c7f2ea63711f40.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libmalloc_buf-43985cfd538299a2.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libchrono-a37c43ea3538153c.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libnum_integer-e8ae3f5da2d3b26d.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libnum_traits-dcb33ad8179c8ac3.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libdirs_next-90b3a902d6494132.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libdirs_sys_next-35dc87ec45db749c.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libzip-c11cf62c6301f895.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtime-393aa3a8e386ccd9.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libbzip2-6a42a877bfe59812.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libbzip2_sys-73f8d5a5e80509dc.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libbyteorder-2f840f7f34f04e30.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtar-ff4940627d358b30.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libxattr-26df80513449eb22.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libfiletime-67d1c415f8e0a8a1.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libsemver-cb3f8e9e1781aa1d.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libsemver_parser-3c253e84d99865d6.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libpest-c3056d45bcb8071d.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libucd_trie-0898088458637f85.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/librand-84b47bfd0856a9b0.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/librand_pcg-48a90963a34472ce.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/librand_chacha-ed4c1183bf645528.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/librand_core-eac1e50971b3ed0f.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libgetrandom-47108ca5d531b622.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libattohttpc-3097b5974d5cf0a5.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libserde_urlencoded-f779882810c963c9.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libdtoa-2682dda67c499a91.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/liblog-d2fdff2414a23fbd.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libnative_tls-60312d8de1b18f1a.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libsecurity_framework-142f117bb4748ba3.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libbitflags-9d000d1597c6bc0f.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libsecurity_framework_sys-d553ed0320fc828c.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libcore_foundation-a387eb41ce1d1b02.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libcore_foundation_sys-5d68f55c7578a7ff.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libwildmatch-5bdda335eaa81faf.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libflate2-3483c23b86fdb8cb.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libminiz_oxide-75d265e14d209ebb.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libadler32-a8d42e3294787e8e.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libcrc32fast-5f9af3c20cb24cd8.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libhttp-0b951b552c72dbc1.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libbytes-9d08d4c39ff84144.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libfnv-98b0a0f47888aae5.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/liburl-62da3a38655dc99a.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libidna-9dd2d73f46b3d66b.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libunicode_normalization-bf2914e4cbc9d062.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtinyvec-08a60aa605c03185.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtinyvec_macros-9f8fe4df8321627e.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libunicode_bidi-4a1f879e0bd1d32b.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libform_urlencoded-9b372e1743075898.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libpercent_encoding-f6e66e7f50c2c64b.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libmatches-2746eb83abb31408.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtempfile-da85261fe0d9363e.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/librand-1f6d4e0595b27a89.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/librand_chacha-b64a6843f8739dff.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libppv_lite86-2cee7f4971ba0fb0.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/librand_core-9b0a3674fedc1b13.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libgetrandom-ac30dff3dd551c35.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libremove_dir_all-2b2ba9471f8d3d0f.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtauri_dialog-71209e2edfb17266.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtauri_dialog_sys-3357b28975d1bdb0.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libnfd-a0e811c0b14159a0.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libtauri_utils-ee38f3c907111dfd.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libthiserror-fec47df34a750c48.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libsysinfo-14594ca795d38050.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libdoc_comment-ad6f25d2cab1bb20.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/librayon-4efc3672c9ac6696.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/librayon_core-b4f20c763a2c86d2.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libnum_cpus-3c72a62ba9a05c17.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libcrossbeam_deque-a5f3e4fb055bce46.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libcrossbeam_epoch-831531b975e9894c.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libmemoffset-1b4d479ab939030a.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libscopeguard-86253c0fa73cf958.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libcrossbeam_channel-4f64d23ced6486ab.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libcrossbeam_utils-4ed11b77a522a638.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libcfg_if-2dda720e92180d79.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libeither-0f8759a5571fbf25.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/liblibc-d084e30e504acde0.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libcfg_if-d77218a56c1ed3a6.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libanyhow-00555d462b74f1b7.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libwebview_official-94d96f5254b2236e.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libwebview_official_sys-c9988214a8e2d6f7.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libserde_json-9462e4ab3fd23fa8.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libryu-afd953fbfbc2c3e1.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libitoa-be9745e418d9deca.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libonce_cell-9debba3aa429e0e3.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/liblazy_static-82efbd8e8b6b5f68.rlib" "/Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libserde-0252cd067548ed64.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-4fd25413b74d20e3.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-4093bd203c10624e.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-f45c7025a69df1bd.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-cf2375957eb39a3f.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-4210ac727b0705e6.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-025249368dff388f.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-a087b48b313b6ad8.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-c3fa16abaccbb2a6.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-6080543c8f905d22.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-662cdb96cedf0408.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-bd53174b300ae6ae.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-420e674e9024b12b.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-59337757ce77d920.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-a5fe7cb42ec76820.rlib" "/Users/jimliang/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4c15a2bfaf9e46b5.rlib" "-framework" "Foundation" "-lSystem" "-lobjc" "-framework" "Security" "-framework" "CoreFoundation" "-framework" "Cocoa" "-framework" "AppKit" "-framework" "IOKit" "-framework" "CoreFoundation" "-framework" "Cocoa" "-framework" "WebKit" "-lc++" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: in /Users/jimliang/projects/baidupcs-helper/src-tauri/target/debug/deps/libnfd-a0e811c0b14159a0.rlib(nfd_common.o), archive member 'nfd_common.o' with length 7984 is not mach-o or llvm bitcode for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

@nothingismagick
Copy link
Sponsor Member

Can you see if this solves your problem @jimliang:
#1150 (comment)

@jimliang
Copy link

Can you see if this solves your problem @jimliang:
#1150 (comment)

Thanks your help. But I did and not work.

@pannous
Copy link

pannous commented Feb 19, 2021

another issue on Mac M1:

$ /Users/me/dev/script/js/tauri/node_modules/.bin/tauri dev
[tauri]: running dev
node:internal/modules/cjs/loader:1150
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: dlopen(/Users/me/dev/script/js/node_modules/canvas/build/Release/canvas.node, 1): no suitable image found.  Did find:
	/Users/me/dev/script/js/node_modules/canvas/build/Release/canvas.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
	/Users/me/dev/script/js/node_modules/canvas/build/Release/canvas.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1150:18)
    at Module.load (node:internal/modules/cjs/loader:971:32)
    at Function.Module._load (node:internal/modules/cjs/loader:812:14)
    at Module.require (node:internal/modules/cjs/loader:995:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/Users/me/dev/script/js/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1091:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1120:10)
    at Module.load (node:internal/modules/cjs/loader:971:32)
    at Function.Module._load (node:internal/modules/cjs/loader:812:14) {
  code: 'ERR_DLOPEN_FAILED'
}
error Command failed with exit code 1.

It's an .ELF file, how did that slip into the aarch64 environment?

@nothingismagick
Copy link
Sponsor Member

@pannous - this does not seem related to Tauri at all. Please file your issue over at https://github.com/Automattic/node-canvas

@nklayman
Copy link
Member

Well the error came up after running tauri dev, so it is related to Tauri somehow. However, as the next release won't use the js cli, this won't be an issue.

@morphytronx
Copy link

morphytronx commented Feb 16, 2022

Received a linking error while compiling for fltk on my Apple laptop M1. After reconfiguring my cargo.toml, it still failed on the same link error as above. The below script worked for me.

cargo clean
cargo build --target=x86_64-apple-darwin

@nothingismagick
Copy link
Sponsor Member

That's a great find @morphytronx and something we should add to our troubleshooting docs!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants