ANNOUNCE: GHC 7.10.1 Release Candidate 2

George Colpitts george.colpitts at gmail.com
Sat Feb 7 15:10:23 UTC 2015


Thanks Eric, I have the same problem with this as the RC2 I build from
source, i.e. Mac specific bug https://ghc.haskell.org/trac/ghc/ticket/10053
:

error in ghci calling main after loading compiled code -- Too late for
parseStaticFlags: call it before runGhc or runGhcT

I  have a file mainbug.hs that consists of

main =
    print "hello"

I can reproduce it as follows:

 ghc -dynamic mainbug.hs
[1 of 1] Compiling Main             ( mainbug.hs, mainbug.o )
Linking mainbug ...
bash-3.2$ ghci
GHCi, version 7.10.0.20150123: http://www.haskell.org/ghc/  :? for help
Prelude> :load mainbug
Ok, modules loaded: Main.
Prelude Main> :show modules
Main             ( mainbug.hs, mainbug.o )
Prelude Main> main
Too late for parseStaticFlags: call it before runGhc or runGhcT
*** Exception: ExitFailure 1

Loading it interpreted works fine:

rm mainbug.o
bash-3.2$ ghci
GHCi, version 7.10.0.20150123: http://www.haskell.org/ghc/  :? for help
Prelude> :load mainbug
[1 of 1] Compiling Main             ( mainbug.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
"hello"

Can anybody else reproduce this bug on their Mac?


On Mon, Feb 2, 2015 at 6:58 AM, Erik Hesselink <hesselink at gmail.com> wrote:

> On Mon, Feb 2, 2015 at 9:37 AM, Herbert Valerio Riedel <hvr at gnu.org>
> wrote:
> > Hi Mark,
> >
> > On 2015-01-28 at 04:31:29 +0100, Mark Lentczner wrote:
> >> I've just built a bindist under 10.10, but just normal not expressly
> llvm.
> >> I'll test this in a bit then post it -- but might be sometime tomorrow
> >> before it is up.
> >
> > How's progress on this btw? Are you also working on a GHC 7.8.4 OSX
> > bindist by any chance?
>
> I made a bindist of RC2 (just like I did for RC1) which is here [1].
> This was built on 10.9, without anything special for llvm. If anyone
> wants me to try something or produce a different build, please let me
> know.
>
> Erik
>
> [1]
> https://docs.google.com/a/silk.co/uc?id=0B5E6EvOcuE0nVmJ3WElQZW81b1U&export=download
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20150207/b9dcc6fa/attachment.html>


More information about the ghc-devs mailing list