toeverything / AFFiNE

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
https://affine.pro
Other
42.05k stars 2.75k forks source link

build desktop error on windows 11 #1235

Closed himself65 closed 1 year ago

himself65 commented 1 year ago
"C:\Program Files\nodejs\pnpm.cmd" run dev:app

> @affine/client-app@0.0.0 dev:app C:\Users\himse\Code\AFFiNE\apps\desktop
> cross-env NODE_ENV=development tauri dev

     Running BeforeDevCommand (`pnpm dev:web`)

> @affine/client-app@0.0.0 dev:web C:\Users\himse\Code\AFFiNE\apps\desktop
> pnpm --filter @affine/app dev

> @affine/app@ dev C:\Users\himse\Code\AFFiNE\apps\web
> next dev -p 8080

Runtime Preset { enableIndexedDBProvider: true, prefetchWorkspace: true }
NEXT_PUBLIC_FIREBASE_API_KEY found
ready - started server on 0.0.0.0:8080, url: http://localhost:8080
info  - Loaded env from C:\Users\himse\Code\AFFiNE\apps\web\.env.local
Runtime Preset { enableIndexedDBProvider: true, prefetchWorkspace: true }
NEXT_PUBLIC_FIREBASE_API_KEY found
warn  - You have enabled experimental feature (swcPlugins) in next.config.mjs.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

        Info Watching C:\Users\himse\Code\AFFiNE\apps\desktop\src-tauri for changes...
API request proxy to [dev Server]: 100.84.105.99:11001
warning: Patch `rust-embed v6.4.2 (https://github.com/pyrossh/rust-embed?rev=7c0fc42#7c0fc42f)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
warn  - ../../node_modules/.pnpm/i18next-fs-backend@2.1.1/node_modules/i18next-fs-backend/cjs/readFile.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
../../node_modules/.pnpm/i18next-fs-backend@2.1.1/node_modules/i18next-fs-backend/cjs/readFile.js
../../node_modules/.pnpm/i18next-fs-backend@2.1.1/node_modules/i18next-fs-backend/cjs/index.js
../../node_modules/.pnpm/next-i18next@13.1.5_bg7jjkaccux6nc4ytmt5ximfry/node_modules/next-i18next/dist/commonjs/createClient/node.js
../../node_modules/.pnpm/next-i18next@13.1.5_bg7jjkaccux6nc4ytmt5ximfry/node_modules/next-i18next/dist/commonjs/appWithTranslation.js
../../node_modules/.pnpm/next-i18next@13.1.5_bg7jjkaccux6nc4ytmt5ximfry/node_modules/next-i18next/dist/commonjs/index.js       
../../packages/i18n/src/index.ts

../../node_modules/.pnpm/i18next-fs-backend@2.1.1/node_modules/i18next-fs-backend/cjs/readFile.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
../../node_modules/.pnpm/i18next-fs-backend@2.1.1/node_modules/i18next-fs-backend/cjs/readFile.js
../../node_modules/.pnpm/i18next-fs-backend@2.1.1/node_modules/i18next-fs-backend/cjs/index.js
../../node_modules/.pnpm/next-i18next@13.1.5_bg7jjkaccux6nc4ytmt5ximfry/node_modules/next-i18next/dist/commonjs/createClient/node.js
../../node_modules/.pnpm/next-i18next@13.1.5_bg7jjkaccux6nc4ytmt5ximfry/node_modules/next-i18next/dist/commonjs/appWithTranslation.js
../../node_modules/.pnpm/next-i18next@13.1.5_bg7jjkaccux6nc4ytmt5ximfry/node_modules/next-i18next/dist/commonjs/index.js       
../../packages/i18n/src/index.ts
   Compiling ring v0.16.20
   Compiling serde v1.0.151
   Compiling thiserror v1.0.37
   Compiling futures-util v0.3.25
   Compiling tokio v1.23.0
   Compiling cssparser v0.27.2
   Compiling pin-project v1.0.12
   Compiling html5ever v0.25.2
   Compiling parking_lot_core v0.8.6
   Compiling hashlink v0.8.1
   Compiling tracing-attributes v0.1.23
   Compiling sha2 v0.10.6
   Compiling darling_macro v0.13.4
   Compiling libsqlite3-sys v0.24.2
   Compiling parking_lot v0.11.2
   Compiling num-bigint v0.4.3
   Compiling rustls-pemfile v1.0.1
   Compiling iana-time-zone v0.1.53
   Compiling stringprep v0.1.2
   Compiling crossbeam-channel v0.5.6
   Compiling phf v0.8.0
   Compiling crossbeam-utils v0.8.14
   Compiling atoi v1.0.0
   Compiling memoffset v0.7.1
   Compiling thread_local v1.1.4
   Compiling paste v1.0.9
   Compiling markup5ever v0.10.1
   Compiling selectors v0.22.0
   Compiling alloc-no-stdlib v2.0.4
   Compiling hex v0.4.3
   Compiling async-trait v0.1.60                            
   Compiling sea-query-derive v0.2.0                        
   Compiling indexmap v1.9.2                                
   Compiling chrono v0.4.23                                 
   Compiling flume v0.10.14                                 
   Compiling futures-channel v0.3.25                        
   Compiling futures-intrusive v0.4.2                       
   Compiling alloc-stdlib v0.2.2                            
   Compiling parking_lot v0.12.1                            
   Compiling crossbeam-queue v0.3.8                         
   Compiling time v0.3.17                                   
   Compiling parking_lot_core v0.9.5
   Compiling regex-automata v0.1.10                         
   Compiling crossbeam-epoch v0.9.13                        
   Compiling uuid v0.8.2                                    
   Compiling fastrand v1.8.0                                
   Compiling rustversion v1.0.9                             
   Compiling overload v0.1.1                                
   Compiling nu-ansi-term v0.46.0                           
   Compiling brotli-decompressor v2.3.2                     
error: failed to run custom build command for `ring v0.16.20`

Caused by:
  process didn't exit successfully: `C:\Users\himse\Code\AFFiNE\apps\desktop\src-tauri\target\debug\build\ring-4f5b847dfbbd92d4\build-script-build` (exit code: 101)
  --- stdout
  OPT_LEVEL = Some("0")
  TARGET = Some("x86_64-pc-windows-gnu")
  HOST = Some("x86_64-pc-windows-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-pc-windows-gnu
  CC_x86_64-pc-windows-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_pc_windows_gnu
  CC_x86_64_pc_windows_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-gnu
  CFLAGS_x86_64-pc-windows-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_gnu
  CFLAGS_x86_64_pc_windows_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")

  --- stderr
  running "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-I" "include" "
-Wall" "-Wextra" "-std=c1x" "-Wbad-function-cast" "-Wnested-externs" "-Wstrict-prototypes" "-pedantic" "-pedantic-errors" "-Wal
l" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pc
h" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" 
"-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-g3" "-DNDEBUG" "-c" "-oC:\\Users\\
himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\ring-b044efcaed958833\\out\\aes_nohw.o" "crypto/fipsmodule/aes/aes_nohw.c"
  gcc.exe: fatal error: cannot execute 'as': CreateProcess: No such file or directory
  compilation terminated.
  thread 'main' panicked at 'execution failed', C:\Users\himse\.cargo\registry\src\github.com-1ecc6299db9ec823\ring-0.16.20\build.rs:656:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--h
igh-entropy-va" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\
\rsbegin.o" "C:\\Users\\himse\\AppData\\Local\\Temp\\rustc5iMGXW\\symbols.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\sr
c-tauri\\target\\debug\\build\\memoffset-714f7c7888789d28\\build_script_build-714f7c7888789d28.build_script_build.a7bdabf9-cgu.
0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\memoffset-714f7c7888789d28\\build_sc
ript_build-714f7c7888789d28.build_script_build.a7bdabf9-cgu.1.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri
\\target\\debug\\build\\memoffset-714f7c7888789d28\\build_script_build-714f7c7888789d28.build_script_build.a7bdabf9-cgu.2.rcgu.
o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\memoffset-714f7c7888789d28\\build_script_bu
ild-714f7c7888789d28.build_script_build.a7bdabf9-cgu.3.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\targe
t\\debug\\build\\memoffset-714f7c7888789d28\\build_script_build-714f7c7888789d28.build_script_build.a7bdabf9-cgu.4.rcgu.o" "C:\
\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\memoffset-714f7c7888789d28\\build_script_build-714
f7c7888789d28.build_script_build.a7bdabf9-cgu.5.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debu
g\\build\\memoffset-714f7c7888789d28\\build_script_build-714f7c7888789d28.20p3gutkyeei5l05.rcgu.o" "-L" "C:\\Users\\himse\\Code
\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-
gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target
\\debug\\deps\\libautocfg-979cfd13982a8161.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rus
tlib\\x86_64-pc-windows-gnu\\lib\\libstd-a73802b277b8e653.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-window
s-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libpanic_unwind-b58cdaac8171c254.rlib" "C:\\Users\\himse\\.rustup\\toolchains\
\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libobject-d08779a03ea819f2.rlib" "C:\\Users\\himse\\.r
ustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libmemchr-e0af7175c5b3f4bd.rlib" "C:
\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libaddr2line-6d52d
94befc8840f.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\li
b\\libgimli-4a08728bb43f7f3e.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-p
c-windows-gnu\\lib\\librustc_demangle-cabbabd1fb98ae23.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-g
nu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd_detect-9e6f2a8e1c9b8033.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stab
le-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libhashbrown-d69df6007b729193.rlib" "C:\\Users\\himse\\.rus
tup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libminiz_oxide-01377e8ce16592c7.rlib" 
"C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libadler-55ef25
959858fd57.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib
\\librustc_std_workspace_alloc-2472e5240618b585.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib
\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunwind-2afe724482cf62fa.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-p
c-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcfg_if-48b872d5a2bb0096.rlib" "C:\\Users\\himse\\.rustup\\toolchain
s\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-dee7a4d657e124bd.rlib" "C:\\Users\\himse\\.r
ustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-4f26e328114b6510.rlib" "C:\
\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_worksp
ace_core-9848a62a497bd0b7.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-w
indows-gnu\\lib\\libcore-4c56368b40b44789.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rust
lib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-82abfd2e7a4dff39.rlib" "-Wl,-Bdynamic" "-lkernel32" "-ladvapi32" "-lusere
nv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-lus
er32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x8
6_64-pc-windows-gnu\\lib" "-o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\memoffset-714f7
c7888789d28\\build_script_build-714f7c7888789d28.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: collect2.exe: fatal error: cannot find 'ld'
          compilation terminated.

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-Wl,C:\\Users\\himse\\AppData\\Local\\Temp\\rustck4pEoi\\list.def" "-fno-use-linker-plugin"
 "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\\Users\\himse\\.rustup\\toolchains\\sta
ble-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "C:\\Users\\himse\\AppData\\Local\\Temp\\rustck
4pEoi\\symbols.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a
57dd.sea_query_derive.8d5c08d1-cgu.0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\se
a_query_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.1.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tau
ri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.10.rcgu.o" "C:\\Users\\himse\\Code\\AF
FiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.11.rcgu.o"
 "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.sea_query_de
rive.8d5c08d1-cgu.12.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-7
14be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.13.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\deb
ug\\deps\\sea_query_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.14.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\des
ktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.15.rcgu.o" "C:\\Users\\hi
mse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-c
gu.2.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.
sea_query_derive.8d5c08d1-cgu.3.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_que
ry_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.4.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\t
arget\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.5.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\
apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.6.rcgu.o" "C:\\U
sers\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.sea_query_derive.8d
5c08d1-cgu.7.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7
a8a57dd.sea_query_derive.8d5c08d1-cgu.8.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\
\sea_query_derive-714be0be7a8a57dd.sea_query_derive.8d5c08d1-cgu.9.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-
tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.3ujd63313d3ia4jm.rcgu.rmeta" "C:\\Users\\himse\\Code\\AFFiNE\\app
s\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.20c2mnz6g7qf8sxb.rcgu.o" "-L" "C:\\Users\\himse\\
Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-wind
ows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\ta
rget\\debug\\deps\\libthiserror-d215271c7489a1d1.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug
\\deps\\libsyn-aa4b1d2d4eac2d9f.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libquote-
6d7ae62e4380144b.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libproc_macro2-97e5949d6
8aa890b.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libunicode_ident-bb6c7ca8832c7d92
.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libproc_
macro-5d617c0aca87d40b.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libheck-ef28b70918
70723e.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libunicode_segmentation-964b6051c2
b7fa1b.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\li
bstd-a73802b277b8e653.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windo
ws-gnu\\lib\\libpanic_unwind-b58cdaac8171c254.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\
rustlib\\x86_64-pc-windows-gnu\\lib\\libobject-d08779a03ea819f2.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-
windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libmemchr-e0af7175c5b3f4bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\
\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libaddr2line-6d52d94befc8840f.rlib" "C:\\Users\\himse\
\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libgimli-4a08728bb43f7f3e.rlib" "
C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_demangl
e-cabbabd1fb98ae23.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-
gnu\\lib\\libstd_detect-9e6f2a8e1c9b8033.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustl
ib\\x86_64-pc-windows-gnu\\lib\\libhashbrown-d69df6007b729193.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-wi
ndows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libminiz_oxide-01377e8ce16592c7.rlib" "C:\\Users\\himse\\.rustup\\toolchai
ns\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libadler-55ef25959858fd57.rlib" "C:\\Users\\himse\\
.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_alloc-2472e
5240618b585.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\li
b\\libunwind-2afe724482cf62fa.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-
pc-windows-gnu\\lib\\libcfg_if-48b872d5a2bb0096.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib
\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-dee7a4d657e124bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-
windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-4f26e328114b6510.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\
stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_core-9848a62a497bd0b7.rlib" "C:\
\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-4c56368b40b
44789.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\lib
compiler_builtins-82abfd2e7a4dff39.rlib" "-Wl,-Bdynamic" "-lkernel32" "-ladvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcryp
t" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" 
"-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-o" "C:\\
Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\sea_query_derive-714be0be7a8a57dd.dll" "-Wl,--gc-sec
tions" "-shared" "-Wl,--out-implib=C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libsea_query_
derive-714be0be7a8a57dd.dll.a" "-nodefaultlibs" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: collect2.exe: fatal error: cannot find 'ld'
          compilation terminated.

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--h
igh-entropy-va" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\
\rsbegin.o" "C:\\Users\\himse\\AppData\\Local\\Temp\\rustcrmQg5w\\symbols.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\sr
c-tauri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cg
u.0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\buil
d_script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.1.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-t
auri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.1
0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_
script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.11.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-ta
uri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.12
.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_s
cript_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.13.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tau
ri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.14.
rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_sc
ript_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.15.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-taur
i\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.2.rc
gu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_scri
pt_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.3.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\
target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.4.rcgu.
o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_
build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.5.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\tar
get\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.6.rcgu.o" 
"C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_bui
ld-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.7.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target
\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.8.rcgu.o" "C:
\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-
76ef360a5a4e4fa0.build_script_build.801a1d34-cgu.9.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\d
ebug\\build\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.a1rtcq4bxm1g1yo.rcgu.o" "-L" "C:\\Users\\himse\\
Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-wind
ows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-wind
ows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-a73802b277b8e653.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable
-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libpanic_unwind-b58cdaac8171c254.rlib" "C:\\Users\\himse\\.ru
stup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libobject-d08779a03ea819f2.rlib" "C:\
\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libmemchr-e0af7175c
5b3f4bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\l
ibaddr2line-6d52d94befc8840f.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-p
c-windows-gnu\\lib\\libgimli-4a08728bb43f7f3e.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\
rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_demangle-cabbabd1fb98ae23.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x8
6_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd_detect-9e6f2a8e1c9b8033.rlib" "C:\\Users\\himse\\.rustup\
\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libhashbrown-d69df6007b729193.rlib" "C:\\U
sers\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libminiz_oxide-01377e
8ce16592c7.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib
\\libadler-55ef25959858fd57.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc
-windows-gnu\\lib\\librustc_std_workspace_alloc-2472e5240618b585.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc
-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunwind-2afe724482cf62fa.rlib" "C:\\Users\\himse\\.rustup\\toolchains
\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcfg_if-48b872d5a2bb0096.rlib" "C:\\Users\\himse\\.
rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-dee7a4d657e124bd.rlib" "C:\
\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-4f26e32811
4b6510.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\li
brustc_std_workspace_core-9848a62a497bd0b7.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rus
tlib\\x86_64-pc-windows-gnu\\lib\\libcore-4c56368b40b44789.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windo
ws-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-82abfd2e7a4dff39.rlib" "-Wl,-Bdynamic" "-lkernel32" "-la
dvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc"
 "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\
\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build
\\rustversion-76ef360a5a4e4fa0\\build_script_build-76ef360a5a4e4fa0.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: collect2.exe: fatal error: cannot find 'ld'
          compilation terminated.

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--h
igh-entropy-va" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\
\rsbegin.o" "C:\\Users\\himse\\AppData\\Local\\Temp\\rustcwZMeMD\\symbols.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\sr
c-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_build.681c34a
3-cgu.0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9
e9\\build_script_build-2cec7818587ba9e9.build_script_build.681c34a3-cgu.1.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\deskto
p\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_build.68
1c34a3-cgu.10.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818
587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_build.681c34a3-cgu.11.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\
\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_b
uild.681c34a3-cgu.12.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2
cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_build.681c34a3-cgu.13.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE
\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_s
cript_build.681c34a3-cgu.14.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-
epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_build.681c34a3-cgu.15.rcgu.o" "C:\\Users\\himse\\Code\
\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.
build_script_build.681c34a3-cgu.2.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\cros
sbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_build.681c34a3-cgu.3.rcgu.o" "C:\\Users\\himse\\
Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587b
a9e9.build_script_build.681c34a3-cgu.4.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\
\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_build.681c34a3-cgu.5.rcgu.o" "C:\\Users\\hi
mse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec781
8587ba9e9.build_script_build.681c34a3-cgu.6.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\b
uild\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_build.681c34a3-cgu.7.rcgu.o" "C:\\User
s\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2c
ec7818587ba9e9.build_script_build.681c34a3-cgu.8.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\deb
ug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9.build_script_build.681c34a3-cgu.9.rcgu.o" "C:\
\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_bui
ld-2cec7818587ba9e9.4chw3aqp2vekl5np.rcgu.o" "-L" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\dep
s" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-B
static" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libautocfg-979cfd13982a8161.rlib" "C:\\
Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-a73802b277b8e
653.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libpa
nic_unwind-b58cdaac8171c254.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc
-windows-gnu\\lib\\libobject-d08779a03ea819f2.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\
rustlib\\x86_64-pc-windows-gnu\\lib\\libmemchr-e0af7175c5b3f4bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-
windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libaddr2line-6d52d94befc8840f.rlib" "C:\\Users\\himse\\.rustup\\toolchai
ns\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libgimli-4a08728bb43f7f3e.rlib" "C:\\Users\\himse\\
.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_demangle-cabbabd1fb98ae23
.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd_d
etect-9e6f2a8e1c9b8033.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-wind
ows-gnu\\lib\\libhashbrown-d69df6007b729193.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\ru
stlib\\x86_64-pc-windows-gnu\\lib\\libminiz_oxide-01377e8ce16592c7.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-
pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libadler-55ef25959858fd57.rlib" "C:\\Users\\himse\\.rustup\\toolchain
s\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_alloc-2472e5240618b585.rlib" 
"C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunwind-2afe7
24482cf62fa.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\li
b\\libcfg_if-48b872d5a2bb0096.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-
pc-windows-gnu\\lib\\liblibc-dee7a4d657e124bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\
rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-4f26e328114b6510.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-w
indows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_core-9848a62a497bd0b7.rlib" "C:\\Users\\himse\\.ru
stup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-4c56368b40b44789.rlib" "C:\\U
sers\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-
82abfd2e7a4dff39.rlib" "-Wl,-Bdynamic" "-lkernel32" "-ladvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lgcc_eh" "-l:
libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\\Users\\h
imse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-o" "C:\\Users\\himse\\Code
\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\crossbeam-epoch-2cec7818587ba9e9\\build_script_build-2cec7818587ba9e9
.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: collect2.exe: fatal error: cannot find 'ld'
          compilation terminated.

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-Wl,C:\\Users\\himse\\AppData\\Local\\Temp\\rustcH77X7P\\list.def" "-fno-use-linker-plugin"
 "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\\Users\\himse\\.rustup\\toolchains\\sta
ble-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "C:\\Users\\himse\\AppData\\Local\\Temp\\rustcH
77X7P\\symbols.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947
750c35.tracing_attributes.7c0c48d9-cgu.0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps
\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9-cgu.1.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\
\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9-cgu.10.rcgu.o" "C:\\Users\\him
se\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d
9-cgu.11.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa409959477
50c35.tracing_attributes.7c0c48d9-cgu.12.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps
\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9-cgu.13.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop
\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9-cgu.14.rcgu.o" "C:\\Users\\hi
mse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48
d9-cgu.15.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947
750c35.tracing_attributes.7c0c48d9-cgu.2.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps
\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9-cgu.3.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\
\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9-cgu.4.rcgu.o" "C:\\Users\\hims
e\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9
-cgu.5.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750
c35.tracing_attributes.7c0c48d9-cgu.6.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\t
racing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9-cgu.7.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\sr
c-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9-cgu.8.rcgu.o" "C:\\Users\\himse\\
Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35.tracing_attributes.7c0c48d9-cg
u.9.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35
.bvygw6h6hixf6ya.rcgu.rmeta" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes
-fa40995947750c35.589izdjjbc8vwsqn.rcgu.o" "-L" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps"
 "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bst
atic" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libsyn-aa4b1d2d4eac2d9f.rlib" "C:\\Users\
\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libquote-6d7ae62e4380144b.rlib" "C:\\Users\\himse\\Code\\A
FFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libproc_macro2-97e5949d68aa890b.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\ap
ps\\desktop\\src-tauri\\target\\debug\\deps\\libunicode_ident-bb6c7ca8832c7d92.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\st
able-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libproc_macro-5d617c0aca87d40b.rlib" "C:\\Users\\himse\\.
rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-a73802b277b8e653.rlib" "C:\\
Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libpanic_unwind-b58c
daac8171c254.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\l
ib\\libobject-d08779a03ea819f2.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64
-pc-windows-gnu\\lib\\libmemchr-e0af7175c5b3f4bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\li
b\\rustlib\\x86_64-pc-windows-gnu\\lib\\libaddr2line-6d52d94befc8840f.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_
64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libgimli-4a08728bb43f7f3e.rlib" "C:\\Users\\himse\\.rustup\\toolch
ains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_demangle-cabbabd1fb98ae23.rlib" "C:\\Use
rs\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd_detect-9e6f2a8e1
c9b8033.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\l
ibhashbrown-d69df6007b729193.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-p
c-windows-gnu\\lib\\libminiz_oxide-01377e8ce16592c7.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\
\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libadler-55ef25959858fd57.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_6
4-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_alloc-2472e5240618b585.rlib" "C:\\Users\\him
se\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunwind-2afe724482cf62fa.rli
b" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcfg_if-48
b872d5a2bb0096.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\
\lib\\liblibc-dee7a4d657e124bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64
-pc-windows-gnu\\lib\\liballoc-4f26e328114b6510.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib
\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_core-9848a62a497bd0b7.rlib" "C:\\Users\\himse\\.rustup\\toolchain
s\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-4c56368b40b44789.rlib" "C:\\Users\\himse\\.r
ustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-82abfd2e7a4dff3
9.rlib" "-Wl,-Bdynamic" "-lkernel32" "-ladvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lgcc_eh" "-l:libpthread.a" "
-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\\Users\\himse\\.rustup\\
toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\
\desktop\\src-tauri\\target\\debug\\deps\\tracing_attributes-fa40995947750c35.dll" "-Wl,--gc-sections" "-shared" "-Wl,--out-imp
lib=C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libtracing_attributes-fa40995947750c35.dll.a
" "-nodefaultlibs" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: collect2.exe: fatal error: cannot find 'ld'
          compilation terminated.

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--h
igh-entropy-va" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\
\rsbegin.o" "C:\\Users\\himse\\AppData\\Local\\Temp\\rustctSpDyX\\symbols.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\sr
c-tauri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.build_script_build.be59453f-cg
u.0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\buil
d_script_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.1.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-t
auri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.1
0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_
script_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.11.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-ta
uri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.12
.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_s
cript_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.13.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tau
ri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.14.
rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_sc
ript_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.15.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-taur
i\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.2.rc
gu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_scri
pt_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.3.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\
target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.4.rcgu.
o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_
build-a23ed6c75f49916b.build_script_build.be59453f-cgu.5.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\tar
get\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.6.rcgu.o" 
"C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_bui
ld-a23ed6c75f49916b.build_script_build.be59453f-cgu.7.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target
\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.build_script_build.be59453f-cgu.8.rcgu.o" "C:
\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-
a23ed6c75f49916b.build_script_build.be59453f-cgu.9.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\d
ebug\\build\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.5gdr1wubk8h2czjj.rcgu.o" "-L" "C:\\Users\\himse\
\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-win
dows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-win
dows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-a73802b277b8e653.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stabl
e-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libpanic_unwind-b58cdaac8171c254.rlib" "C:\\Users\\himse\\.r
ustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libobject-d08779a03ea819f2.rlib" "C:
\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libmemchr-e0af7175
c5b3f4bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\
libaddr2line-6d52d94befc8840f.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-
pc-windows-gnu\\lib\\libgimli-4a08728bb43f7f3e.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\
\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_demangle-cabbabd1fb98ae23.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x
86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd_detect-9e6f2a8e1c9b8033.rlib" "C:\\Users\\himse\\.rustup
\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libhashbrown-d69df6007b729193.rlib" "C:\\
Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libminiz_oxide-01377
e8ce16592c7.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\li
b\\libadler-55ef25959858fd57.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-p
c-windows-gnu\\lib\\librustc_std_workspace_alloc-2472e5240618b585.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-p
c-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunwind-2afe724482cf62fa.rlib" "C:\\Users\\himse\\.rustup\\toolchain
s\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcfg_if-48b872d5a2bb0096.rlib" "C:\\Users\\himse\\
.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-dee7a4d657e124bd.rlib" "C:
\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-4f26e3281
14b6510.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\l
ibrustc_std_workspace_core-9848a62a497bd0b7.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\ru
stlib\\x86_64-pc-windows-gnu\\lib\\libcore-4c56368b40b44789.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-wind
ows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-82abfd2e7a4dff39.rlib" "-Wl,-Bdynamic" "-lkernel32" "-l
advapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc
" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu
\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\buil
d\\async-trait-a23ed6c75f49916b\\build_script_build-a23ed6c75f49916b.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: collect2.exe: fatal error: cannot find 'ld'
          compilation terminated.

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-Wl,C:\\Users\\himse\\AppData\\Local\\Temp\\rustcuIZa2i\\list.def" "-fno-use-linker-plugin"
 "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\\Users\\himse\\.rustup\\toolchains\\sta
ble-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "C:\\Users\\himse\\AppData\\Local\\Temp\\rustcu
IZa2i\\symbols.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46
e.darling_macro.e503a1d2-cgu.0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_
macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.1.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\
debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.10.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\deskto
p\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.11.rcgu.o" "C:\\Users\\himse\\Code
\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.12.rcgu.o" "
C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e50
3a1d2-cgu.13.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9
c46e.darling_macro.e503a1d2-cgu.14.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darl
ing_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.15.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\tar
get\\debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.2.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\de
sktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.3.rcgu.o" "C:\\Users\\himse\\C
ode\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.4.rcgu.o"
 "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e
503a1d2-cgu.5.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d
9c46e.darling_macro.e503a1d2-cgu.6.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darl
ing_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.7.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\targ
et\\debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.8.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\des
ktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.darling_macro.e503a1d2-cgu.9.rcgu.o" "C:\\Users\\himse\\Co
de\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.4ggpt26kdnfpoxl7.rcgu.rmeta" "C:\\Use
rs\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.45j07mxlz1q8g0p.rcgu.o" 
"-L" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps" "-L" "C:\\Users\\himse\\.rustup\\toolchain
s\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "C:\\Users\\himse\\Code\\AFFiNE\\apps
\\desktop\\src-tauri\\target\\debug\\deps\\libdarling_core-c2d299c0c7ec9004.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\deskto
p\\src-tauri\\target\\debug\\deps\\libstrsim-c715d85feb23df88.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\
target\\debug\\deps\\libident_case-559e351ef4833ac2.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\de
bug\\deps\\libfnv-5006a154943ab56b.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libsyn
-aa4b1d2d4eac2d9f.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libquote-6d7ae62e438014
4b.rlib" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libproc_macro2-97e5949d68aa890b.rlib" 
"C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libunicode_ident-bb6c7ca8832c7d92.rlib" "C:\\Us
ers\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libproc_macro-5d617c0a
ca87d40b.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\
libstd-a73802b277b8e653.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-win
dows-gnu\\lib\\libpanic_unwind-b58cdaac8171c254.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib
\\rustlib\\x86_64-pc-windows-gnu\\lib\\libobject-d08779a03ea819f2.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-p
c-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libmemchr-e0af7175c5b3f4bd.rlib" "C:\\Users\\himse\\.rustup\\toolchain
s\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libaddr2line-6d52d94befc8840f.rlib" "C:\\Users\\hims
e\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libgimli-4a08728bb43f7f3e.rlib"
 "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_deman
gle-cabbabd1fb98ae23.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-window
s-gnu\\lib\\libstd_detect-9e6f2a8e1c9b8033.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rus
tlib\\x86_64-pc-windows-gnu\\lib\\libhashbrown-d69df6007b729193.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-
windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libminiz_oxide-01377e8ce16592c7.rlib" "C:\\Users\\himse\\.rustup\\toolch
ains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libadler-55ef25959858fd57.rlib" "C:\\Users\\himse
\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_alloc-247
2e5240618b585.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\
lib\\libunwind-2afe724482cf62fa.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_6
4-pc-windows-gnu\\lib\\libcfg_if-48b872d5a2bb0096.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\l
ib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-dee7a4d657e124bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-p
c-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-4f26e328114b6510.rlib" "C:\\Users\\himse\\.rustup\\toolchains
\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_core-9848a62a497bd0b7.rlib" "C
:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-4c56368b4
0b44789.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\l
ibcompiler_builtins-82abfd2e7a4dff39.rlib" "-Wl,-Bdynamic" "-lkernel32" "-ladvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcr
ypt" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat
" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-o" "C:
\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\darling_macro-54aa6da069d9c46e.dll" "-Wl,--gc-sect
ions" "-shared" "-Wl,--out-implib=C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libdarling_mac
ro-54aa6da069d9c46e.dll.a" "-nodefaultlibs" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: collect2.exe: fatal error: cannot find 'ld'
          compilation terminated.

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  |
  = note: "x86_64-w64-mingw32-gcc" "-Wl,C:\\Users\\himse\\AppData\\Local\\Temp\\rustcF7FM5x\\list.def" "-fno-use-linker-plugin"
 "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\\Users\\himse\\.rustup\\toolchains\\sta
ble-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "C:\\Users\\himse\\AppData\\Local\\Temp\\rustcF
7FM5x\\symbols.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.paste.
562049fc-cgu.0.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.p
aste.562049fc-cgu.1.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b
1b9.paste.562049fc-cgu.10.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\paste-b7d6a99
6be52b1b9.paste.562049fc-cgu.11.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\paste-b
7d6a996be52b1b9.paste.562049fc-cgu.12.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\p
aste-b7d6a996be52b1b9.paste.562049fc-cgu.13.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\d
eps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.14.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\de
bug\\deps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.15.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\targ
et\\debug\\deps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.2.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\
\target\\debug\\deps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.3.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-t
auri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.4.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\
src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.5.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desk
top\\src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.6.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\
\desktop\\src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.7.rcgu.o" "C:\\Users\\himse\\Code\\AFFiNE\\
apps\\desktop\\src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.8.rcgu.o" "C:\\Users\\himse\\Code\\AFF
iNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.paste.562049fc-cgu.9.rcgu.o" "C:\\Users\\himse\\Code
\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.1a8nrg6daw1oq27c.rcgu.rmeta" "C:\\Users\\himse\
\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.2aiaxo90532pffii.rcgu.o" "-L" "C:\\Users\\
himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-
pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-
pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libproc_macro-5d617c0aca87d40b.rlib" "C:\\Users\\himse\\.rustup\\tool
chains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-a73802b277b8e653.rlib" "C:\\Users\\himse
\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libpanic_unwind-b58cdaac8171c254
.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libobjec
t-d08779a03ea819f2.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-
gnu\\lib\\libmemchr-e0af7175c5b3f4bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\
x86_64-pc-windows-gnu\\lib\\libaddr2line-6d52d94befc8840f.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-window
s-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libgimli-4a08728bb43f7f3e.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable
-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_demangle-cabbabd1fb98ae23.rlib" "C:\\Users\\himse\\.
rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd_detect-9e6f2a8e1c9b8033.rlib
" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libhashbrown-
d69df6007b729193.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gn
u\\lib\\libminiz_oxide-01377e8ce16592c7.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustli
b\\x86_64-pc-windows-gnu\\lib\\libadler-55ef25959858fd57.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows
-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_alloc-2472e5240618b585.rlib" "C:\\Users\\himse\\.rustup\
\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunwind-2afe724482cf62fa.rlib" "C:\\User
s\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcfg_if-48b872d5a2bb00
96.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblib
c-dee7a4d657e124bd.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-
gnu\\lib\\liballoc-4f26e328114b6510.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x
86_64-pc-windows-gnu\\lib\\librustc_std_workspace_core-9848a62a497bd0b7.rlib" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x8
6_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-4c56368b40b44789.rlib" "C:\\Users\\himse\\.rustup\\toolc
hains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-82abfd2e7a4dff39.rlib" "-Wl
,-Bdynamic" "-lkernel32" "-ladvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-
lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\\Users\\himse\\.rustup\\toolchains\\
stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\sr
c-tauri\\target\\debug\\deps\\paste-b7d6a996be52b1b9.dll" "-Wl,--gc-sections" "-shared" "-Wl,--out-implib=C:\\Users\\himse\\Cod
e\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\deps\\libpaste-b7d6a996be52b1b9.dll.a" "-nodefaultlibs" "C:\\Users\\himse\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: collect2.exe: fatal error: cannot find 'ld'
          compilation terminated.

error: could not compile `crossbeam-epoch` due to previous error
error: could not compile `sea-query-derive` due to previous error
error: could not compile `tracing-attributes` due to previous error
error: could not compile `memoffset` due to previous error
error: could not compile `darling_macro` due to previous error
error: could not compile `async-trait` due to previous error
error: could not compile `paste` due to previous error      
error: could not compile `rustversion` due to previous error
The following warnings were emitted during compilation:     

warning: In file included from c:\x86_64-w64-mingw32-native\lib\gcc\x86_64-w64-mingw32\11.2.1\include-fixed\limits.h:34,       
warning:                  from c:\x86_64-w64-mingw32-native\include\stdlib.h:11,
warning:                  from sqlite3/sqlite3.c:14015:
warning: c:\x86_64-w64-mingw32-native\include\syslimits.h:12:25: error: no include path in which to search for limits.h        
warning:    12 | #include_next <limits.h>
warning:       |                         ^

error: failed to run custom build command for `libsqlite3-sys v0.24.2`

Caused by:
  process didn't exit successfully: `C:\Users\himse\Code\AFFiNE\apps\desktop\src-tauri\target\debug\build\libsqlite3-sys-75119b7172a04ae9\build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-changed=sqlite3/sqlite3.c
  cargo:rerun-if-changed=sqlite3/wasm32-wasi-vfs.c
  cargo:rerun-if-env-changed=SQLITE_MAX_VARIABLE_NUMBER
  cargo:rerun-if-env-changed=SQLITE_MAX_EXPR_DEPTH
  cargo:rerun-if-env-changed=LIBSQLITE3_FLAGS
  TARGET = Some("x86_64-pc-windows-gnu")
  OPT_LEVEL = Some("0")
  HOST = Some("x86_64-pc-windows-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-pc-windows-gnu
  CC_x86_64-pc-windows-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_pc_windows_gnu
  CC_x86_64_pc_windows_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-gnu
  CFLAGS_x86_64-pc-windows-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_gnu
  CFLAGS_x86_64_pc_windows_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-DSQLITE_CORE"
 "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" 
"-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_
EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQL
ITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-D_POSIX_THREAD_SAFE_FUNCTIONS" "-DHAVE_ISNAN" "-DSQ
LITE_ENABLE_UNLOCK_NOTIFY" "-o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\\libsqlite3-sys-b8399cc2cd44dac9\\out\\sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c"
  cargo:warning=In file included from c:\x86_64-w64-mingw32-native\lib\gcc\x86_64-w64-mingw32\11.2.1\include-fixed\limits.h:34,
  cargo:warning=                 from c:\x86_64-w64-mingw32-native\include\stdlib.h:11,
  cargo:warning=                 from sqlite3/sqlite3.c:14015:
  cargo:warning=c:\x86_64-w64-mingw32-native\include\syslimits.h:12:25: error: no include path in which to search for limits.h 
  cargo:warning=   12 | #include_next <limits.h>
  cargo:warning=      |                         ^
  exit code: 1

  --- stderr

  error occurred: Command "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" 
"-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABL
E_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLI
TE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABL
E_STAT4" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-D_POSIX_THREAD_SAFE_FUNCTIONS" "-DHA
VE_ISNAN" "-DSQLITE_ENABLE_UNLOCK_NOTIFY" "-o" "C:\\Users\\himse\\Code\\AFFiNE\\apps\\desktop\\src-tauri\\target\\debug\\build\
\libsqlite3-sys-b8399cc2cd44dac9\\out\\sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c" with args "gcc.exe" did not execute successfully (status code exit code: 1).

C:\Users\himse\Code\AFFiNE\apps\web:                        
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @affine/app@ dev: `next dev -p 8080`
Exit status 4294967295
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 101.

Process finished with exit code 1
linonetwo commented 1 year ago

My game PC is stable win10, I will take a look in my GF's win11 laptop later.

m1911star commented 1 year ago

Win 10 on my machine is ok, I will try virtual machine or upgrade to figure it out.