Opened 2 years ago

Closed 2 years ago

#10936 closed bug (fixed)

Can't fire up GHCi with Mueval

Reported by: bitemyapp Owned by:
Priority: normal Milestone: 8.0.1
Component: GHCi Version: 7.10.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: x86_64 (amd64)
Type of failure: Other Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D1314
Wiki Page:

Description

Cf. https://github.com/commercialhaskell/stack/issues/1094#issuecomment-145949397

$ stack ghci mueval:exe:mueval
Using main module: Package `mueval' component exe:mueval with main-is file: /home/callen/work/mueval/watchdog.hs
Configuring GHCi with the following packages: mueval
GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
ghc: --interactive can't be used with -prof or -unreg.
Usage: For basic information, try the `--help' option.
$ stack -v ghci mueval:exe:mueval
Version 0.1.5.0 X86_64
2015-10-06 20:40:02.88486: [debug] Checking for project config at: /home/callen/work/mueval/stack.yaml @(stack_Bp003b8iWaELtdr693pSPs:Stack.Config src/Stack/Config.hs:511:9)
2015-10-06 20:40:02.885018: [debug] Loading project config file stack.yaml @(stack_Bp003b8iWaELtdr693pSPs:Stack.Config src/Stack/Config.hs:534:13)
2015-10-06 20:40:02.885749: [debug] Run process: ldd /home/callen/.local/bin/stack @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:02.893986: [debug] Trying to decode /home/callen/.stack/build-plan-cache/x86_64-linux/lts-3.5.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-10-06 20:40:02.900069: [debug] Success decoding /home/callen/.stack/build-plan-cache/x86_64-linux/lts-3.5.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-10-06 20:40:02.900294: [debug] Run process: ghc --info @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:02.931936: [debug] Run process: ghc --numeric-version @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:02.948879: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal version @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:02.964055: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:02.979938: [debug] Run process: locale -a @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:02.981134: [debug] Checking resolver: lts-3.5 @(stack_Bp003b8iWaELtdr693pSPs:Stack.Build.Source src/Stack/Build/Source.hs:163:17)
2015-10-06 20:40:02.981242: [debug] Trying to decode /home/callen/.stack/build-plan-cache/x86_64-linux/lts-3.5.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-10-06 20:40:02.985054: [debug] Success decoding /home/callen/.stack/build-plan-cache/x86_64-linux/lts-3.5.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-10-06 20:40:02.989986: [debug] Checking resolver: lts-3.5 @(stack_Bp003b8iWaELtdr693pSPs:Stack.Build.Source src/Stack/Build/Source.hs:163:17)
2015-10-06 20:40:02.990098: [debug] Trying to decode /home/callen/.stack/build-plan-cache/x86_64-linux/lts-3.5.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-10-06 20:40:02.994056: [debug] Success decoding /home/callen/.stack/build-plan-cache/x86_64-linux/lts-3.5.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-10-06 20:40:02.995893: [debug] Trying to decode /home/callen/.stack/indices/Hackage/00-index.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-10-06 20:40:03.15333: [debug] Success decoding /home/callen/.stack/indices/Hackage/00-index.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-10-06 20:40:03.1727: [debug] Checking resolver: lts-3.5 @(stack_Bp003b8iWaELtdr693pSPs:Stack.Build.Source src/Stack/Build/Source.hs:163:17)
2015-10-06 20:40:03.172812: [debug] Trying to decode /home/callen/.stack/build-plan-cache/x86_64-linux/lts-3.5.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-10-06 20:40:03.17626: [debug] Success decoding /home/callen/.stack/build-plan-cache/x86_64-linux/lts-3.5.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-10-06 20:40:03.177793: [debug] Trying to decode /home/callen/.stack/indices/Hackage/00-index.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-10-06 20:40:03.338356: [debug] Success decoding /home/callen/.stack/indices/Hackage/00-index.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-10-06 20:40:03.343809: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:03.373571: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/callen/.stack/snapshots/x86_64-linux/lts-3.5/7.10.2/pkgdb/ dump --expand-pkgroot @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:03.483621: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/callen/work/mueval/.stack-work/install/x86_64-linux/lts-3.5/7.10.2/pkgdb/ dump --expand-pkgroot @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:03.498867: [debug] Trying to decode /home/callen/.stack/indices/Hackage/00-index.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-10-06 20:40:03.648263: [debug] Success decoding /home/callen/.stack/indices/Hackage/00-index.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-10-06 20:40:03.648411: [debug] Trying to decode /home/callen/.stack/indices/Hackage/00-index.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:53:5)
2015-10-06 20:40:03.806948: [debug] Success decoding /home/callen/.stack/indices/Hackage/00-index.cache @(stack_Bp003b8iWaELtdr693pSPs:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:62:13)
2015-10-06 20:40:03.872715: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_Bp003b8iWaELtdr693pSPs:System.Process.Read src/System/Process/Read.hs:259:3)
2015-10-06 20:40:03.888689: [info] Using main module: Package `mueval' component exe:mueval with main-is file: /home/callen/work/mueval/watchdog.hs @(stack_Bp003b8iWaELtdr693pSPs:Stack.Ghci src/Stack/Ghci.hs:101:28)
2015-10-06 20:40:03.888816: [info] Configuring GHCi with the following packages: mueval @(stack_Bp003b8iWaELtdr693pSPs:Stack.Ghci src/Stack/Ghci.hs:81:5)
2015-10-06 20:40:03.888868: [debug] Run process: ghc --interactive -odir=/home/callen/work/mueval/.stack-work/odir/ -hidir=/home/callen/work/mueval/.stack-work/odir/ -hide-all-packages -Wall -static -i/home/callen/work/mueval/ -i/home/callen/work/mueval/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen/ -i/home/callen/work/mueval/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ -stubdir=/home/callen/work/mueval/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ -optP-include -optP/home/callen/work/mueval/.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/autogen/cabal_macros.h -package=base /home/callen/work/mueval/watchdog.hs @(stack_Bp003b8iWaELtdr693pSPs:Stack.Exec src/Stack/Exec.hs:52:5)
GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
ghc: --interactive can't be used with -prof or -unreg.
Usage: For basic information, try the `--help' option.

Change History (3)

comment:1 Changed 2 years ago by thomie

Differential Rev(s): Phab:D1314
Status: newpatch

I think the confusing error message is the only problem here:

$ ghci -static
GHCi, version 7.11.20151002: http://www.haskell.org/ghc/  :? for help
ghc: --interactive can't be used with -prof.

comment:2 Changed 2 years ago by Thomas Miedema <thomasmiedema@…>

In e331392e/ghc:

Fix error msg: ghci can't be used with -prof or -static (#10936)

Reviewed by: austin

Differential Revision: https://phabricator.haskell.org/D1314

comment:3 Changed 2 years ago by thomie

Milestone: 8.0.1
Resolution: fixed
Status: patchclosed
Note: See TracTickets for help on using tickets.