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

nix build causes SIGBUS #97

Open
ralfbiedert opened this issue Jan 1, 2023 · 0 comments
Open

nix build causes SIGBUS #97

ralfbiedert opened this issue Jan 1, 2023 · 0 comments

Comments

@ralfbiedert
Copy link

ralfbiedert commented Jan 1, 2023

I just installed a fresh copy of NixOS on my Raspberry Pi 4B and tried to get my Hyperpixel panel to work. Connecting the panel and trying to compile this flake from the unit, I get a reproducible SIGBUS error message:

> nix build github:lovesegfault/hyperpixel-init
error: builder for '/nix/store/09dfw6akknpj62b878pgg68kyqn0isn4-hyperpixel_init-deps-aarch64-unknown-linux-musl-0.1.0.drv' failed with exit code 101;
       last 10 log lines:
       > Executing configureCargoCommonVars
       > updateAutotoolsGnuConfigScriptsPhase
       > configuring
       > will append /build/dummy-src/.cargo-home/config.toml with contents of /nix/store/xqqvk835zgxlca6rln346kfqh9rk6gpx-vendor-cargo-deps/config.toml
       > no configure script, doing nothing
       > building
       > ++ command cargo --version
       > cargo 1.63.0 (fd9c4297c 2022-07-01)
       > ++ command cargo check --profile release --all-targets
       > error: process didn't exit successfully: `rustc -vV` (signal: 7, SIGBUS: access to undefined memory)
       For full logs, run 'nix log /nix/store/09dfw6akknpj62b878pgg68kyqn0isn4-hyperpixel_init-deps-aarch64-unknown-linux-musl-0.1.0.drv'.
error: 1 dependencies of derivation '/nix/store/hx5rjyabw575aq68nhkihd7ms1b613r2-hyperpixel_init-aarch64-unknown-linux-musl-0.1.0.drv' failed to build

Edit - the nix log ... output is:

cargoArtifacts not set, will not reuse any cargo artifacts
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/jjy32ybf05wibbnxf22v80rc9vca2z5h-dummy-src
source root is dummy-src
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Executing configureCargoCommonVars
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
will append /build/dummy-src/.cargo-home/config.toml with contents of /nix/store/xqqvk835zgxlca6rln346kfqh9rk6gpx-vendor-cargo-deps/config.toml
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
++ command cargo --version
cargo 1.63.0 (fd9c4297c 2022-07-01)
++ command cargo check --profile release --all-targets
error: process didn't exit successfully: `rustc -vV` (signal: 7, SIGBUS: access to undefined memory)
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

1 participant