lettier / gifcurry

😎 The open-source, Haskell-built video editor for GIF makers.
https://lettier.github.io/gifcurry
BSD 3-Clause "New" or "Revised" License
1.34k stars 57 forks source link

Error compiling tcIfaceGlobal not found #19

Closed pawel-tomkiel closed 5 years ago

pawel-tomkiel commented 6 years ago

Hi,

When i try to go step by step on ArchLinux I got:

[257 of 295] Compiling GI.Gio.Interfaces.File ( GI/Gio/Interfaces/File.hs, dist/dist-sandbox-a7e8621a/build/GI/Gio/Interfaces/File.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 8.2.2 for x86_64-unknown-linux):
    tcIfaceGlobal (local): not found
  You are in a maze of twisty little passages, all alike.
  While forcing the thunk for TyThing IsFile
  which was lazily initialized by initIfaceCheck typecheckLoop,
  I tried to tie the knot, but I couldn't find IsFile
  in the current type environment.
  If you are developing GHC, please read Note [Tying the knot]
  and Note [Type-checking inside the knot].
  Consider rebuilding GHC with profiling for a better stack trace.
  Contents of current type environment: []
  Call stack:
      CallStack (from HasCallStack):
        prettyCurrentCallStack, called at compiler/utils/Outputable.hs:1133:58 in ghc:Outputable
        callStackDoc, called at compiler/utils/Outputable.hs:1137:37 in ghc:Outputable
        pprPanic, called at compiler/iface/TcIface.hs:1696:23 in ghc:TcIface

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

cabal: Leaving directory '/tmp/cabal-tmp-21053/gi-gio-2.0.14'
cabal: Error: some packages failed to install:
gi-gdk-3.0.14-2UWeXbeXddiJR6ytUd1GFl depends on gi-gdk-3.0.14 which failed to
install.
gi-gdkpixbuf-2.0.14-10Jx3qdJL7b3aEX0Wr16yN depends on gi-gdkpixbuf-2.0.14
which failed to install.
gi-gio-2.0.14-LM7WK7NCSjNGCbzq7t5cwc failed during the building phase. The
exception was:
ExitFailure 1
gi-gtk-3.0.18-1axBgPHA9tvJQZ2ovyeBy0 depends on gi-gtk-3.0.18 which failed to
install.
gi-pango-1.0.15-IZiiWsYKF681zKYSMOyXQn failed during the building phase. The
exception was:
ExitFailure 1
make: *** [makefile:74: arch_os_install_dependencies] Błąd 1
lettier commented 6 years ago

Hello @neonkowy,

There is a problem with an upstream package when using GHC 8.2.X. If you can configure Haskell Stack to use GHC 8.0.2, Gifcurry will build.

You can avoid building Gifcurry though by downloading the AppImage or the prebuilt binaries for linux.

If you use the AppImage, make sure to right click on the AppImage and allow the file to be executed as a program.

I'll have to push a fix to force stack to choose GHC 8.0.2 when building Gifcurry.

:+1:

lettier commented 6 years ago

Hello @neonkowy,

I have updated the Arch AUR package. It should install now.

:+1: