!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

692 Members
Rust155 Servers

Load older messages


SenderMessageTime
9 Apr 2025
@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
@cleverca22:matrix.orgcleverca22so it takes 20 minutes to reproduce the failure, after every change12:52:49
@9hp71n:matrix.orgghpzinHonestly I would just try to patch it out to be "noop" (always assume toolchain it tries to check is fine) and see if it is builds.12:55:59
@9hp71n:matrix.orgghpzin* Honestly I would just try to patch it out to be "noop" (always assume toolchain it tries to "check" is fine) and see if it is builds.12:56:22
@9hp71n:matrix.orgghpzin* Honestly I would just try to patch it out to be "noop" (always assume toolchain it tries to "check" is fine) and see if it builds.12:56:28
@cleverca22:matrix.orgcleverca22
In reply to @9hp71n:matrix.org
Honestly I would just try to patch it out to be "noop" (always assume toolchain it tries to "check" is fine) and see if it builds.
i already deleted build.rs and then it fails because there was no wasm output
12:56:46
@cleverca22:matrix.orgcleverca22 and patching it to remove the check, i dont think will work, its just going to run cargo on the real wasm project, and then fail the same as dummy-crate 12:57:15
@glepage:matrix.orgGaétan Lepage What is the best way to reference release/target/x86_64-unknown-linux-gnu/release/ in the checkPhase for instance? 13:27:45
@glepage:matrix.orgGaétan LepageIs there a shell variable containing this?13:27:53
@qyliss:fairydust.spaceAlyssa RossThere is a variable for the system part13:39:58
@cleverca22:matrix.orgcleverca22
In reply to @k900:0upti.me
How does it fail?
Cannot compile the WASM runtime: no standard library sources found at /nix/store/0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0/lib/rustlib/src/rust!
i gave it an ldd, and now it cant find the standard library
13:48:05
@glepage:matrix.orgGaétan Lepage
In reply to @qyliss:fairydust.space
There is a variable for the system part
I ended up using cargoInstallHook.targetSubdirectory
14:03:35
@glepage:matrix.orgGaétan Lepage https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/ra/rav1d/package.nix#L38-L49 14:03:37
@cleverca22:matrix.orgcleverca22
[clever@thinkpad:~/iohk/midnight-node]$ ls /nix/store/0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0/lib/rustlib/wasm32-unknown-unknown/lib/
libaddr2line-75d3d0c5981cd211.rlib          libcore-c8e3d79b493aee7a.rlib       liblibc-279616ba3aa6b6b5.rlib         libpanic_unwind-5bf15f6e79874620.rlib               librustc_std_workspace_core-20597a32dbe324b7.rlib  libtest-72b3932de24c9224.rlib
libadler-7915b69899d8f62d.rlib              libdlmalloc-82297a628a89729a.rlib   libmemchr-12d9c02ac2b46e93.rlib       libproc_macro-604f5a1a5a3487e6.rlib                 librustc_std_workspace_std-3fb1821d50d1a00e.rlib   libunicode_width-f19aa74aa999edec.rlib
liballoc-a55cb6cdcc7074cd.rlib              libgetopts-4c1c3c48cdd30e1d.rlib    libminiz_oxide-b4d4129edfbbc22f.rlib  libprofiler_builtins-69ea14db5fb2290e.rlib          libstd-4e586b256d6eead5.rlib                       libunwind-610f019430ca2de2.rlib
libcfg_if-57ac834c4abeb545.rlib             libgimli-10b471aa877c9dcc.rlib      libobject-4bbfa37031017b9f.rlib       librustc_demangle-d987a56c328827e5.rlib             libstd_detect-cf3cdd655689b063.rlib
libcompiler_builtins-9bfd52bc78369877.rlib  libhashbrown-06aa1b00a4ac11fb.rlib  libpanic_abort-91efa2f4e3051c3f.rlib  librustc_std_workspace_alloc-5894bc93779fa041.rlib  libsysroot-bcec41c60c9f169c.rlib
14:09:34
@cleverca22:matrix.orgcleverca22and yet, the path it gave, does have wasm32!?14:09:52
@cleverca22:matrix.orgcleverca22 *
[clever@thinkpad:~/iohk/]$ ls /nix/store/0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0/lib/rustlib/wasm32-unknown-unknown/lib/
libaddr2line-75d3d0c5981cd211.rlib          libcore-c8e3d79b493aee7a.rlib       liblibc-279616ba3aa6b6b5.rlib         libpanic_unwind-5bf15f6e79874620.rlib               librustc_std_workspace_core-20597a32dbe324b7.rlib  libtest-72b3932de24c9224.rlib
libadler-7915b69899d8f62d.rlib              libdlmalloc-82297a628a89729a.rlib   libmemchr-12d9c02ac2b46e93.rlib       libproc_macro-604f5a1a5a3487e6.rlib                 librustc_std_workspace_std-3fb1821d50d1a00e.rlib   libunicode_width-f19aa74aa999edec.rlib
liballoc-a55cb6cdcc7074cd.rlib              libgetopts-4c1c3c48cdd30e1d.rlib    libminiz_oxide-b4d4129edfbbc22f.rlib  libprofiler_builtins-69ea14db5fb2290e.rlib          libstd-4e586b256d6eead5.rlib                       libunwind-610f019430ca2de2.rlib
libcfg_if-57ac834c4abeb545.rlib             libgimli-10b471aa877c9dcc.rlib      libobject-4bbfa37031017b9f.rlib       librustc_demangle-d987a56c328827e5.rlib             libstd_detect-cf3cdd655689b063.rlib
libcompiler_builtins-9bfd52bc78369877.rlib  libhashbrown-06aa1b00a4ac11fb.rlib  libpanic_abort-91efa2f4e3051c3f.rlib  librustc_std_workspace_alloc-5894bc93779fa041.rlib  libsysroot-bcec41c60c9f169c.rlib
14:10:03
@cleverca22:matrix.orgcleverca22ah wait, it wants the SOURCE for wasm32!14:11:34
@cleverca22:matrix.orgcleverca22 K900: any ideas? 14:14:40
@k900:0upti.meK900It should be the same source always14:14:53

Show newer messages


Back to Room ListRoom Version: 6