Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Failed to compile wasm-bindgen-cli v0.2.95 when exec npx wrangler dev command #658

Open
1 task done
sontixyou opened this issue Oct 19, 2024 · 6 comments
Open
1 task done

Comments

@sontixyou
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What version of workers-rs are you using?

0.4.2

What version of wrangler are you using?

3.81.0

Describe the bug

what I'm experiencing

Failed to compile wasm-bindgen-cli v0.2.95 when I exec npx wrangler dev command on mac OS14.6.1

Expected behavior

npx wrangler dev

 ⛅️ wrangler 3.81.0
-------------------

Running custom build: cargo install -q worker-build && worker-build --release
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│  [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
   Compiling wasm-bindgen-shared v0.2.93
   Compiling wasm-bindgen v0.2.93
   Compiling wasm-bindgen-backend v0.2.93
   Compiling wasm-bindgen-macro-support v0.2.93
   Compiling wasm-bindgen-macro v0.2.93
   Compiling js-sys v0.3.70
   Compiling console_error_panic_hook v0.1.7
   Compiling web-sys v0.3.70
   Compiling wasm-bindgen-futures v0.4.43
   Compiling worker-sys v0.4.2
   Compiling serde-wasm-bindgen v0.5.0
   Compiling serde-wasm-bindgen v0.6.5
   Compiling chrono v0.4.38
   Compiling worker-kv v0.7.0
   Compiling worker-macros v0.4.2
   Compiling wasm-streams v0.4.1
   Compiling worker v0.4.2
   Compiling webtip-poc v0.1.0 (/Users/kengo/projects/rust-projects/webtip-poc)
    Finished `release` profile [optimized] target(s) in 8.78s
[INFO]: ⬇️  Installing wasm-bindgen...
[INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended
[INFO]: ✨   Done in 8.97s
[INFO]: 📦   Your wasm pkg is ready to publish at /Users/kengo/projects/rust-projects/webtip-poc/build.

The file src changed, restarting build...
Running custom build: cargo install -q worker-build && worker-build --release
[wrangler:inf] Ready on http://localhost:56841
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│  [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
    Finished `release` profile [optimized] target(s) in 0.03s
[INFO]: ⬇️  Installing wasm-bindgen...
[INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended
[INFO]: ✨   Done in 0.21s
[INFO]: 📦   Your wasm pkg is ready to publish at /Users/kengo/projects/rust-projects/webtip-poc/build.

⎔ Starting local server...

Steps To Reproduce

First Step

I exec cargo generate cloudflare/workers-rs.
There files are generated.

Cargo.toml

[package]
name = "hoge"
version = "0.1.0"
edition = "2021"
authors = [""]

[package.metadata.release]
release = false

# https://github.com/rustwasm/wasm-pack/issues/1247
[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[lib]
crate-type = ["cdylib"]

[dependencies]
worker = { version = "0.4.2", features = ['http', 'axum'] }
worker-macros = { version = "0.4.2", features = ['http'] }
axum = { version = "0.7", default-features = false }
tower-service = "0.3.2"
console_error_panic_hook = { version = "0.1.1" }

Wrangler.toml

name = "webtip-poc"
main = "build/worker/shim.mjs"
compatibility_date = "2024-10-19"

[build]
command = "cargo install -q worker-build && worker-build --release"

src/lib.rs

use axum::{routing::get, Router};
use tower_service::Service;
use worker::*;

fn router() -> Router {
    Router::new().route("/", get(root))
}

#[event(fetch)]
async fn fetch(
    req: HttpRequest,
    _env: Env,
    _ctx: Context,
) -> Result<axum::http::Response<axum::body::Body>> {
    console_error_panic_hook::set_once();
    Ok(router().call(req).await?)
}

pub async fn root() -> &'static str {
    "Hello Axum!"
}

Second Step

Next, I exec npx wrangler dev.
Failed to compile wasm-bindgen-cli v0.2.95.

npx wrangler dev

 ⛅️ wrangler 3.81.0
-------------------

Running custom build: cargo install -q worker-build && worker-build --release
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│  [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
   Compiling webtip-poc v0.1.0 (/Users/user_name/projects/rust-projects/webtip-poc)
    Finished `release` profile [optimized] target(s) in 0.33s
[INFO]: ⬇️  Installing wasm-bindgen...
    Updating crates.io index
  Installing wasm-bindgen-cli v0.2.95
    Updating crates.io index
     Locking 164 packages to latest compatible versions
      Adding base64 v0.13.1 (latest: v0.22.1)
      Adding fallible-iterator v0.2.0 (latest: v0.3.0)
      Adding gimli v0.26.2 (latest: v0.31.1)
      Adding hashbrown v0.12.3 (latest: v0.15.0)
      Adding hashbrown v0.14.5 (latest: v0.15.0)
      Adding hermit-abi v0.3.9 (latest: v0.4.0)
      Adding idna v0.5.0 (latest: v1.0.2)
      Adding indexmap v1.9.3 (latest: v2.6.0)
      Adding linux-raw-sys v0.4.14 (latest: v0.6.5)
      Adding quick-error v1.2.3 (latest: v2.0.1)
      Adding strsim v0.10.0 (latest: v0.11.1)
      Adding twoway v0.1.8 (latest: v0.2.2)
      Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.3+wasi-0.2.2)
      Adding wasm-encoder v0.212.0 (latest: v0.219.1)
      Adding wasmparser v0.212.0 (latest: v0.219.1)
      Adding windows-core v0.52.0 (latest: v0.58.0)
      Adding windows-sys v0.52.0 (latest: v0.59.0)
      Adding zerocopy v0.7.35 (latest: v0.8.6)
      Adding zerocopy-derive v0.7.35 (latest: v0.8.6)
   Compiling proc-macro2 v1.0.88
   Compiling unicode-ident v1.0.13
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.161
   Compiling byteorder v1.5.0
   Compiling autocfg v1.4.0
   Compiling serde v1.0.210
   Compiling once_cell v1.20.2
   Compiling log v0.4.22
   Compiling crossbeam-utils v0.8.20
   Compiling memchr v2.7.4
   Compiling version_check v0.9.5
   Compiling bitflags v2.6.0
   Compiling rayon-core v1.12.1
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust
lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da
rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro
jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/
nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home
brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre
w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl
@1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o
pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/
opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se
curity.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:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustczpGx
gV/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/crossbeam-utils-ce03de29b1039ccb/build_script_build-ce03de29b1039ccb.build_script_b
uild.90fed92e61ded4d8-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/crossbeam-utils-ce03de29b1039ccb/build_script_build-ce03de29b
1039ccb.build_script_build.90fed92e61ded4d8-cgu.1.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/crossbeam-utils-ce03de29b1039ccb/build_
script_build-ce03de29b1039ccb.6hn01xefba5iwch0udai3saz6.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/t
oolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-
0f9bda72675979e4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup
/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustli
b/aarch64-apple-darwin/lib/libmemchr-81f43cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83
917178.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stabl
e-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64
-apple-darwin/lib/libstd_detect-bd30e1a2296ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7c
a.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/t
oolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rus
tlib/aarch64-apple-darwin/lib/libadler-7efc4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72
e1aab.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stabl
e-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-dar
win/lib/liballoc-3d4e98832b983b89.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab363
0.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarc
h64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-d
arwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/crossbeam-utils-ce03de29b1039ccb/build_script_bu
ild-ce03de29b1039ccb" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld'
          

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust
lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da
rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro
jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/
nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home
brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre
w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl
@1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o
pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/
opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se
curity.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:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustcnHzC
Nk/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/serde-f1a4924a62f72a9e/build_script_build-f1a4924a62f72a9e.build_script_build.ab8f8
942fd234f67-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/serde-f1a4924a62f72a9e/build_script_build-f1a4924a62f72a9e.6km3lcc3etzz
2lugen69b1l65.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/
rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0f9bda72675979e4.rlib" "/Users/user_name/.rust
up/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/li
b/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-81f43
cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83917178.rlib" "/Users/user_name/.rustup/toolcha
ins/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64
-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-bd30e1a229
6ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7ca.rlib" "/Users/user_name/.rustup/toolchains/s
table-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/
rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-7ef
c4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72e1aab.rlib" "/Users/user_name/.rustup/toolchai
ns/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64
-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-3d4e98832b983b89.rlib" "/
Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab3630.rlib" "/Users/user_name/.rustup/toolchains/s
table-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple
-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib
" "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/serde-f1a4924a62f72a9e/build_script_build-f1a4924a62f72a9e" "-Wl,-dead_strip" "-nodefaultl
ibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld'
          

error: could not compile `crossbeam-utils` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `serde` (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 -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust
lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da
rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro
jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/
nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home
brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre
w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl
@1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o
pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/
opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se
curity.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:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustcHT9v
DR/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/proc-macro2-557667fe213f20a3/build_script_build-557667fe213f20a3.build_script_build
.68f71717255b8988-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/proc-macro2-557667fe213f20a3/build_script_build-557667fe213f20a3.
build_script_build.68f71717255b8988-cgu.1.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/proc-macro2-557667fe213f20a3/build_script_build
-557667fe213f20a3.70khawmrsglw5sj5ig4op18vj.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/toolchains/st
able-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0f9bda726759
79e4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup/toolchains/
stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-ap
ple-darwin/lib/libmemchr-81f43cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83917178.rlib"
 "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-ap
ple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwi
n/lib/libstd_detect-bd30e1a2296ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7ca.rlib" "/Us
ers/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/toolchains/st
able-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64
-apple-darwin/lib/libadler-7efc4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72e1aab.rlib" 
"/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-ap
ple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liba
lloc-3d4e98832b983b89.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab3630.rlib" "/Us
ers/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da
rwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/ru
stlib/aarch64-apple-darwin/lib" "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/proc-macro2-557667fe213f20a3/build_script_build-557667fe213f
20a3" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld'
          

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 -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust
lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da
rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro
jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/
nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home
brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre
w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl
@1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o
pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/
opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se
curity.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:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustcRERi
IZ/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0acfce50.build_script_build.84ba15
bb91f7b96c-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0acfce50.build_script_b
uild.84ba15bb91f7b96c-cgu.1.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0acfce50.bui
ld_script_build.84ba15bb91f7b96c-cgu.2.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0
acfce50.build_script_build.84ba15bb91f7b96c-cgu.3.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_buil
d-5d341d1f0acfce50.202acsqsxh2e4pakgu1ajca0e.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/toolchains/s
table-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0f9bda72675
979e4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup/toolchains
/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-a
pple-darwin/lib/libmemchr-81f43cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83917178.rlib
" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-a
pple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darw
in/lib/libstd_detect-bd30e1a2296ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7ca.rlib" "/U
sers/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/toolchains/s
table-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch6
4-apple-darwin/lib/libadler-7efc4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72e1aab.rlib"
 "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-a
pple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/lib
alloc-3d4e98832b983b89.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab3630.rlib" "/U
sers/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-d
arwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/r
ustlib/aarch64-apple-darwin/lib" "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/libc-5d341d1f0acfce50/build_script_build-5d341d1f0acfce50" 
"-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/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 -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rust
lib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.rustup/toolchains/stable-aarch64-apple-da
rwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/user_name/.npm/_npx/32026684e21afda6/node_modules/.bin:/Users/user_name/projects/rust-projects/webtip-poc/node_modules/.bin:/Users/user_name/pro
jects/rust-projects/node_modules/.bin:/Users/user_name/projects/node_modules/.bin:/Users/user_name/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/user_name/.asdf/installs/
nodejs/18.17.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/user_name/.asdf/plugins/nodejs/shims:/Users/user_name/.asdf/installs/nodejs/18.17.0/bin:/opt/home
brew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/Users/user_name/.pyenv/shims:/Users/user_name/.asdf/shims:/opt/homebre
w/opt/asdf/libexec/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/opt/openssl
@1.1/bin:/Users/user_name/.zplug/repos/zplug/zplug/bin:/Users/user_name/.zplug/bin:/Users/user_name/.local/share/nvim/mason/bin:/opt/homebrew/opt/postgresql@16/bin:/opt/homebrew/opt/llvm/bin:/o
pt/homebrew/opt/mysql@5.7/bin:/opt/homebrew/opt/mysql@8.0/bin:/opt/homebrew/Cellar/cmake/3.29.2/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/
opt/libpq/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.se
curity.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:/Library/Apple/usr/bin:/Users/user_name/.cargo/bin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/rustcvrWC
4m/symbols.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/rayon-core-db46057cf6f0772f/build_script_build-db46057cf6f0772f.build_script_build.
8d0fd6f8d607189f-cgu.0.rcgu.o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/rayon-core-db46057cf6f0772f/build_script_build-db46057cf6f0772f.0s
tqj1qaxsji2xk0cm7pgs43k.rcgu.o" "-L" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/deps" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-d
arwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0f9bda72675979e4.rlib" "/Users/k
engo/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple
-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libme
mchr-81f43cdd1f7d7095.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83917178.rlib" "/Users/user_name/.rust
up/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustl
ib/aarch64-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-
bd30e1a2296ebf34.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7ca.rlib" "/Users/user_name/.rustup/to
olchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-d
arwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/li
badler-7efc4608b0bc96f7.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72e1aab.rlib" "/Users/user_name/.rustu
p/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustl
ib/aarch64-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-3d4e98832b983b8
9.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab3630.rlib" "/Users/user_name/.rustup/to
olchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aar
ch64-apple-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-lSystem" "-lc" "-lm" "-L" "/Users/user_name/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-
darwin/lib" "-o" "/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp/release/build/rayon-core-db46057cf6f0772f/build_script_build-db46057cf6f0772f" "-Wl,-dead_stri
p" "-nodefaultlibs" "-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld"
  = note: clang: error: invalid linker name in argument '-fuse-ld=/opt/homebrew/opt/llvm@18/bin/ld64.lld'
          

error: could not compile `rayon-core` (build script) due to 1 previous error
error: failed to compile `wasm-bindgen-cli v0.2.95`, intermediate artifacts can be found at `/var/folders/_3/951d47yd3kvc0tmd_t1c57zm0000gn/T/cargo-installi1Qclp`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Error: Installing wasm-bindgen with cargo
Caused by: Installing wasm-bindgen with cargo

✘ [ERROR] Running custom build `cargo install -q worker-build && worker-build --release` failed. There are likely more logs from your build command above.


🪵  Logs were written to "/Users/user_name/Library/Preferences/.wrangler/logs/wrangler-2024-10-19_14-38-03_432.log"

Tried to avoid errors

I specified the version of wasm-bindgen in Cargo.toml and executed the npx wrangler dev command and the error does not occured.

[dependencies]
wasm-bindgen = "=0.2.93"
@kflansburg
Copy link
Contributor

I think this may be an issue with wasm-bindgen-cli, pinning may be the correct option for now, although I recently was able to use 0.2.95 with no issues.

@suhaybu
Copy link

suhaybu commented Oct 22, 2024

I think this may be an issue with wasm-bindgen-cli, pinning may be the correct option for now, although I recently was able to use 0.2.95 with no issues.

I've been running into a similar issue as well that falls under the umbrella of this issue's title. Pinning wasm-bindgen to version 0.2.93 like OP mentioned fixed the issue.

I am using: macOS 15.1 Apple Silicon, Rust v1.82.0, Node v22.10.0, cloudflare-wrangler v3.81.0 (via homebrew)

The template used is hello-world (without HTTP)

While starting the server, I get:

service core:user:example: Uncaught LinkError: WebAssembly.Instance(): Import #9 "./index_bg.js" "__wbg_error_09480e4aadca50ad": function import requires a callable

    at null.<anonymous> (shim.js:41:9)

CleanShot 2024-10-22 at 10 15 34@2x

My logs:

wrangler-2024-10-22_07-04-05_119.log

--- 2024-10-22T07:04:05.205Z debug
🪵  Writing logs to "/Users/suhayb/Library/Preferences/.wrangler/logs/wrangler-2024-10-22_07-04-05_119.log"
---

--- 2024-10-22T07:04:05.205Z debug
Failed to load .env file ".env": Error: ENOENT: no such file or directory, open '.env'
    at Object.openSync (node:fs:561:18)
    at Object.readFileSync (node:fs:445:35)
    at tryLoadDotEnv (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:163894:72)
    at loadDotEnv (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:163903:12)
    at /opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:214085:20
    at /opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:179349:16
    at maybeAsyncResult (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:177570:44)
    at /opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:179348:14
    at /opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:177557:22
    at Array.reduce (<anonymous>) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '.env'
}
---

--- 2024-10-22T07:04:05.210Z log

 ⛅️ wrangler 3.81.0
�[38;2;255;136;0m-------------------�[39m

---

--- 2024-10-22T07:04:05.217Z log
Running custom build: cargo install -q worker-build && worker-build --release
---

--- 2024-10-22T07:04:23.319Z debug
Failed to load .env file "/Users/suhayb/Code/Uni/cloud/example/.dev.vars": Error: ENOENT: no such file or directory, open '/Users/suhayb/Code/Uni/cloud/example/.dev.vars'
    at Object.openSync (node:fs:561:18)
    at Object.readFileSync (node:fs:445:35)
    at tryLoadDotEnv (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:163894:72)
    at loadDotEnv (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:163903:12)
    at getVarsForDev (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:176460:18)
    at getBindings (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:215753:10)
    at resolveBindings (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:216376:20)
    at resolveConfig (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:216461:38)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async #updateConfig (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:216602:30) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/suhayb/Code/Uni/cloud/example/.dev.vars'
}
---

--- 2024-10-22T07:04:23.328Z debug
No folder available to cache configuration
---

--- 2024-10-22T07:04:23.328Z debug
Metrics dispatcher: Posting data {"type":"event","name":"run dev","properties":{"local":true,"usesTypeScript":false}}
---

--- 2024-10-22T07:04:23.340Z log
The file src changed, restarting build...
---

--- 2024-10-22T07:04:23.340Z log
Running custom build: cargo install -q worker-build && worker-build --release
---

--- 2024-10-22T07:04:24.312Z debug
Writing additional module to output /Users/suhayb/Code/Uni/cloud/example/.wrangler/tmp/dev-ldmW8F/ee96322dafd7709a8fec3dfac4c345ec55adfcfd-index.wasm
---

--- 2024-10-22T07:04:24.313Z debug
RemoteRuntimeController teardown beginning...
---

--- 2024-10-22T07:04:24.313Z debug
RemoteRuntimeController teardown complete
---

--- 2024-10-22T07:04:24.315Z log
�[2m⎔ Starting local server...�[22m
---

--- 2024-10-22T07:04:25.371Z error
�[31m✘ �[41;31m[�[41;97mERROR�[41;31m]�[0m �[1mservice core:user:example: Uncaught LinkError: WebAssembly.Instance(): Import #9 "./index_bg.js" "__wbg_error_53abcd6a461f73d8": function import requires a callable�[0m

    at null.<anonymous> (shim.js:41:9)


---

--- 2024-10-22T07:04:25.372Z debug
Error in LocalRuntimeController: Error reloading local server
 MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
    at #assembleAndUpdateConfig (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/node_modules/miniflare/dist/src/index.js:9853:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Mutex.runWith (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/node_modules/miniflare/dist/src/index.js:3627:16)
    at async #waitForReady (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/node_modules/miniflare/dist/src/index.js:9910:5)
    at async #onBundleComplete (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:216775:29)
    at async Mutex.runWith (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/node_modules/miniflare/dist/src/index.js:3627:16) {
  code: 'ERR_RUNTIME_FAILURE',
  cause: undefined
}
---

--- 2024-10-22T07:04:25.372Z debug
=> Error contextual data: undefined
---

--- 2024-10-22T07:04:25.373Z log

---

--- 2024-10-22T07:04:25.373Z error
�[31m✘ �[41;31m[�[41;97mERROR�[41;31m]�[0m �[1mThe Workers runtime failed to start. There is likely additional logging output above.�[0m


---

--- 2024-10-22T07:04:25.373Z debug
MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
    at #assembleAndUpdateConfig (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/node_modules/miniflare/dist/src/index.js:9853:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Mutex.runWith (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/node_modules/miniflare/dist/src/index.js:3627:16)
    at async #waitForReady (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/node_modules/miniflare/dist/src/index.js:9910:5)
    at async #onBundleComplete (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/wrangler-dist/cli.js:216775:29)
    at async Mutex.runWith (/opt/homebrew/Cellar/cloudflare-wrangler2/3.81.0/libexec/lib/node_modules/wrangler/node_modules/miniflare/dist/src/index.js:3627:16)
---

--- 2024-10-22T07:04:25.373Z log
�[32mIf you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose�[0m
---

--- 2024-10-22T07:04:25.386Z debug
[InspectorProxyWorker] handleProxyControllerIncomingMessage {"type":"reloadStart"}
---

@PeterMHammond
Copy link

I believe this is related to the latest Rust v1.82.0, you said you're running.
rustwasm/wasm-bindgen#4211 (comment)
Downgrading to a previous version Rust v1.81.0, seems to resolve the issue.
There are many bugs related to this issue as it's affecting multiple implementations.
I reverted back to a Rust v1.76.0 and it resolved my Cloudflare CI/CD build issues.
However I think it's any earlier version than the latest 1.82.0.
Hope that helps you.

@suhaybu
Copy link

suhaybu commented Oct 23, 2024

Thank you for your response.

Downgrading wasm-bindgen helped me. But downgrading Rust to solve the issue is interesting. So we might have 2 culprits (wasm-bindgen version & Rust version). I wonder if they are related in any way.

@kunjee17
Copy link

kunjee17 commented Oct 28, 2024

I can confirm. It is mostly rust. I down graded to 1.81 and everything is working even with latest packages. Something changed in 1.82 that makes WASM cry. Let's see how situation changes with next version.

@cxw620
Copy link

cxw620 commented Nov 10, 2024

I can confirm. It is mostly rust. I down graded to 1.81 and everything is working even with latest packages. Something changed in 1.82 that makes WASM cry. Let's see how situation changes with next version.

Update: latest nightly 1.84 still doesn't work.

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

No branches or pull requests

6 participants