Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with wasmer when building #13

Open
shankarchawla1776 opened this issue Aug 4, 2024 · 2 comments
Open

Error with wasmer when building #13

shankarchawla1776 opened this issue Aug 4, 2024 · 2 comments

Comments

@shankarchawla1776
Copy link

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!

@XNM1
Copy link
Owner

XNM1 commented Aug 11, 2024

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

@XNM1
Copy link
Owner

XNM1 commented Aug 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants