!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

667 Members
Rust149 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
9 Apr 2025
@k900:0upti.meK900Our default compilers should have WASM targets I think?04:59:58
@k900:0upti.meK900At least on unstable05:00:01
@k900:0upti.meK900Not sure about 24.1105:00:03
@cleverca22:matrix.orgcleverca22
In reply to @k900:0upti.me
At least on unstable
and i'm on master, so it should work...
11:55:34
@k900:0upti.meK900How does it fail?11:55:49
@cleverca22:matrix.orgcleverca22
In reply to @k900:0upti.me
How does it fail?
https://github.com/paritytech/polkadot-sdk/blob/master/substrate/utils/wasm-builder/src/prerequisites.rs#L228-L250
11:56:43
@cleverca22:matrix.orgcleverca22 this error is getting triggered via build.rs 11:56:49
@cleverca22:matrix.orgcleverca22 Rust WASM target for toolchain 0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0 is not properly installed; please install it! 11:56:58
@qyliss:fairydust.spaceAlyssa RossMaybe the check is wrong?12:37:34
@cleverca22:matrix.orgcleverca22
error: failed to run custom build command for `name v0.2.2 (/build/name/runtime)`

Caused by:
  process didn't exit successfully: `/build/name/target/release/build/name-aa417fbc44577df4/build-script-build` (exit status: 1)
  --- stderr
  Rust WASM target for toolchain 0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0 is not properly installed; please install it!

  Further error information:
  ------------------------------------------------------------
     Compiling dummy-crate v1.0.0 (/build/.tmpvBgI1g)
  error: linker `lld` not found
    |
    = note: No such file or directory (os error 2)

  error: could not compile `dummy-crate` (bin "dummy-crate") due to 1 previous error
  ------------------------------------------------------------
12:48:36
@cleverca22:matrix.orgcleverca22it looks like its trying to run the llvm linker for some reason??12:48:47
@9hp71n:matrix.orgghpzin I wouldn't call it "check".
From linked code it seemingly tries to build their "dummy crate" inside and fails to output anything as a result around here (which I assume may not be expected to work properly inside buildRustPackage):
https://github.com/paritytech/polkadot-sdk/blob/65441c8199ba8c9c1fe75ba4d432352109e87d43/substrate/utils/wasm-builder/src/prerequisites.rs#L211
https://github.com/paritytech/polkadot-sdk/blob/65441c8199ba8c9c1fe75ba4d432352109e87d43/substrate/utils/wasm-builder/src/prerequisites.rs#L150-L177
12:49:51
@9hp71n:matrix.orgghpzin I wouldn't call it "check".
From linked code it seemingly tries to build their "dummy crate" inside and fails to output anything as a result around here (which I assume may not be expected to work properly inside buildRustPackage, because it does cargo build with its' own things):
https://github.com/paritytech/polkadot-sdk/blob/65441c8199ba8c9c1fe75ba4d432352109e87d43/substrate/utils/wasm-builder/src/prerequisites.rs#L211
https://github.com/paritytech/polkadot-sdk/blob/65441c8199ba8c9c1fe75ba4d432352109e87d43/substrate/utils/wasm-builder/src/prerequisites.rs#L150-L177
12:50:36
@cleverca22:matrix.orgcleverca22 the other issue that makes things slower, is the inability of buildRustPackage to cache the deps 12:52:40

Show newer messages


Back to Room ListRoom Version: 6