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

'stack install' fails #7

Open
tuomohopia opened this issue Mar 21, 2020 · 2 comments
Open

'stack install' fails #7

tuomohopia opened this issue Mar 21, 2020 · 2 comments

Comments

@tuomohopia
Copy link

Something seems to kill the stack install process on my PC:

--  While building package haskell-gi-base-0.21.5 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6.5.exe --builddir=.stack-work\dist\e626a42b configure --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\062a0412\pkgdb --libdir=C:\sr\snapshots\062a0412\lib --bindir=C:\sr\snapshots\062a0412\bin --datadir=C:\sr\snapshots\062a0412\share --libexecdir=C:\sr\snapshots\062a0412\libexec --sysconfdir=C:\sr\snapshots\062a0412\etc --docdir=C:\sr\snapshots\062a0412\doc\haskell-gi-base-0.21.5 --htmldir=C:\sr\snapshots\062a0412\doc\haskell-gi-base-0.21.5 --haddockdir=C:\sr\snapshots\062a0412\doc\haskell-gi-base-0.21.5 --dependency=base=base-4.12.0.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=containers=containers-0.6.0.1 --dependency=text=text-1.2.3.1 --extra-include-dirs=C:\Users\tuomo\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\include --extra-lib-dirs=C:\Users\tuomo\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib --extra-lib-dirs=C:\Users\tuomo\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin --exact-configuration --ghc-option=-fhide-source-paths
    Process exited with code: ExitFailure 1
Progress 39/58

Am I missing some required deps here or just doing something wrong?

I also tried adjusting the stack.yaml lts to lts-14.3 (GHC 8.6.5).

@runeksvendsen
Copy link

It's possible your OS is killing stack because it's using too much memory. Try adding the -j1 option to stack install to limit concurrent dependency building in order to reduce memory usage.

@mrehayden1
Copy link

It's possible you're missing the C library gobject-introspection-1.0. At least that's what was causing my build to fail at this same point.

See here for how to install the missing dep on various platforms.

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

No branches or pull requests

3 participants