Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Segfaults instantly on NixOS #130

@jansol

Description

@jansol

Tried installing cargo-gpu on NixOS from a local checkout as instructed in the readme: cargo install --path cargo-gpu/ and it succeeded (when done in a dev environment with a C compiler: nix shell nixpkgs#gcc). However attempting to run any cargo gpu subcommand would result in an immediate segmentation fault.

Since GDB wasn't showing anything useful either (backtrace was just _start followed by ??????? which was already the crash site) I tried cargo install --path cargo-gpu/ --profile dev, which made it produce a different error message:

$ cargo gpu help
Inconsistency detected by ld.so: ../sysdeps/x86_64/dl-machine.h: 498: elf_machine_rela_relative: Assertion `ELFW(R_TYPE) (reloc->r_info) == R_X86_64_RELATIVE' failed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions