portnov / ghcprofview-hs

GHC .prof files viewer
http://hackage.haskell.org/package/ghcprofview
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

'stack install' fails #7

Open tuomohopia opened 4 years ago

tuomohopia commented 4 years ago

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 commented 4 years ago

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 commented 2 months ago

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.