alphastrata / shadplay

Real-time wgsl visualisation tooling for educating oneself in the art of shader programming
MIT License
381 stars 11 forks source link

cannot compile the might example with `cc` on macos #85

Closed Kerollmops closed 9 months ago

Kerollmops commented 9 months ago

Cannot run the "might" example when running it with cargo run --example might.

$ uname -a
Darwin macbook-pro-m1-de-kero.home 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:34 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8103 arm64
warning: unused manifest key: example.0.description
   Compiling proc-macro2 v1.0.71
   Compiling libc v0.2.151
   Compiling serde v1.0.193
   Compiling crossbeam-utils v0.8.17
   Compiling futures-core v0.3.29
   Compiling ahash v0.8.6
   Compiling slab v0.4.9
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/MacGPG2/bin:/Users/clementrenault/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mk/tynxng_d3wn7jc_ykr8c28gh0000gn/T/rustcTGSsw3/symbols.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/slab-6cbb3dfa112636df/build_script_build-6cbb3dfa112636df.build_script_build.72c76ec5c67b5b47-cgu.0.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/slab-6cbb3dfa112636df/build_script_build-6cbb3dfa112636df.34y6j1rrqpbevnkg.rcgu.o" "-L" "/Users/clementrenault/Documents/shadplay/target/debug/deps" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/clementrenault/Documents/shadplay/target/debug/deps/libautocfg-0cebdbe762e03133.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-1aa14119bd2bf267.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-0792ad7af41d0290.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-74e4e86dd2fc00ee.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-4f91846d9c476954.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-baf62229e39d7610.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-f96124664f0f16fe.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2b3be7f3ced6ec80.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-688b9bfa40d0d265.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-901a207b2c14e93e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-5852fd27ed4897f4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-22e881cf57409f4e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-75e10e34312b5a31.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-0f9ce6f6c248b3fa.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-82237793d44d28af.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b8b7d6ba14a29680.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-97186d54975c6683.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a4ecc63307a2b2e4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-4b44a1965098f9de.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b62cec30411e4992.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/clementrenault/Documents/shadplay/target/debug/build/slab-6cbb3dfa112636df/build_script_build-6cbb3dfa112636df" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld'

error: could not compile `slab` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/MacGPG2/bin:/Users/clementrenault/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mk/tynxng_d3wn7jc_ykr8c28gh0000gn/T/rustcI87SeA/symbols.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/ahash-739fd68dae2ed25c/build_script_build-739fd68dae2ed25c.build_script_build.ca5d762f6d14cb20-cgu.0.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/ahash-739fd68dae2ed25c/build_script_build-739fd68dae2ed25c.3bsxhgktycokcqjk.rcgu.o" "-L" "/Users/clementrenault/Documents/shadplay/target/debug/deps" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/clementrenault/Documents/shadplay/target/debug/deps/libversion_check-27c07903635a32eb.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-1aa14119bd2bf267.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-0792ad7af41d0290.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-74e4e86dd2fc00ee.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-4f91846d9c476954.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-baf62229e39d7610.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-f96124664f0f16fe.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2b3be7f3ced6ec80.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-688b9bfa40d0d265.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-901a207b2c14e93e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-5852fd27ed4897f4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-22e881cf57409f4e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-75e10e34312b5a31.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-0f9ce6f6c248b3fa.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-82237793d44d28af.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b8b7d6ba14a29680.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-97186d54975c6683.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a4ecc63307a2b2e4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-4b44a1965098f9de.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b62cec30411e4992.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/clementrenault/Documents/shadplay/target/debug/build/ahash-739fd68dae2ed25c/build_script_build-739fd68dae2ed25c" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld'

error: could not compile `ahash` (build script) due to 1 previous error
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/MacGPG2/bin:/Users/clementrenault/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mk/tynxng_d3wn7jc_ykr8c28gh0000gn/T/rustcTA8c6k/symbols.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/futures-core-0629ac4d4e2c5201/build_script_build-0629ac4d4e2c5201.build_script_build.aa99efdaf74711ae-cgu.0.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/futures-core-0629ac4d4e2c5201/build_script_build-0629ac4d4e2c5201.1xng7kt6xlx3r1lp.rcgu.o" "-L" "/Users/clementrenault/Documents/shadplay/target/debug/deps" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-1aa14119bd2bf267.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-0792ad7af41d0290.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-74e4e86dd2fc00ee.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-4f91846d9c476954.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-baf62229e39d7610.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-f96124664f0f16fe.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2b3be7f3ced6ec80.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-688b9bfa40d0d265.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-901a207b2c14e93e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-5852fd27ed4897f4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-22e881cf57409f4e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-75e10e34312b5a31.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-0f9ce6f6c248b3fa.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-82237793d44d28af.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b8b7d6ba14a29680.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-97186d54975c6683.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a4ecc63307a2b2e4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-4b44a1965098f9de.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b62cec30411e4992.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/clementrenault/Documents/shadplay/target/debug/build/futures-core-0629ac4d4e2c5201/build_script_build-0629ac4d4e2c5201" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld'

error: could not compile `futures-core` (build script) due to 1 previous error
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/MacGPG2/bin:/Users/clementrenault/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mk/tynxng_d3wn7jc_ykr8c28gh0000gn/T/rustcvYyMRw/symbols.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/serde-535c4103b81d03ba/build_script_build-535c4103b81d03ba.build_script_build.c35c7755a10d897e-cgu.0.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/serde-535c4103b81d03ba/build_script_build-535c4103b81d03ba.1gwledrn1wrabnb.rcgu.o" "-L" "/Users/clementrenault/Documents/shadplay/target/debug/deps" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-1aa14119bd2bf267.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-0792ad7af41d0290.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-74e4e86dd2fc00ee.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-4f91846d9c476954.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-baf62229e39d7610.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-f96124664f0f16fe.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2b3be7f3ced6ec80.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-688b9bfa40d0d265.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-901a207b2c14e93e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-5852fd27ed4897f4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-22e881cf57409f4e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-75e10e34312b5a31.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-0f9ce6f6c248b3fa.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-82237793d44d28af.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b8b7d6ba14a29680.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-97186d54975c6683.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a4ecc63307a2b2e4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-4b44a1965098f9de.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b62cec30411e4992.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/clementrenault/Documents/shadplay/target/debug/build/serde-535c4103b81d03ba/build_script_build-535c4103b81d03ba" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld'

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/MacGPG2/bin:/Users/clementrenault/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mk/tynxng_d3wn7jc_ykr8c28gh0000gn/T/rustcdfnrBk/symbols.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/proc-macro2-bbda12f196e3dd22/build_script_build-bbda12f196e3dd22.build_script_build.cacfef7564b9a8c-cgu.0.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/proc-macro2-bbda12f196e3dd22/build_script_build-bbda12f196e3dd22.build_script_build.cacfef7564b9a8c-cgu.1.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/proc-macro2-bbda12f196e3dd22/build_script_build-bbda12f196e3dd22.4x888ugks6tvalir.rcgu.o" "-L" "/Users/clementrenault/Documents/shadplay/target/debug/deps" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-1aa14119bd2bf267.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-0792ad7af41d0290.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-74e4e86dd2fc00ee.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-4f91846d9c476954.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-baf62229e39d7610.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-f96124664f0f16fe.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2b3be7f3ced6ec80.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-688b9bfa40d0d265.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-901a207b2c14e93e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-5852fd27ed4897f4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-22e881cf57409f4e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-75e10e34312b5a31.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-0f9ce6f6c248b3fa.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-82237793d44d28af.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b8b7d6ba14a29680.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-97186d54975c6683.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a4ecc63307a2b2e4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-4b44a1965098f9de.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b62cec30411e4992.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/clementrenault/Documents/shadplay/target/debug/build/proc-macro2-bbda12f196e3dd22/build_script_build-bbda12f196e3dd22" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld'

error: could not compile `serde` (build script) due to 1 previous error
error: could not compile `proc-macro2` (build script) due to 1 previous error
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/MacGPG2/bin:/Users/clementrenault/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mk/tynxng_d3wn7jc_ykr8c28gh0000gn/T/rustcBOndn4/symbols.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/crossbeam-utils-e8108e2bd14f170f/build_script_build-e8108e2bd14f170f.build_script_build.5169f1d6fd593ead-cgu.0.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/crossbeam-utils-e8108e2bd14f170f/build_script_build-e8108e2bd14f170f.build_script_build.5169f1d6fd593ead-cgu.1.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/crossbeam-utils-e8108e2bd14f170f/build_script_build-e8108e2bd14f170f.2z3sw02ns11lil5u.rcgu.o" "-L" "/Users/clementrenault/Documents/shadplay/target/debug/deps" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-1aa14119bd2bf267.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-0792ad7af41d0290.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-74e4e86dd2fc00ee.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-4f91846d9c476954.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-baf62229e39d7610.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-f96124664f0f16fe.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2b3be7f3ced6ec80.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-688b9bfa40d0d265.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-901a207b2c14e93e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-5852fd27ed4897f4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-22e881cf57409f4e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-75e10e34312b5a31.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-0f9ce6f6c248b3fa.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-82237793d44d28af.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b8b7d6ba14a29680.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-97186d54975c6683.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a4ecc63307a2b2e4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-4b44a1965098f9de.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b62cec30411e4992.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/clementrenault/Documents/shadplay/target/debug/build/crossbeam-utils-e8108e2bd14f170f/build_script_build-e8108e2bd14f170f" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld'

error: could not compile `crossbeam-utils` (build script) due to 1 previous error
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/MacGPG2/bin:/Users/clementrenault/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mk/tynxng_d3wn7jc_ykr8c28gh0000gn/T/rustcnC8KeS/symbols.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-f2398e493bf215d0/build_script_build-f2398e493bf215d0.build_script_build.dd97fdc063094dfd-cgu.0.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-f2398e493bf215d0/build_script_build-f2398e493bf215d0.build_script_build.dd97fdc063094dfd-cgu.1.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-f2398e493bf215d0/build_script_build-f2398e493bf215d0.build_script_build.dd97fdc063094dfd-cgu.2.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-f2398e493bf215d0/build_script_build-f2398e493bf215d0.build_script_build.dd97fdc063094dfd-cgu.3.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-f2398e493bf215d0/build_script_build-f2398e493bf215d0.1o02rhd9ca0pfdoa.rcgu.o" "-L" "/Users/clementrenault/Documents/shadplay/target/debug/deps" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-1aa14119bd2bf267.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-0792ad7af41d0290.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-74e4e86dd2fc00ee.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-4f91846d9c476954.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-baf62229e39d7610.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-f96124664f0f16fe.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2b3be7f3ced6ec80.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-688b9bfa40d0d265.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-901a207b2c14e93e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-5852fd27ed4897f4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-22e881cf57409f4e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-75e10e34312b5a31.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-0f9ce6f6c248b3fa.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-82237793d44d28af.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b8b7d6ba14a29680.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-97186d54975c6683.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a4ecc63307a2b2e4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-4b44a1965098f9de.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b62cec30411e4992.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-f2398e493bf215d0/build_script_build-f2398e493bf215d0" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld'

error: could not compile `libc` (build script) due to 1 previous error
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/MacGPG2/bin:/Users/clementrenault/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/mk/tynxng_d3wn7jc_ykr8c28gh0000gn/T/rustcQtWoP1/symbols.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-9d6a4856f0370513/build_script_build-9d6a4856f0370513.build_script_build.ce6570ae8643fdec-cgu.0.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-9d6a4856f0370513/build_script_build-9d6a4856f0370513.build_script_build.ce6570ae8643fdec-cgu.1.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-9d6a4856f0370513/build_script_build-9d6a4856f0370513.build_script_build.ce6570ae8643fdec-cgu.2.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-9d6a4856f0370513/build_script_build-9d6a4856f0370513.build_script_build.ce6570ae8643fdec-cgu.3.rcgu.o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-9d6a4856f0370513/build_script_build-9d6a4856f0370513.42y1bq4y2ujmwn4l.rcgu.o" "-L" "/Users/clementrenault/Documents/shadplay/target/debug/deps" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-1aa14119bd2bf267.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-0792ad7af41d0290.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-74e4e86dd2fc00ee.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-4f91846d9c476954.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-baf62229e39d7610.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-f96124664f0f16fe.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2b3be7f3ced6ec80.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-688b9bfa40d0d265.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-901a207b2c14e93e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-5852fd27ed4897f4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-22e881cf57409f4e.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-75e10e34312b5a31.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-0f9ce6f6c248b3fa.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-82237793d44d28af.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b8b7d6ba14a29680.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-97186d54975c6683.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a4ecc63307a2b2e4.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-4b44a1965098f9de.rlib" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b62cec30411e4992.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/clementrenault/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/clementrenault/Documents/shadplay/target/debug/build/libc-9d6a4856f0370513/build_script_build-9d6a4856f0370513" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld'

error: could not compile `libc` (build script) due to 1 previous error
alphastrata commented 9 months ago

can you try again with this stuff removed from the .cargo/config.toml


# NOTE: you must install [Mach-O LLD Port](https://lld.llvm.org/MachO/index.html) on mac. you can easily do this by installing llvm which includes lld with the "brew" package manager:
# `brew install llvm`
[target.x86_64-apple-darwin]
rustflags = [
  "-C",
  "link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld",
  "-Zshare-generics=y",
]

[target.aarch64-apple-darwin]
rustflags = [
  "-C",
  "link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld",
  "-Zshare-generics=y",
]

I suspect there are special dependencies for the M1/2 arch that you may not have installed as these seem to be linker issues.

You should probably do a cargo clean after removing them.

If this fixes it i'll probs remove these from the fast builds config (as I've not a mac to test them on it's difficult :( )

alphastrata commented 9 months ago

@Kerollmops any luck?