haskell.nix icon indicating copy to clipboard operation
haskell.nix copied to clipboard

GHC 9.8.1 fails to build

Open chessai opened this issue 2 years ago • 2 comments

ghc> | Run Ghc CompileCWithGhc (Stage0 InTreeLibs): libraries/unix/cbits/HsUnix.c => _build/stage0/libraries/unix/build/c/cbits/HsUnix.o
ghc> Command line: _build/stageBoot/bin/hsc2hs --cc=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/cc --ld=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/cc --cross-safe -I/nix/store/fy11na5n20fpllg9mkfgkv94km57f81d-gmp-with-cxx-6.2.1-dev/include --cflag=-I_build/stage0/libraries/unix/build --cflag=-I_build/stage0/libraries/unix/build/include --cflag=-Ilibraries/unix/include --cflag=-I/build/ghc-9.8.1/libraries/time/lib/include --cflag=-I/build/ghc-9.8.1/_build/stage0/libraries/time/build/lib/include --cflag=-I/build/ghc-9.8.1/libraries/bytestring/include --cflag=-I/build/ghc-9.8.1/_build/stage0/libraries/bytestring/build/include --cflag=-I/nix/store/vbk627lfh5xk8wxphnlw5xrxyiijm8kq-ghc-9.4.3/lib/ghc-9.4.3/base-4.17.0.0/include --cflag=-I/nix/store/fy11na5n20fpllg9mkfgkv94km57f81d-gmp-with-cxx-6.2.1-dev/include --cflag=-I/nix/store/vbk627lfh5xk8wxphnlw5xrxyiijm8kq-ghc-9.4.3/lib/ghc-9.4.3/ghc-bignum-1.3/include --cflag=-I/nix/store/vbk627lfh5xk8wxphnlw5xrxyiijm8kq-ghc-9.4.3/lib/ghc-9.4.3/rts/include --cflag=-I/nix/store/40q4166vs7c5v5qx2si6b5fdvjml3p5p-libffi-3.4.4-dev/include --cflag=-Wall --cflag=-Werror=unused-but-set-variable --cflag=-Wno-error=inline --cflag=-include --cflag=_build/stage0/libraries/unix/build/autogen/cabal_macros.h --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Dlinux_HOST_OS=1 --cflag=-D__GLASGOW_HASKELL__=904 --template=/build/ghc-9.8.1/_build/stageBoot/lib/template-hsc.h libraries/unix/System/Posix/Files/Common.hsc -o _build/stage0/libraries/unix/build/System/Posix/Files/Common.hs
ghc> ===> Command failed with error code: 1
ghc> compiling _build/stage0/libraries/unix/build/System/Posix/Files/Common_hsc_make.c failed (exit code 1)
ghc> rsp file was: "_build/stage0/libraries/unix/build/System/Posix/Files/hsc2hscall30893-0.rsp"
ghc> command was: /nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/cc -c _build/stage0/libraries/unix/build/System/Posix/Files/Common_hsc_make.c -o _build/stage0/libraries/unix/build/System/Posix/Files/Common_hsc_make.o -I/nix/store/fy11na5n20fpllg9mkfgkv94km57f81d-gmp-with-cxx-6.2.1-dev/include -I_build/stage0/libraries/unix/build -I_build/stage0/libraries/unix/build/include -Ilibraries/unix/include -I/build/ghc-9.8.1/libraries/time/lib/include -I/build/ghc-9.8.1/_build/stage0/libraries/time/build/lib/include -I/build/ghc-9.8.1/libraries/bytestring/include -I/build/ghc-9.8.1/_build/stage0/libraries/bytestring/build/include -I/nix/store/vbk627lfh5xk8wxphnlw5xrxyiijm8kq-ghc-9.4.3/lib/ghc-9.4.3/base-4.17.0.0/include -I/nix/store/fy11na5n20fpllg9mkfgkv94km57f81d-gmp-with-cxx-6.2.1-dev/include -I/nix/store/vbk627lfh5xk8wxphnlw5xrxyiijm8kq-ghc-9.4.3/lib/ghc-9.4.3/ghc-bignum-1.3/include -I/nix/store/vbk627lfh5xk8wxphnlw5xrxyiijm8kq-ghc-9.4.3/lib/ghc-9.4.3/rts/include -I/nix/store/40q4166vs7c5v5qx2si6b5fdvjml3p5p-libffi-3.4.4-dev/include -Wall -Werror=unused-but-set-variable -Wno-error=inline -include _build/stage0/libraries/unix/build/autogen/cabal_macros.h -Dx86_64_HOST_ARCH=1 -Dlinux_HOST_OS=1 -D__GLASGOW_HASKELL__=904
ghc> error: In file included from /nix/store/4pqv2mwdn88h7xvsm7a5zplrd8sxzvw0-glibc-2.35-163-dev/include/dlfcn.h:24,
ghc>                  from libraries/unix/include/HsUnix.h:87,
ghc>                  from Common.hsc:32:
ghc> Common.hsc: In function ‘main’:
ghc> Common.hsc:1164:29: error: ‘struct statx’ has no member named ‘stx_mnt_id’; did you mean ‘stx_uid’?
ghc> Common.hsc:1164:5: note: in expansion of macro ‘hsc_peek’
ghc> 0;Finished in 1m14sError when running Shake build system:
ghc>   at action, called at src/Rules.hs:39:19 in main:Rules
ghc>   at need, called at src/Rules.hs:61:5 in main:Rules
ghc> * Depends on: _build/stage0/lib/package.conf.d/unix-2.8.3.0-inplace.conf
ghc>   at need, called at src/Rules/Register.hs:146:5 in main:Rules.Register
ghc> * Depends on: _build/stage0/libraries/unix/build/stamp-unix-2.8.3.0-inplace
ghc>   at need, called at src/Rules/Library.hs:144:3 in main:Rules.Library
ghc> * Depends on: _build/stage0/libraries/unix/build/System/Posix/Files/Common.hs
ghc>   at cmd', called at src/Builder.hs:389:23 in main:Builder
ghc>   at cmdArgs, called at src/Builder.hs:552:8 in main:Builder
ghc>   at cmdArgs, called at src/Builder.hs:576:18 in main:Builder
ghc>   at cmdArgs, called at src/Builder.hs:576:18 in main:Builder
ghc>   at error, called at src/Builder.hs:621:13 in main:Builder
ghc> * Raised the exception:
ghc> Command failed
ghc> Build failed.
error: builder for '/nix/store/inh7pr4wl7rcvnh5sd0idcvx90wgpfyw-ghc-9.8.1.drv' failed with exit code 1;
       last 10 log lines:
       > * Depends on: _build/stage0/libraries/unix/build/System/Posix/Files/Common.hs
       >   at cmd', called at src/Builder.hs:389:23 in main:Builder
       >   at cmdArgs, called at src/Builder.hs:552:8 in main:Builder
       >   at cmdArgs, called at src/Builder.hs:576:18 in main:Builder
       >   at cmdArgs, called at src/Builder.hs:576:18 in main:Builder
       >   at error, called at src/Builder.hs:621:13 in main:Builder
       > * Raised the exception:
       > Command failed
       >
       > Build failed.
       For full logs, run 'nix log /nix/store/inh7pr4wl7rcvnh5sd0idcvx90wgpfyw-ghc-9.8.1.drv'.
error: 1 dependencies of derivation '/nix/store/98vjlfdggc4nph6r6fgvkw0wgin73wqi-ghc-boot-src.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ba0z6d8viradqizd5fsp7hspnj931z4n-ghc-src.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sv5vblsl7k5ql99rlxkfiaq352dsd3yk-ghc981-ghc-boot-package.nix.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6zgpw53i0vsmzirqn32rl3s2frz9j9d6-ghc981-boot-packages-nix.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gync5aaigzrkd11xn43x6bv46km09vq5-ghc981-boot-packages-nix.nix.drv' failed to build
(use '--show-trace' to show detailed location information)

haskell.nix and hackage.nix versions:

❯ cat flake.lock | jq '.nodes.haskellNix'
{
  "inputs": {
    "HTTP": "HTTP",
    "cabal-32": "cabal-32",
    "cabal-34": "cabal-34",
    "cabal-36": "cabal-36",
    "cardano-shell": "cardano-shell",
    "flake-compat": "flake-compat",
    "ghc-8.6.5-iohk": "ghc-8.6.5-iohk",
    "ghc980": "ghc980",
    "ghc99": "ghc99",
    "hackage": [
      "hackage"
    ],
    "hls-1.10": "hls-1.10",
    "hls-2.0": "hls-2.0",
    "hls-2.2": "hls-2.2",
    "hls-2.3": "hls-2.3",
    "hpc-coveralls": "hpc-coveralls",
    "hydra": "hydra",
    "iserv-proxy": "iserv-proxy",
    "nixpkgs": [
      "haskellNix",
      "nixpkgs-unstable"
    ],
    "nixpkgs-2003": "nixpkgs-2003",
    "nixpkgs-2105": "nixpkgs-2105",
    "nixpkgs-2111": "nixpkgs-2111",
    "nixpkgs-2205": "nixpkgs-2205",
    "nixpkgs-2211": "nixpkgs-2211",
    "nixpkgs-2305": "nixpkgs-2305",
    "nixpkgs-unstable": "nixpkgs-unstable",
    "old-ghc-nix": "old-ghc-nix",
    "stackage": "stackage"
  },
  "locked": {
    "lastModified": 1697071802,
    "narHash": "sha256-GhvjE6VBWJgXCaueQKlFcCic6PSbK/kUtAHCslrbU/s=",
    "owner": "input-output-hk",
    "repo": "haskell.nix",
    "rev": "ceaacee41d6267d2298b10c04374bb5b91af3a38",
    "type": "github"
  },
  "original": {
    "owner": "input-output-hk",
    "repo": "haskell.nix",
    "type": "github"
  }
}
❯ cat flake.lock | jq '.nodes.hackage'
{
  "flake": false,
  "locked": {
    "lastModified": 1697070111,
    "narHash": "sha256-9Ph2BVOxLOlmRfZkqx0pBzItP0l+akeGlLyvaB3NG7Y=",
    "owner": "input-output-hk",
    "repo": "hackage.nix",
    "rev": "74a69b6144a3b159808167a02c4d0aa07125c391",
    "type": "github"
  },
  "original": {
    "owner": "input-output-hk",
    "repo": "hackage.nix",
    "type": "github"
  }
}

chessai avatar Oct 12 '23 17:10 chessai

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 09 '24 22:02 stale[bot]

@hamishmack have fixed this yet?

angerman avatar Feb 11 '24 09:02 angerman