
I've built GHC with GhcWithInterpreter = NO. runghc is built and installed, but errors out with "not built for interactive use". Is runghc supposed to work with such a build? If not, why is it built at all? -- View this message in context: http://haskell.1045720.n5.nabble.com/runghc-and-GhcWithInterpreter-tp5768326... Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.

No, it's not supposed to work, since runghc interprets GHC code. runghc itself is just a little shell script which calls GHC proper with the -f flag, so I suppose the build system was just not set up to not create this link in that case. Edward Excerpts from Jeremy's message of 2015-04-06 07:34:34 -0700:
I've built GHC with GhcWithInterpreter = NO. runghc is built and installed, but errors out with "not built for interactive use".
Is runghc supposed to work with such a build? If not, why is it built at all?

Edward Z. Yang wrote
runghc itself is just a little shell script which calls GHC proper with the -f flag, so I suppose the build system was just not set up to not create this link in that case.
I have a binary called runghc under /usr/local/lib/ghc-7.10.1/bin in addition to the shell script under /usr/local/bin that references it. -- View this message in context: http://haskell.1045720.n5.nabble.com/runghc-and-GhcWithInterpreter-tp5768326... Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.

On Mon, Apr 6, 2015 at 1:46 PM, Jeremy
Edward Z. Yang wrote
runghc itself is just a little shell script which calls GHC proper with the -f flag, so I suppose the build system was just not set up to not create this link in that case.
I have a binary called runghc under /usr/local/lib/ghc-7.10.1/bin in addition to the shell script under /usr/local/bin that references it.
Yes, runghc is actually a small Haskell program that shells out to ghc -e. I filed an issue: https://ghc.haskell.org/trac/ghc/ticket/10261 Regards, Reid Barton
participants (3)
-
Edward Z. Yang
-
Jeremy
-
Reid Barton