!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

697 Members
Rust156 Servers

Load older messages


SenderMessageTime
9 Apr 2025
@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
@cleverca22:matrix.orgcleverca22 ls: cannot access '/nix/store/0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0/lib/rustlib/src/rust': No such file or directory 14:15:09
@cleverca22:matrix.orgcleverca22its looking in here for wasm3214:15:14
@cleverca22:matrix.orgcleverca22 but its only in $out//lib/rustlib/wasm32-unknown-unknown/ 14:15:32
@cleverca22:matrix.orgcleverca22in a pre-compiled form14:15:37
@qyliss:fairydust.spaceAlyssa RossWhy does it need source?14:18:09
@cleverca22:matrix.orgcleverca22
In reply to @qyliss:fairydust.space
Why does it need source?

no idea, but thats what the error said:

Cannot compile the WASM runtime: no standard library sources found at /nix/store/0rn3apgrjdqrq6zpqsrh5b8dmlxbci42-rustc-1.85.0/lib/rustlib/src/rust
16:24:57
10 Apr 2025
@anselmetombarel:matrix.organselmetombarel joined the room.14:46:14
@sdht0:matrix.orgsdht0 joined the room.17:00:07
@tobi34:matrix.orgtobi34It seems that https://github.com/nix-community/fenix.git does not have the current rust stable version 1.86.0. Is there a workaround to get rust 1.86.0 with fenix ?19:20:12
@k900:0upti.meK900It should presumably update after the fix that was just merged19:22:06

Show newer messages


Back to Room ListRoom Version: 6