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

Build failure: ttop #347429

Closed
ProxyVT opened this issue Oct 9, 2024 · 1 comment · Fixed by #347577
Closed

Build failure: ttop #347429

ProxyVT opened this issue Oct 9, 2024 · 1 comment · Fixed by #347577

Comments

@ProxyVT
Copy link

ProxyVT commented Oct 9, 2024

Steps To Reproduce

  1. Add ttop package to environment.systemPackages
  2. Run nixos-rebuild boot --flake

Build log

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/56qq1gcjahdgzba324dp1lzf6qmv0d3h-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
generating config.nims
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build job 0: nim compile --path:"/nix/store/q3m2aqlzzrx4jj5akbf8rah0gp40ya2v-source/src" --path:"/nix/store/3lmm3z36qn4gz7bfa209zv0pqrpm3di9-source/" --path:"/nix/store/ila4vdklhqs6h14gwyx71yrjbzwf54g3-source/src" --path:"/nix/store/nrgl>
Hint: used config file '/nix/store/jnxnn4cmy4cw8pwi9qfxxmyyx1drc31p-x86_64-unknown-linux-gnu-nim-wrapper-2.2.0/etc/nim/nim.cfg' [Conf]
Hint: used config file '/nix/store/jnxnn4cmy4cw8pwi9qfxxmyyx1drc31p-x86_64-unknown-linux-gnu-nim-wrapper-2.2.0/etc/nim/config.nims' [Conf]
Hint: used config file '/build/source/config.nims' [Conf]
......................................................................................................................................
/build/source/src/ttop/config.nim(42, 16) Hint: simpleGetOrDefault(toml, "light") --> 'getOrDefault(toml, "light")' [Pattern]
/build/source/src/ttop/config.nim(44, 17) Hint: simpleGetOrDefault(toml, "docker") --> 'getOrDefault(toml, "docker")' [Pattern]
/build/source/src/ttop/config.nim(47, 16) Hint: simpleGetOrDefault(toml, "trigger") --> 'getOrDefault(toml, "trigger")' [Pattern]
/build/source/src/ttop/config.nim(48, 19) Hint: simpleGetOrDefault(t, "on_info") --> 'getOrDefault(t, "on_info")' [Pattern]
/build/source/src/ttop/config.nim(49, 20) Hint: simpleGetOrDefault(t, "on_alert") --> 'getOrDefault(t, "on_alert")' [Pattern]
/build/source/src/ttop/config.nim(53, 15) Hint: simpleGetOrDefault(t, "debug") --> 'getOrDefault(t, "debug")' [Pattern]
/build/source/src/ttop/config.nim(54, 13) Hint: simpleGetOrDefault(t, "cmd") --> 'getOrDefault(t, "cmd")' [Pattern]
.............
/build/source/src/ttop/procfs.nim(174, 11) template/generic instantiation of `catchErr` from here
/build/source/src/ttop/procfs.nim(178, 9) Error: expression 'uint(float(hz) * f)' is of type 'uint' and has to be used (or discarded); start of expression here: /build/source/src/ttop/procfs.nim(174, 11)
build phase failed

Additional context

For build package I'm using nixos-unstable branch.

flake.lock
...
    "nixpkgs": {
      "locked": {
        "lastModified": 1728241625,
        "narHash": "sha256-yumd4fBc/hi8a9QgA9IT8vlQuLZ2oqhkJXHPKxH/tRw=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "c31898adf5a8ed202ce5bea9f347b1c6871f32d1",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
...

Notify maintainers

@figsoda @sikmir

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.11-lqx1, NixOS, 24.11 (Vicuna), 24.11.20241006.c31898a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.91.0
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/ulad/.config/nix/nix.conf:/nix/store/94f63l1cwclzaddsscc89bsw9g1pjj4n-cinnamon-settings-daemon-6.2.0/etc/xdg/nix/nix.conf:/nix/store/94f63l1cwclzaddsscc89bsw9g1pjj4n-cinnamon-settings-daemon-6.2.0/etc/xdg/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/ulad/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/ulad/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/ulad/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/cfl6rqw64ndbh2m0qapg410jf4xmycia-lix-2.91.0/share`
 - nixpkgs: `/nix/store/rs4fjbnw4qx7ns2hzzrz2iz52va7vs5z-source`

Add a 👍 reaction to issues you find important.

@jfvillablanca
Copy link
Member

ttop is very out of date in nixpkgs.
tried updating it to 1.5.2 but it fails to compile due to the parsetoml dependency

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

Successfully merging a pull request may close this issue.

2 participants