Skip to content

nix-env --upgrade upgrades 'nix-2.3.10' to 'nix-2.3.10-x86_64-unknown-linux-musl' #118481

@fishy

Description

@fishy

Describe the bug
I'm running nixpkgs on Debian testing on amd64. After doing nix-channel --update && nix-env --upgrade it upgraded 'nix-2.3.10' to 'nix-2.3.10-x86_64-unknown-linux-musl'.

After that upgrade is done, nix-env --upgrade --show-trace complains about attribute 'unsafeDiscardStringContext' missing:

$ nix-env --upgrade --show-trace
error: while evaluating anonymous function at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/top-level/impure.nix:15:1, called from undefined position:
while evaluating anonymous function at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/top-level/default.nix:19:1, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/top-level/impure.nix:83:1:
while evaluating anonymous function at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/stdenv/booter.nix:42:1, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/top-level/default.nix:122:10:
while evaluating 'dfold' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/stdenv/booter.nix:60:27, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/stdenv/booter.nix:136:4:
while evaluating 'go' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/stdenv/booter.nix:63:18, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/stdenv/booter.nix:72:13:
while evaluating 'imap1' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/lists.nix:116:14, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/stdenv/booter.nix:78:30:
while evaluating 'reverseList' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/lists.nix:393:17, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/stdenv/booter.nix:85:6:
while evaluating anonymous function at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/stdenv/default.nix:7:1, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/top-level/default.nix:118:12:
while evaluating 'elaborate' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/systems/default.nix:18:15, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/pkgs/top-level/default.nix:52:17:
while evaluating 'foldl' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/lists.nix:80:20, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/systems/default.nix:149:13:
while evaluating 'foldl'' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/lists.nix:82:16, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/lists.nix:86:8:
while evaluating the attribute 'parsed.abi.assertions' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/systems/default.nix:23:7:
while evaluating 'mkSystemFromString' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/systems/parse.nix:462:24, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/systems/default.nix:23:16:
while evaluating 'mkSkeletonFromList' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/systems/parse.nix:382:24, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/systems/parse.nix:462:49:
while evaluating 'splitString' at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/strings.nix:427:23, called from /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/systems/parse.nix:462:69:
attribute 'unsafeDiscardStringContext' missing, at /nix/store/jfqj09iqymfjy7l9z1lk5pbslww8nvl0-nixpkgs-21.05pre280331.54c1e44240d/nixpkgs/lib/strings.nix:429:13

To Reproduce
Steps to reproduce the behavior:

  1. ...
  2. ...
  3. ...

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result. (NOTE: this is after I did nix-env --rollback)

  • system: "x86_64-linux"
  • host os: Linux 5.10.0-5-amd64, Debian GNU/Linux, noversion
  • multi-user?: no
  • sandbox: yes
  • version: nix-env (Nix) 2.3.10
  • channels(fishy): "nixpkgs-21.05pre280331.54c1e44240d"
  • nixpkgs: /home/fishy/.nix-defexpr/channels/nixpkgs

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: muslRunning or building packages with musl libc

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions