Workaround for "ghc: panic! (the 'impossible' happened)" when building yesod 0.8 on ghc 7.0.2 on arch (bug 5004)

Has anyone run into this bug (http://hackage.haskell.org/trac/ghc/ticket/5004) that prevents yesod from building on arch? if so, whats the work around? max

On Fri, Apr 22, 2011 at 08:48:54PM +0800, Max Cantor wrote:
Has anyone run into this bug (http://hackage.haskell.org/trac/ghc/ticket/5004) that prevents yesod from building on arch?
if so, whats the work around?
max
Use abs to get the latest ghc PKGBUILD* and edit the file by adding
options=(!strip)
somewhere and rebuild it with makepkg -si (that sould rebuild ghc
without stripping and reinstall with pacman afterwards).
Something like this:
# pacman -S abs
# abs
$ cp -r /var/abs/extra/ghc /tmp/ghc
$ cd /tmp/ghc
$ vi PGKBUILD
[add the option]
$ makepkg -si
--
Helgi Kristvin Sigurbjarnarson

thanks! about an hour into building, I get this error: cannot satisfy -package utf8-string 0.3.6-48af... utf8-string-0.3.6-inplace is shadowed by package utf8-string-0.3.6-48af7e77f29b232f389e99d0a9a1d604 utf8-string-0.3.6-48af7e77f29b232f389e99d0a9a1d604 is unusable due to missing or recursive dependencies: base-4.3.1.0-c33a1741503ded8a0170884e8a2e4fa2 bytestring-0.9.1.10-6aa1efbfa95d1689fc03d61e7c4b27c4 (use -v for more information) any tips? since makepkg -si starts from the beginning trial-and-error will be a bit difficult here. thanks again, max On Apr 23, 2011, at 8:10 AM, Helgi Kristvin Sigurbjarnarson wrote:
On Fri, Apr 22, 2011 at 08:48:54PM +0800, Max Cantor wrote:
Has anyone run into this bug (http://hackage.haskell.org/trac/ghc/ticket/5004) that prevents yesod from building on arch?
if so, whats the work around?
max
Use abs to get the latest ghc PKGBUILD* and edit the file by adding
options=(!strip)
somewhere and rebuild it with makepkg -si (that sould rebuild ghc without stripping and reinstall with pacman afterwards).
Something like this:
# pacman -S abs # abs $ cp -r /var/abs/extra/ghc /tmp/ghc $ cd /tmp/ghc $ vi PGKBUILD [add the option] $ makepkg -si
-- Helgi Kristvin Sigurbjarnarson
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

On Sat, Apr 23, 2011 at 11:30:37AM +0800, Max Cantor wrote:
thanks! about an hour into building, I get this error:
cannot satisfy -package utf8-string 0.3.6-48af... utf8-string-0.3.6-inplace is shadowed by package utf8-string-0.3.6-48af7e77f29b232f389e99d0a9a1d604 utf8-string-0.3.6-48af7e77f29b232f389e99d0a9a1d604 is unusable due to missing or recursive dependencies: base-4.3.1.0-c33a1741503ded8a0170884e8a2e4fa2 bytestring-0.9.1.10-6aa1efbfa95d1689fc03d61e7c4b27c4 (use -v for more information)
any tips? since makepkg -si starts from the beginning trial-and-error will be a bit difficult here.
thanks again, max
Try removing all haskell packages, installed with pacman or cabal -- both global and user.
After ghc has build/installed you can install the platform from the repo
just fine (just make sure it doesn't pull in ghc from the repo, but
rather uses the custom packages).
--
Helgi Kristvin Sigurbjarnarson
participants (2)
-
Helgi Kristvin Sigurbjarnarson
-
Max Cantor