I am trying to run the yew framework sample code and I running into this error when running cargo install trunk wasm-bindgen-cli
error: linking with ``cc`` failed: exit status: 1
I am running rustc 1.60.0-nightly (2681f253b 2022-02-01)
Here's the output:
error: failed to compile `trunk v0.14.0`, intermediate artifacts can be found at `/var/folders/gp/n2f6jp996t93rzc9dhyldyr40000gn/T/cargo-installicBllO`
Caused by:
build failed
error: failed to compile wasm-bindgen-cli v0.2.79
, intermediate artifacts can be found at /var/folders/gp/n2f6jp996t93rzc9dhyldyr40000gn/T/cargo-installCKNe4D
Caused by: build failed Summary Failed to install trunk, wasm-bindgen-cli (see error(s) above). error: some crates failed to install
output:
//some output before
JmxvNA/release/build/proc-macro2-a0e6a8ec316499c4/build_script_build-a0e6a8ec316499c4" "-Wl,-dead_strip" "-nodefaultlibs" "-fuse-ld=/usr/local/bin/zld"
= note: clang: error: invalid linker name in argument '-fuse-ld=/usr/local/bin/zld'
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "-arch" "x86_64" "/var/folder
//Some output here
note: clang: error: invalid linker name in argument '-fuse-ld=/usr/local/bin/zld'
error: failed to compile `trunk v0.14.0`, intermediate artifacts can be found at `/var/folders/gp/n2f6jp996t93rzc9dhyldyr40000gn/T/cargo-installkiOHan`
Caused by:
build failed
error: failed to compile `wasm-bindgen-cli v0.2.79`, intermediate artifacts can be found at `/var/folders/gp/n2f6jp996t93rzc9dhyldyr40000gn/T/cargo-installJmxvNA`
Caused by:
build failed
Summary Failed to install trunk, wasm-bindgen-cli (see error(s) above).
error: some crates failed to install
Any ideas?