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

Possible ghc-9.8.1 configuration error #277857

Closed
rkaippully opened this issue Dec 31, 2023 · 3 comments
Closed

Possible ghc-9.8.1 configuration error #277857

rkaippully opened this issue Dec 31, 2023 · 3 comments

Comments

@rkaippully
Copy link

Describe the bug

On e1fa12d, ghc981.ghcWithPackages seems to be broken.

Steps To Reproduce

$ nix-shell -I nixpkgs=./. -p 'haskell.packages.ghc981.ghcWithPackages (p: [p.double-conversion])'
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'shell'
         whose name attribute is located at <redacted>/pkgs/stdenv/generic/make-derivation.nix:348:7

       … while evaluating attribute 'buildInputs' of derivation 'shell'

         at <redacted>/pkgs/stdenv/generic/make-derivation.nix:395:7:

          394|       depsHostHost                = elemAt (elemAt dependencies 1) 0;
          395|       buildInputs                 = elemAt (elemAt dependencies 1) 1;
             |       ^
          396|       depsTargetTarget            = elemAt (elemAt dependencies 2) 0;

       error: function 'anonymous lambda' called without required argument 'system-cxx-std-lib'

       at <redacted>/pkgs/development/haskell-modules/hackage-packages.nix:91530:6:

        91529|   "double-conversion" = callPackage
        91530|     ({ mkDerivation, base, bytestring, ghc-prim, HUnit
             |      ^
        91531|      , system-cxx-std-lib, test-framework, test-framework-hunit

Additional context

I noticed that pkgs/development/haskell-modules/configuration-ghc-<version>.nix contains system-cxx-std-lib = null; for all versions except 9.8.x. Is that intentional or a bug?

Notify maintainers

@NixOS/haskell

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 6.1.68, NixOS, 23.11 (Tapir), 23.11.2082.d02ffbbe834b`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos-23.11"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@SFrijters
Copy link
Member

I encountered the same issue, but I think it should be fixed on master now via #272097 .

@rkaippully
Copy link
Author

Thank you @SFrijters. Closing this.

@gnubufferoverflows
Copy link
Contributor

What was the solution to this issue? Today I just ran into this error:

       … while calling the 'head' builtin

         at /nix/store/i4sacd54za62brl1kh6m4k3jv9lr6dpk-nixos-23.11.5648.44733514b72e/nixos/lib/attrsets.nix:922:11:

          921|         || pred here (elemAt values 1) (head values) then
          922|           head values
             |           ^
          923|         else

       … while evaluating the attribute 'value'

         at /nix/store/i4sacd54za62brl1kh6m4k3jv9lr6dpk-nixos-23.11.5648.44733514b72e/nixos/lib/modules.nix:807:9:

          806|     in warnDeprecation opt //
          807|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          808|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: function 'anonymous lambda' called without required argument 'system-cxx-std-lib'

       at /nix/store/i4sacd54za62brl1kh6m4k3jv9lr6dpk-nixos-23.11.5648.44733514b72e/nixos/pkgs/development/haskell-modules/hackage-packages.nix:91590:6:

        91589|   "double-conversion" = callPackage
        91590|     ({ mkDerivation, base, bytestring, ghc-prim, HUnit
             |      ^
        91591|      , system-cxx-std-lib, test-framework, test-framework-hunit

I am also trying to install haskell-language-server for 9.8.1

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.82, NixOS, 23.11 (Tapir), 23.11.5648.44733514b72e`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

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

No branches or pull requests

3 participants