Compiling to WebAssembly failed

Hello everyone, I have started with WebAssembly from there: Hello, World! - Rust and WebAssembly but for "wasm-pack build" the error message: "error: linking with rust-lld failed: exit status: 1" is displayed. I am a beginner in RUST and cannot find a solution. My environment is VSCode-DevContainer under Linux.

Can you show the full error message?

Yes of course

vscode ➜ /workspaces/rust-postgres/wasm-game-of-life (master) $ wasm-pack build
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
   Compiling wasm-game-of-life v0.1.0 (/workspaces/rust-postgres/wasm-game-of-life)
warning: function `set_panic_hook` is never used
 --> src/utils.rs:1:8
  |
1 | pub fn set_panic_hook() {
  |        ^^^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

error: linking with `rust-lld` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/vscode/vscode-server/bin/linux-x64/903b1e9d8990623e3d7da1df3d33db3e42d80eda/bin/remote-cli:/home/vscode/.nvm/versions/node/v20.14.0/bin:/usr/local/cargo/bin:/usr/local/cargo/bin:/usr/local/cargo/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin" VSLANG="1033" "rust-lld" "-flavor" "wasm" "--rsp-quoting=posix" "--export" "__wbindgen_describe___wbg_alert_d3b6e8db27c82dfa" "--export" "__wbindgen_describe_greet" "--export" "greet" "--export" "__externref_drop_slice" "--export" "__externref_heap_live_count" "--export" "__externref_table_alloc" "--export" "__externref_table_dealloc" "--export" "__wbindgen_exn_store" "--export" "__wbindgen_free" "--export" "__wbindgen_malloc" "--export" "__wbindgen_realloc" "--export" "__wbindgen_describe___wbg_error_f851667af71bcfc6" "--export" "__wbindgen_describe___wbg_new_abda76e883ba8a5f" "--export" "__wbindgen_describe___wbg_stack_658279fe44541cf6" "--export=__heap_base" "--export=__data_end" "-z" "stack-size=1048576" "--stack-first" "--allow-undefined" "--no-demangle" "--no-entry" "/workspaces/rust-postgres/wasm-game-of-life/target/wasm32-unknown-unknown/release/deps/wasm_game_of_life.wasm_game_of_life.10cc9a606499647-cgu.0.rcgu.o" "/workspaces/rust-postgres/wasm-game-of-life/target/wasm32-unknown-unknown/release/deps/wasm_game_of_life.4mgjfaagzvpgv6zo.rcgu.o" "-L" "/workspaces/rust-postgres/wasm-game-of-life/target/wasm32-unknown-unknown/release/deps" "-L" "/workspaces/rust-postgres/wasm-game-of-life/target/release/deps" "-L" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib" "/workspaces/rust-postgres/wasm-game-of-life/target/wasm32-unknown-unknown/release/deps/libconsole_error_panic_hook-92d3e0458f36a605.rlib" "/workspaces/rust-postgres/wasm-game-of-life/target/wasm32-unknown-unknown/release/deps/libwasm_bindgen-9b3c60576a8a3665.rlib" "/workspaces/rust-postgres/wasm-game-of-life/target/wasm32-unknown-unknown/release/deps/libcfg_if-eb1887cd077d37ae.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-e376b646d18b56a8.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libpanic_abort-397c063f2afcc7ab.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libdlmalloc-2f12333dd29a40b3.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/librustc_demangle-985eacaa761e1822.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd_detect-ed0291ba53ea5128.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libhashbrown-2db25458e9ee614c.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_alloc-0fdbad514cccbac6.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libminiz_oxide-adf742b0029f8a6c.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libadler-30cf9a52aff7bc5b.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libunwind-758ff622976779c8.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcfg_if-2ca2116911ab6ccc.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/liblibc-615710b4dbde1003.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/liballoc-e332268468996ec9.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_core-773a05ff1cc3c6b1.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcore-fe26b27ff38af98c.rlib" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib" "-L" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib" "-L" "/usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/self-contained" "-o" "/workspaces/rust-postgres/wasm-game-of-life/target/wasm32-unknown-unknown/release/deps/wasm_game_of_life.wasm" "--gc-sections" "--no-entry" "-O2" "-fuse-ld=lld"
  = note: rust-lld: error: unknown argument: -fuse-ld=lld
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-absvdi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-absvsi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-absvti2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-addvdi3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-addvsi3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-addvti3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-clzdi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-clzsi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-clzti2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-cmpdi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-cmpti2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-ctzdi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-ctzsi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-ctzti2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-divdc3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-divsc3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-extendhfsf2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-ffsti2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-int_util.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-muldc3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-mulsc3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-mulvdi3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-mulvsi3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-mulvti3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-negdf2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-negdi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-negsf2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-negti2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-negvdi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-negvsi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-negvti2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-paritydi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-paritysi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-parityti2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-popcountdi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-popcountsi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-popcountti2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-subvdi3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-subvsi3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-subvti3.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-truncdfhf2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-truncsfhf2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-ucmpdi2.o' is neither Wasm object file nor LLVM bitcode
          rust-lld: warning: /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e16319d949f6bc29.rlib: archive member '45c91108d938afe8-ucmpti2.o' is neither Wasm object file nor LLVM bitcode
          

warning: `wasm-game-of-life` (lib) generated 1 warning
error: could not compile `wasm-game-of-life` (lib) due to 1 previous error; 1 warning emitted
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
  full command: cd "/workspaces/rust-postgres/wasm-game-of-life" && "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"
$ ls -la /usr/local/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/
total 74540
drwxr-xr-x 2 vscode vscode     4096 Jun 15 16:54 .
drwxr-xr-x 3 vscode vscode     4096 Jun 15 16:54 ..
-rw-r--r-- 1 vscode vscode   397568 Jun 15 16:54 libaddr2line-6cce6f85b214d1a4.rlib
-rw-r--r-- 1 vscode vscode    28420 Jun 15 16:54 libadler-30cf9a52aff7bc5b.rlib
-rw-r--r-- 1 vscode vscode  5522336 Jun 15 16:54 liballoc-e332268468996ec9.rlib
-rw-r--r-- 1 vscode vscode     8320 Jun 15 16:54 libcfg_if-2ca2116911ab6ccc.rlib
-rw-r--r-- 1 vscode vscode  3870472 Jun 15 16:54 libcompiler_builtins-e16319d949f6bc29.rlib
-rw-r--r-- 1 vscode vscode 33125076 Jun 15 16:54 libcore-fe26b27ff38af98c.rlib
-rw-r--r-- 1 vscode vscode   624042 Jun 15 16:54 libdlmalloc-2f12333dd29a40b3.rlib
-rw-r--r-- 1 vscode vscode   679768 Jun 15 16:54 libgetopts-e38d0f2ebaedb577.rlib
-rw-r--r-- 1 vscode vscode  5381998 Jun 15 16:54 libgimli-e9b9be16dad8bff4.rlib
-rw-r--r-- 1 vscode vscode  1466062 Jun 15 16:54 libhashbrown-2db25458e9ee614c.rlib
-rw-r--r-- 1 vscode vscode    34440 Jun 15 16:54 liblibc-615710b4dbde1003.rlib
-rw-r--r-- 1 vscode vscode   463732 Jun 15 16:54 libmemchr-a4572b41ca3935ec.rlib
-rw-r--r-- 1 vscode vscode   280260 Jun 15 16:54 libminiz_oxide-adf742b0029f8a6c.rlib
-rw-r--r-- 1 vscode vscode  7913056 Jun 15 16:54 libobject-db34ebfde55c0021.rlib
-rw-r--r-- 1 vscode vscode     9132 Jun 15 16:54 libpanic_abort-397c063f2afcc7ab.rlib
-rw-r--r-- 1 vscode vscode    26808 Jun 15 16:54 libpanic_unwind-09b346ccef196e15.rlib
-rw-r--r-- 1 vscode vscode  3870250 Jun 15 16:54 libproc_macro-e1f71582a35a9f7f.rlib
-rw-r--r-- 1 vscode vscode   616826 Jun 15 16:54 librustc_demangle-985eacaa761e1822.rlib
-rw-r--r-- 1 vscode vscode     4776 Jun 15 16:54 librustc_std_workspace_alloc-0fdbad514cccbac6.rlib
-rw-r--r-- 1 vscode vscode     7312 Jun 15 16:54 librustc_std_workspace_core-773a05ff1cc3c6b1.rlib
-rw-r--r-- 1 vscode vscode     8890 Jun 15 16:54 librustc_std_workspace_std-4f6098fdc02cd175.rlib
-rw-r--r-- 1 vscode vscode   117486 Jun 15 16:54 libstd_detect-ed0291ba53ea5128.rlib
-rw-r--r-- 1 vscode vscode  7773272 Jun 15 16:54 libstd-e376b646d18b56a8.rlib
-rw-r--r-- 1 vscode vscode     4586 Jun 15 16:54 libsysroot-c691136261778353.rlib
-rw-r--r-- 1 vscode vscode  3963432 Jun 15 16:54 libtest-931ce54c6cca5c98.rlib
-rw-r--r-- 1 vscode vscode    42510 Jun 15 16:54 libunicode_width-192bb693ee9dc0d4.rlib
-rw-r--r-- 1 vscode vscode    25212 Jun 15 16:54 libunwind-758ff622976779c8.rlib

You do have -Clink-arg=-fuse-ld=lld in a .cargo/config.toml either in your home dir or one of the parent dirs of the project you are compiling? That doesn't work on wasm.