jgm / gitit

A wiki using HAppS, pandoc, and git
GNU General Public License v2.0
2.15k stars 225 forks source link

Installing through stack fails with an inscrutable (to me) error message. #618

Closed Bercio closed 6 years ago

Bercio commented 6 years ago
Warning: File listed in gitit.cabal file does not exist: data/static/img/logo.png

Warning: File listed in gitit.cabal file does not exist: data/s5/default/bodybg.gif
gitit-0.12.2.1: build (lib + exe)
Preprocessing library gitit-0.12.2.1...
Preprocessing executable 'expireGititCache' for gitit-0.12.2.1...
Preprocessing executable 'gitit' for gitit-0.12.2.1...

Warning: File listed in gitit.cabal file does not exist: data/static/img/logo.png

Warning: File listed in gitit.cabal file does not exist: data/s5/default/bodybg.gif
gitit-0.12.2.1: copy/register
data/static/img/logo.png: copyFile: does not exist (No such file or directory)
Registering gitit-0.12.2.1...
Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2:
'/home/lorenzo/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc-pkg' exited with
an error:
gitit-0.12.2.1: Warning: library-dirs:
/home/lorenzo/gitit/.stack-work/install/x86_64-linux/lts-9.13/8.0.2/lib/x86_64-linux-ghc-8.0.2/gitit-0.12.2.1-15vHEHzewmG4w3EGUOTxJL
doesn't exist or isn't a directory
gitit-0.12.2.1: Warning: haddock-interfaces:
/home/lorenzo/gitit/.stack-work/install/x86_64-linux/lts-9.13/8.0.2/doc/gitit-0.12.2.1/gitit.haddock
doesn't exist or isn't a file
gitit-0.12.2.1: Warning: haddock-html:
/home/lorenzo/gitit/.stack-work/install/x86_64-linux/lts-9.13/8.0.2/doc/gitit-0.12.2.1
doesn't exist or isn't a directory
gitit-0.12.2.1: import-dirs:
/home/lorenzo/gitit/.stack-work/install/x86_64-linux/lts-9.13/8.0.2/lib/x86_64-linux-ghc-8.0.2/gitit-0.12.2.1-15vHEHzewmG4w3EGUOTxJL
doesn't exist or isn't a directory (use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit.hi","Network/Gitit.p_hi","Network/Gitit.dyn_hi"] (use --force
to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/ContentTransformer.hi","Network/Gitit/ContentTransformer.p_hi","Network/Gitit/ContentTransformer.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Types.hi","Network/Gitit/Types.p_hi","Network/Gitit/Types.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Framework.hi","Network/Gitit/Framework.p_hi","Network/Gitit/Framework.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Initialize.hi","Network/Gitit/Initialize.p_hi","Network/Gitit/Initialize.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Config.hi","Network/Gitit/Config.p_hi","Network/Gitit/Config.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Layout.hi","Network/Gitit/Layout.p_hi","Network/Gitit/Layout.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Authentication.hi","Network/Gitit/Authentication.p_hi","Network/Gitit/Authentication.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Authentication/Github.hi","Network/Gitit/Authentication/Github.p_hi","Network/Gitit/Authentication/Github.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Util.hi","Network/Gitit/Util.p_hi","Network/Gitit/Util.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Server.hi","Network/Gitit/Server.p_hi","Network/Gitit/Server.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Cache.hi","Network/Gitit/Cache.p_hi","Network/Gitit/Cache.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/State.hi","Network/Gitit/State.p_hi","Network/Gitit/State.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Paths_gitit.hi","Paths_gitit.p_hi","Paths_gitit.dyn_hi"] (use --force to
override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Export.hi","Network/Gitit/Export.p_hi","Network/Gitit/Export.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Handlers.hi","Network/Gitit/Handlers.p_hi","Network/Gitit/Handlers.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Plugins.hi","Network/Gitit/Plugins.p_hi","Network/Gitit/Plugins.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Rpxnow.hi","Network/Gitit/Rpxnow.p_hi","Network/Gitit/Rpxnow.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Page.hi","Network/Gitit/Page.p_hi","Network/Gitit/Page.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Feed.hi","Network/Gitit/Feed.p_hi","Network/Gitit/Feed.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Compat/Except.hi","Network/Gitit/Compat/Except.p_hi","Network/Gitit/Compat/Except.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["Network/Gitit/Interface.hi","Network/Gitit/Interface.p_hi","Network/Gitit/Interface.dyn_hi"]
(use --force to override)
gitit-0.12.2.1: cannot find any of
["libHSgitit-0.12.2.1-15vHEHzewmG4w3EGUOTxJL.a","libHSgitit-0.12.2.1-15vHEHzewmG4w3EGUOTxJL.p_a","libHSgitit-0.12.2.1-15vHEHzewmG4w3EGUOTxJL-ghc8.0.2.so","libHSgitit-0.12.2.1-15vHEHzewmG4w3EGUOTxJL-ghc8.0.2.dylib","HSgitit-0.12.2.1-15vHEHzewmG4w3EGUOTxJL-ghc8.0.2.dll"]
on library path (use --force to override)

--  While building custom Setup.hs for package gitit-0.12.2.1 using:
      /home/lorenzo/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.2.0 register
    Process exited with code: ExitFailure 1
jgm commented 6 years ago

I don't understand this output.

Are you doing stack install from a cloned version of the github code, or stack install gitit?

Bercio commented 6 years ago

stack install from a cloned version

Bercio commented 6 years ago

stack install gitit gives me almost the same error

ehamberg commented 6 years ago

I cloned it just now, and it built without problems here (macOS 10.12.6 and stack 1.7.1).

$ stack --version
Version 1.7.1 x86_64

What version of stack are you using, @Bercio?

Does the same thing happen if you clear out .stack-work and then run stack build again?

Bercio commented 6 years ago

I'm very sorry but my PC was lacking disk space, so after having found and succesfully installed the ubuntu package of gitit I deleted stack and haskell platform, so I'm unable to follow through rn. At least I hope it was only a bug due to my setup. May I suggest adding a link to the ubuntu package of gitit in the README? Thanks for the patience and sorry for not following through with the diagnostics

Lorenzo

On Thu, Jul 12, 2018 at 2:09 PM, Erlend Hamberg notifications@github.com wrote:

I cloned it just now, and it built without problems here (macOS 10.12.6 and stack 1.7.1).

$ stack --version Version 1.7.1 x86_64

What version of stack are you using, @Bercio https://github.com/Bercio?

Does the same thing happen if you clear out .stack-work and then run stack build again?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jgm/gitit/issues/618#issuecomment-404490562, or mute the thread https://github.com/notifications/unsubscribe-auth/ADv-FKz_0_xnGkgGXeNIi-2wkOhx6AkEks5uFzx9gaJpZM4VIAvP .