linux-nixos-hyprland-config-dotfiles icon indicating copy to clipboard operation
linux-nixos-hyprland-config-dotfiles copied to clipboard

Error with wasmer when building

Open shankarchawla1776 opened this issue 1 year ago β€’ 2 comments

Hello, I am new to NixOS and attempting to build this config on a mostly blank setup. I've followed the installation instructions but receive this error:

building the system configuration... error: builder for '/nix/store/i73mkiavr5qr6jmi0j9zgjvkihzbpaxc-wasmer-4.3.5.drv' failed with exit code 101; last 10 log lines: > 368 | fn location_test( > | ^^^^^^^^^^^^^ > ... > 385 | fn jmp_on_above(&mut self, label: Label) -> Result<(), CompileError>; > | ^^^^^^^^^^^^ > ... > 394 | fn jmp_on_overflow(&mut self, label: Label) -> Result<(), CompileError>; > | ^^^^^^^^^^^^^^^ > > warning: wasmer-compiler-singlepass (lib) generated 12 warnings For full logs, run 'nix log /nix/store/i73mkiavr5qr6jmi0j9zgjvkihzbpaxc-wasmer-4.3.5.drv'. error: 1 dependencies of derivation '/nix/store/v6rq497dfywl730w5k1bbdri5ppy94r7-man-paths.drv' failed to build error: 1 dependencies of derivation '/nix/store/v60q9fx4jfvjh9idgagjqcp3khj3l0wf-system-path.drv' failed to build error: 1 dependencies of derivation '/nix/store/wmpbdi03jyq6w9n900drkpf08mdxbhmj-wasmer-4.3.5_fish-completions.drv' failed to build error: 1 dependencies of derivation '/nix/store/dr4wjl6897s918f4x3m660d6651m87kx-nixos-system-nixos-24.11.20240802.d049530.drv' failed to build

when running sudo nixos-rebuild switch --flake /etc/nixos#nixos --update-input nixpkgs --update-input rust-overlay --commit-lock-file --upgrade.

and this error:

building the system configuration... error: builder for '/nix/store/i73mkiavr5qr6jmi0j9zgjvkihzbpaxc-wasmer-4.3.5.drv' failed with exit code 101; last 10 log lines: > 23 | IfElse { > | ------ fields in this variant > 24 | if_then: BasicBlock<'ctx>, > | ^^^^^^^ > ... > 27 | then_phis: SmallVec<[PhiValue<'ctx>; 1]>, > | ^^^^^^^^^ > > error: could not compile wasmer-compiler-llvm (lib) due to 2 previous errors > warning: build failed, waiting for other jobs to finish... For full logs, run 'nix log /nix/store/i73mkiavr5qr6jmi0j9zgjvkihzbpaxc-wasmer-4.3.5.drv'. error: 1 dependencies of derivation '/nix/store/v6rq497dfywl730w5k1bbdri5ppy94r7-man-paths.drv' failed to build error: 1 dependencies of derivation '/nix/store/v60q9fx4jfvjh9idgagjqcp3khj3l0wf-system-path.drv' failed to build error: 1 dependencies of derivation '/nix/store/wmpbdi03jyq6w9n900drkpf08mdxbhmj-wasmer-4.3.5_fish-completions.drv' failed to build error: 1 dependencies of derivation '/nix/store/dr4wjl6897s918f4x3m660d6651m87kx-nixos-system-nixos-24.11.20240802.d049530.drv' failed to build

when running sudo nixos-rebuild switch --flake /etc/nixos#nixos.

my hostname is 'nixos'.

Thank you!

shankarchawla1776 avatar Aug 04 '24 16:08 shankarchawla1776

For now comment out the wasmer package in the nixos/wasm.nix file, this package is not essential for the system.

XNM1 avatar Aug 11 '24 16:08 XNM1

For future reference:

When you build a NixOS system, it happens in a functional, even transactional manner. This means that if any packages fail to build, the entire system build will fail.

In my setup, I use many specific packages that you probably don't need and that aren't essential to the system. Additionally, because I use the unstable channel, there are often (in fact, with every manual update I perform weekly) some packages that fail to build.

If you encounter a similar error while building, rebuilding, or updating this system, identify which package is causing the failure. If it’s not a crucial part of the system, you can comment it out temporarily or delete it altogether if you don't need the package.

XNM1 avatar Aug 19 '24 18:08 XNM1