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

Constructing the BuildPlan fails when using --enable-executable-profiling with nightly-2015-07-10 resolver #1331

Closed
nnmm opened this issue Nov 10, 2015 · 8 comments
Milestone

Comments

@nnmm
Copy link

nnmm commented Nov 10, 2015

This is probably related to #1188, but that is marked as closed and has different error messages. I want to compile my executable with profiling enabled using the nightly-2015-07-10 resolver.

Steps to reproduce

git clone https://github.com/simonmar/par-tutorial.git
cd par-tutorial
stack new prof-example
cd prof-example

In prof-example.cabal, replace the default library, executable and test with

executable sudoku2
  hs-source-dirs:      ../code
  main-is:             sudoku2.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base
                     , array
                     , deepseq
                     , parallel
  default-language:    Haskell2010

No problems here:

stack install --enable-executable-profiling --enable-library-profiling --ghc-options="-fprof-auto -rtsopts -threaded"
sudoku2 ../code/sudoku17.1000.txt

Then, change the resolver to nightly-2015-07-10

Expected
A successful build, like with the lts-3.9 resolver, or at least a helpful error message.

Actual
Trying the same command as above, with --verbose:

 stack install --enable-executable-profiling --enable-library-profiling --ghc-options="-fprof-auto -rtsopts -threaded" --verbose
Version 0.1.7.0, Git revision 1c08f2b6fc939db3eac770b3d85c3bbdb9483209 x86_64
2015-11-10 18:09:50.932069: [debug] Checking for project config at: my-project-dir/par-tutorial/prof-example/stack.yaml @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Config src/Stack/Config.hs:555:9)
2015-11-10 18:09:50.933654: [debug] Loading project config file stack.yaml @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Config src/Stack/Config.hs:578:13)
2015-11-10 18:09:50.935794: [debug] Run process: ldd my-home-dir/.local/bin/stack @(stack_1qCQzKMpF5B2dxtC0o3K2h:System.Process.Read src/System/Process/Read.hs:273:3)
2015-11-10 18:09:50.955277: [debug] Trying to decode my-home-dir/.stack/build-plan-cache/x86_64-linux/nightly-2015-07-10.cache @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-11-10 18:09:50.962355: [debug] Success decoding my-home-dir/.stack/build-plan-cache/x86_64-linux/nightly-2015-07-10.cache @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-11-10 18:09:50.962556: [debug] Trying to decode my-home-dir/.stack/indices/Hackage/00-index.cache @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-11-10 18:09:51.166180: [debug] Success decoding my-home-dir/.stack/indices/Hackage/00-index.cache @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-11-10 18:09:51.182776: [debug] Run process: ghc --info @(stack_1qCQzKMpF5B2dxtC0o3K2h:System.Process.Read src/System/Process/Read.hs:273:3)
2015-11-10 18:09:51.222545: [debug] Run process: ghc --numeric-version @(stack_1qCQzKMpF5B2dxtC0o3K2h:System.Process.Read src/System/Process/Read.hs:273:3)
2015-11-10 18:09:51.247170: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal version @(stack_1qCQzKMpF5B2dxtC0o3K2h:System.Process.Read src/System/Process/Read.hs:273:3)
2015-11-10 18:09:51.271361: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_1qCQzKMpF5B2dxtC0o3K2h:System.Process.Read src/System/Process/Read.hs:273:3)
2015-11-10 18:09:51.291671: [debug] Run process: locale -a @(stack_1qCQzKMpF5B2dxtC0o3K2h:System.Process.Read src/System/Process/Read.hs:273:3)
2015-11-10 18:09:51.297294: [debug] Checking resolver: nightly-2015-07-10 @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Source src/Stack/Build/Source.hs:162:17)
2015-11-10 18:09:51.297487: [debug] Trying to decode my-home-dir/.stack/build-plan-cache/x86_64-linux/nightly-2015-07-10.cache @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-11-10 18:09:51.302971: [debug] Success decoding my-home-dir/.stack/build-plan-cache/x86_64-linux/nightly-2015-07-10.cache @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-11-10 18:09:51.307480: [debug] Trying to decode my-project-dir/par-tutorial/prof-example/.stack-work/installed-cache.bin @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-11-10 18:09:51.308193: [debug] Success decoding my-project-dir/par-tutorial/prof-example/.stack-work/installed-cache.bin @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-11-10 18:09:51.308371: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack_1qCQzKMpF5B2dxtC0o3K2h:System.Process.Read src/System/Process/Read.hs:273:3)
2015-11-10 18:09:51.336828: [debug] Ignoring package ghc due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.337147: [debug] Ignoring package haskeline due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.337260: [debug] Ignoring package terminfo due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.337362: [debug] Ignoring package xhtml due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.337461: [debug] Ignoring package transformers due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.337559: [debug] Ignoring package hoopl due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.337658: [debug] Ignoring package bin-package-db due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.337756: [debug] Ignoring package Cabal due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.337854: [debug] Ignoring package binary due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.337949: [debug] Ignoring package template-haskell due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338046: [debug] Ignoring package pretty due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338200: [debug] Ignoring package hpc due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338296: [debug] Ignoring package process due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338391: [debug] Ignoring package directory due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338488: [debug] Ignoring package unix due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338582: [debug] Ignoring package time due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338677: [debug] Ignoring package containers due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338772: [debug] Ignoring package bytestring due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338868: [debug] Ignoring package deepseq due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.338963: [debug] Ignoring package array due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.339095: [debug] Ignoring package filepath due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.339193: [debug] Ignoring package base due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.339300: [debug] Ignoring package integer-gmp due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.339396: [debug] Ignoring package ghc-prim due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.339553: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/ dump --expand-pkgroot @(stack_1qCQzKMpF5B2dxtC0o3K2h:System.Process.Read src/System/Process/Read.hs:273:3)
2015-11-10 18:09:51.381287: [debug] Ignoring package aeson, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.381498: [debug] Ignoring package zeromq4-haskell, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.381609: [debug] Ignoring package attoparsec, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.381818: [debug] Ignoring package semigroups, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.381933: [debug] Ignoring package unordered-containers, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.382119: [debug] Ignoring package scientific, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.382226: [debug] Ignoring package hashable, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.382330: [debug] Ignoring package text, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.382432: [debug] Ignoring package vector, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.382534: [debug] Ignoring package zlib, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.382636: [debug] Ignoring package wl-pprint, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.382739: [debug] Ignoring package exceptions, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.382880: [debug] Ignoring package monad-parallel, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.382987: [debug] Ignoring package tar, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.383089: [debug] Ignoring package transformers-compat, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.383191: [debug] Ignoring package async, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.383294: [debug] Ignoring package syb, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.383395: [debug] Ignoring package primitive, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.383498: [debug] Ignoring package stm, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.383626: [debug] Ignoring package mtl, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.383730: [debug] Ignoring package parallel, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.383833: [debug] Ignoring package dlist, from (InstalledTo Snap,"my-home-dir/.stack/snapshots/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/"), due to  it needing profiling. @(stack_1qCQzKMpF5B2dxtC0o3K2h:Stack.Build.Installed src/Stack/Build/Installed.hs:190:5)
2015-11-10 18:09:51.396956: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db my-project-dir/par-tutorial/prof-example/.stack-work/install/x86_64-linux/nightly-2015-07-10/7.10.1.20150522/pkgdb/ dump --expand-pkgroot @(stack_1qCQzKMpF5B2dxtC0o3K2h:System.Process.Read src/System/Process/Read.hs:273:3)
2015-11-10 18:09:51.423617: [debug] Trying to decode my-home-dir/.stack/indices/Hackage/00-index.cache @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-11-10 18:09:51.599981: [debug] Success decoding my-home-dir/.stack/indices/Hackage/00-index.cache @(stack_1qCQzKMpF5B2dxtC0o3K2h:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
While constructing the BuildPlan the following exceptions were encountered:

--  Failure when adding dependencies:    
      base: needed (>=4.5 && <4.9), not present in build plan (latest is 4.8.1.0)
    needed for package: array-0.5.1.0

--  While attempting to add dependency,
    Could not find package base in known packages

--  Failure when adding dependencies:    
      array: needed (-any), couldn't resolve its dependencies
      base: needed (>=4.2 && <5), not present in build plan (latest is 4.8.1.0)
      deepseq: needed (>=1.2 && <1.5), couldn't resolve its dependencies
      ghc-prim: needed (-any), not present in build plan (latest is 0.4.0.0)
    needed for package: containers-0.5.6.2

--  Failure when adding dependencies:    
      array: needed (>=0.3 && <0.6), couldn't resolve its dependencies
      base: needed (==4.3.* || >=4.5 && <4.9), not present in build plan (latest is 4.8.1.0)
    needed for package: deepseq-1.4.1.1

--  While attempting to add dependency,
    Could not find package ghc-prim in known packages

--  Failure when adding dependencies:    
      array: needed (>=0.3 && <0.6), couldn't resolve its dependencies
      base: needed (>=4.3 && <4.9), not present in build plan (latest is 4.8.1.0)
      containers: needed (>=0.4 && <0.6), couldn't resolve its dependencies
      deepseq: needed (>=1.1 && <1.5), couldn't resolve its dependencies
    needed for package: parallel-3.2.0.6

--  Failure when adding dependencies:    
      array: needed (-any), couldn't resolve its dependencies
      base: needed (-any), not present in build plan (latest is 4.8.1.0)
      deepseq: needed (-any), couldn't resolve its dependencies
      parallel: needed (-any), couldn't resolve its dependencies
    needed for package: prof-example-0.1.0.0

Recommended action: try adding the following to your extra-deps in my-project-dir/par-tutorial/prof-example/stack.yaml
- base-4.8.1.0
- ghc-prim-0.4.0.0

You may also want to try the 'stack solver' command


Adding those extra-deps doesn't change anything, neither does "stack clean", disabling all ghc-options in the cabal file, deleting .stack/ and upgrading stack (now on the newest version from git: Version 0.1.7.0, Git revision 1c08f2b x86_64), none of which helped. 'stack solver' is also unhelpful.

The computer is running Ubuntu 14.04.

@afriesen-imvu
Copy link

Did you by chance get GHC from a Debian package?

I see the same thing, but the problem does not occur if I get stack to download GHC.

Edit: I think I've got it. You probably to install a separate package to get profiling-enabled binaries for base, ghc-prim, and so forth. If you are using the packages provided by haskell.org, it will be named something like ghc-7.10.2-prof.

@mgsloan mgsloan modified the milestones: P2: Should, P1: Must Nov 10, 2015
@borsboom
Copy link
Contributor

borsboom commented Nov 18, 2015 via email

@mgsloan
Copy link
Contributor

mgsloan commented Nov 18, 2015

Thanks for the detailed repro steps, but it didn't repro for me. Considering I don't have GHC from a debian package, it seems likely that @afriesen-imvu 's explanation is correct.

@nnmm
Copy link
Author

nnmm commented Nov 19, 2015

I think I installed the Haskell platform before I installed stack, if that is what you mean. I'll try your suggestion of downloading GHC via stack (with stack setup, right?).

@borsboom
Copy link
Contributor

Yes, and you'll probably need to use stack --no-system-ghc to make it
ignore the system GHC.

On Thu, Nov 19, 2015 at 2:11 PM nnmm notifications@github.com wrote:

I think I installed the Haskell platform before I installed stack, if that
is what you mean. I'll try your suggestion of downloading GHC via stack
(with stack setup, right?).


Reply to this email directly or view it on GitHub
#1331 (comment)
.

@borsboom
Copy link
Contributor

I also think the action that should come from this issue is to improve the
error message in this case to make it clear that you need to install the
profiling libraries with your system GHC.

@nnmm
Copy link
Author

nnmm commented Nov 23, 2015

Yes,

stack setup --no-system-ghc
stack install --enable-executable-profiling --enable-library-profiling --ghc-options="-fprof-auto -rtsopts -threaded" --no-system-ghc

does it. Thanks for your help!

@mgsloan
Copy link
Contributor

mgsloan commented Nov 23, 2015

I've split off #1407 for better error messaging.

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

4 participants