Skip to content

Rustc broken on musl #179242

@wyndon

Description

@wyndon

Describe the bug

Rustc doesn't build on musl

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build nixpkgs#pkgsMusl.rustc

Additional context

error: builder for '/nix/store/m2yscndj8c3z3c4ni12glqkl4x8s7xv4-rustc-1.61.0.drv' failed with exit code 2;
       last 10 log lines:
       > Error relocating /nix/store/yr7ad24lix8ffnm1h9w6pfc7h704m4cr-cargo-bootstrap-1.60.0/bin/.cargo-wrapped: _Unwind_DeleteException: symbol not found
       > Error relocating /nix/store/yr7ad24lix8ffnm1h9w6pfc7h704m4cr-cargo-bootstrap-1.60.0/bin/.cargo-wrapped: _Unwind_RaiseException: symbol not found
       > Error relocating /nix/store/yr7ad24lix8ffnm1h9w6pfc7h704m4cr-cargo-bootstrap-1.60.0/bin/.cargo-wrapped: _Unwind_GetIP: symbol not found
       > Error relocating /nix/store/yr7ad24lix8ffnm1h9w6pfc7h704m4cr-cargo-bootstrap-1.60.0/bin/.cargo-wrapped: _Unwind_Backtrace: symbol not found
       > Error relocating /nix/store/yr7ad24lix8ffnm1h9w6pfc7h704m4cr-cargo-bootstrap-1.60.0/bin/.cargo-wrapped: _Unwind_GetCFA: symbol not found
       > Error relocating /nix/store/yr7ad24lix8ffnm1h9w6pfc7h704m4cr-cargo-bootstrap-1.60.0/bin/.cargo-wrapped: _Unwind_GetLanguageSpecificData: symbol not found
       > Error relocating /nix/store/yr7ad24lix8ffnm1h9w6pfc7h704m4cr-cargo-bootstrap-1.60.0/bin/.cargo-wrapped: _Unwind_SetIP: symbol not found
       > failed to run: /nix/store/yr7ad24lix8ffnm1h9w6pfc7h704m4cr-cargo-bootstrap-1.60.0/bin/cargo build --manifest-path /build/rustc-1.61.0-src/src/bootstrap/Cargo.toml --frozen
       > Build completed unsuccessfully in 0:00:00
       > make: *** [Makefile:12: all] Error 1
       For full logs, run 'nix log /nix/store/m2yscndj8c3z3c4ni12glqkl4x8s7xv4-rustc-1.61.0.drv'.

Notify maintainers

@madjar @cstrahan @globin @Havvy

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.18.1-xanmod1, NixOS, 22.11 (Raccoon), 22.11.20220625.66e8dce`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.9.1`
 - channels(root): `"nixos"`
 - channels(wyndon): `""`
 - nixpkgs: `/nix/store/4ax73lz8i9v7jl6llsaqb1lnwal3w1qr-source`

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: muslRunning or building packages with musl libc6.topic: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions