Open jeannekamikaze opened 9 years ago
From my experience (and from the error message we are getting) this is almost always a GHC bug. I would suggest:
In the past SFML-control
triggered another GHC problem, but SPJ was unable to reproduce this on his machine as he needed SFML
installed, so it's worth thinking how we could easily smooth the bug reporting process (like shipping the whole lib with hsSFML
so that we are dep-free). This is similar to what hipmunk
does.
As far as I see Hipmunk is a C library. Shipping SFML with HSSFML has multiple problems, the main problem being figuring out where to put DLLs / shared libs so that applications and ghci can pick them up.
Funnily enough, I stumbled upon the exact same issue in another project. The funny thing is that if I compile it manually (ghc -o foo foo.hs) it works, but as soon as I roll a cabal file and issue a cabal build, ghc fails with the invalid fixup thing. Seems like there's something royally flawed with ghc on Windows.
Seems like running
cabal install
on windows crashes ghc. I don't know to what extent this is our issue or an issue with ghc.