stack --version
3.9.3 x86_64 hpack-0.39.1
Please use the following schema for your bug report:
Steps to reproduce
flake:
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux"; # Adjust for your system
pkgs = import nixpkgs { inherit system; };
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = [
pkgs.cabal-install
pkgs.stack
pkgs.haskell.compiler.ghc910 # Match your Stack resolver's GHC
pkgs.zlib # Example of a C library dependency
pkgs.pkg-config
#pkgs.OpenGL
pkgs.freeglut
#pkgs.gl
#pkgs.GLUT
#pkgs.GLUtil
pkgs.libGL
pkgs.libGLU
];
};
};
}
stack yamal:
snapshot: lts-24.41
#nix: # nix corupted package
enable: true
packages:
freeglut
zlib
I get:
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the following errors:
/home/stepan/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_O_vy6YIf_3.12.1.0_ghc-9.10.3: startProcess: posix_spawnp: does not exist (No such file or directory)
HasCallStack backtrace:
collectBacktraces, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:169:13 in ghc-internal:GHC.Internal.Exception
toExceptionWithBacktrace, called at libraries/ghc-internal/src/GHC/Internal/IO.hs:260:11 in ghc-internal:GHC.Internal.IO
throwIO, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:315:19 in ghc-internal:GHC.Internal.IO.Exception
ioException, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:319:20 in ghc-internal:GHC.Internal.IO.Exception
Also when ghci:
Warning: Didn't find expected autogen file: /home/stepan/Documents/GitHub/Axon-space-hs/.stack-work/dist/x86_64-linux-nix/ghc-9.10.3/build/autogen/cabal_macros.h
Warning: Didn't find expected autogen file: /home/stepan/Documents/GitHub/Axon-space-hs/.stack-work/dist/x86_64-linux-nix/ghc-9.10.3/build/Axon-space-exe/autogen/cabal_macros.h
Method of installation
nixos flake.
Platform
x86_64
Please use the following schema for your bug report:
Steps to reproduce
flake:
stack yamal:
I get:
Also when ghci:
Method of installation
nixos flake.
Platform
x86_64