You are not logged in.

#1 2020-04-21 19:11:59

mator
Member
Registered: 2019-12-22
Posts: 4

[SOLVED] xmonad no longer compiles

Since an update (of haskell or xmonad, I don't know) a few days ago, I'm not able to recompile xmonad (but it is still working perfectly).

Compiler reports a few errors like:

xmonad.hs:2:1: error:
    Could not load module ‘XMonad.Config.Desktop’
    It is a member of the package ‘xmonad-contrib-0.16-A7dmBm5XHoA3cJakmPiBG’
    which is unusable due to missing dependencies:
      X11-1.9.1-AFcCYyNZny21u722BShhIc X11-xft-0.3.1-2yyNIlUDHyp6mq4MnwEIH9 extensible-exceptions-0.1.1.4-4QtxTJe11myLMCZi4yvSzl old-locale-1.0.0.7-KOGgqu8HfWChZyQBUEp1c old-time-1.1.0.3-LFCo3WvTzIJ9XV4spupeM9 random-1.1-CUqV1zxrwrE4K5XCdTZSYy utf8-string-1.0.1.1-IRxNMq5AVf036EceEkASq3 xmonad-0.15-INNaRsi8viXHVTtHIZOWoU
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
2 | import XMonad.Config.Desktop
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Same error for other Xmonad.Xxx modules.
My archlinux is up-to-date with all packages.

I understand that I may have to install other dependencies, but it was compiling before, without me changing anything, so I'm wondering: maybe the latest xmonad package is somehow corrupted?

Thx,

Mathieu.

Last edited by mator (2020-04-22 06:30:05)

Offline

#2 2020-04-22 01:12:39

archdanb
Member
Registered: 2016-06-12
Posts: 4

Re: [SOLVED] xmonad no longer compiles

Got the same problem and not sure what to do about it.
Don't want to reboot just yet.

Running:

$ ghc-pkg check

There are problems in package xmonad-0.15:                                                                                                                                                     
  Warning: haddock-interfaces: /usr/share/doc/xmonad/html/xmonad.haddock doesn't exist or isn't a file
  Warning: haddock-html: /usr/share/doc/xmonad/html doesn't exist or isn't a directory                                                                                                         
  dependency "extensible-exceptions-0.1.1.4-4QtxTJe11myLMCZi4yvSzl" doesn't exist                                                                                                             
  dependency "setlocale-1.0.0.9-GbloffBFEmGB4tdjuaGaib" doesn't exist                                                                                                                         
  dependency "utf8-string-1.0.1.1-IRxNMq5AVf036EceEkASq3" doesn't exist                                                                                                                       
There are problems in package xmonad-contrib-0.16:                                                                                                                                             
  Warning: haddock-interfaces: /usr/share/doc/xmonad-contrib/html/xmonad-contrib.haddock doesn't exist or isn't a file
  Warning: haddock-html: /usr/share/doc/xmonad-contrib/html doesn't exist or isn't a directory                                                                                                 
  dependency "extensible-exceptions-0.1.1.4-4QtxTJe11myLMCZi4yvSzl" doesn't exist                                                                                                             
  dependency "old-locale-1.0.0.7-KOGgqu8HfWChZyQBUEp1c" doesn't exist
  dependency "old-time-1.1.0.3-LFCo3WvTzIJ9XV4spupeM9" doesn't exist
  dependency "random-1.1-CUqV1zxrwrE4K5XCdTZSYy" doesn't exist
  dependency "utf8-string-1.0.1.1-IRxNMq5AVf036EceEkASq3" doesn't exist
Warning: haddock-interfaces: /usr/share/doc/haskell-x11/html/X11.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-x11/html doesn't exist or isn't a directory
There are problems in package X11-xft-0.3.1:
  Warning: haddock-interfaces: /usr/share/doc/haskell-x11-xft/html/X11-xft.haddock doesn't exist or isn't a file
  Warning: haddock-html: /usr/share/doc/haskell-x11-xft/html doesn't exist or isn't a directory
  dependency "utf8-string-1.0.1.1-IRxNMq5AVf036EceEkASq3" doesn't exist
Warning: haddock-interfaces: /usr/share/doc/haskell-dlist/html/dlist.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-dlist/html doesn't exist or isn't a directory
There are problems in package data-default-0.7.1.1:
  Warning: haddock-interfaces: /usr/share/doc/haskell-data-default/html/data-default.haddock doesn't exist or isn't a file
  Warning: haddock-html: /usr/share/doc/haskell-data-default/html doesn't exist or isn't a directory
  dependency "data-default-class-0.1.2.0-3WblArvKItDIiwkDl9AciG" doesn't exist
  dependency "data-default-instances-containers-0.0.1-HYvTeARnwy09LdbyougJoS" doesn't exist
  dependency "data-default-instances-old-locale-0.0.1-BSBT71snpgVEb2Ithyw9MK" doesn't exist
There are problems in package data-default-instances-dlist-0.0.1:
  Warning: haddock-interfaces: /usr/share/doc/haskell-data-default-instances-dlist/html/data-default-instances-dlist.haddock doesn't exist or isn't a file
  Warning: haddock-html: /usr/share/doc/haskell-data-default-instances-dlist/html doesn't exist or isn't a directory
  dependency "data-default-class-0.1.2.0-3WblArvKItDIiwkDl9AciG" doesn't exist
Warning ... snip ...
The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
xmonad-contrib-0.16
xmonad-0.15
X11-xft-0.3.1
data-default-0.7.1.1
data-default-instances-dlist-0.0.1
X11-1.9.1

As a stopgap, maybe we have to manually install the missing packages? 
We might have to report this as a bug https://wiki.archlinux.org/index.php/Bu … guidelines
(I've got to stop here for the moment - need to work)

Offline

#3 2020-04-22 02:41:50

nyaw
Member
Registered: 2020-02-22
Posts: 5

Re: [SOLVED] xmonad no longer compiles

I found this by googling error message:
https://stackoverflow.com/questions/223 … -any-other

Fixed this problem by running `ghc-pkg recache` as root.

Offline

#4 2020-04-22 06:29:04

mator
Member
Registered: 2019-12-22
Posts: 4

Re: [SOLVED] xmonad no longer compiles

Worked for me too, thnx !

Offline

#5 2020-04-22 19:47:44

archdanb
Member
Registered: 2016-06-12
Posts: 4

Re: [SOLVED] xmonad no longer compiles

Worked for me as well.  Thanks nyaw!

Offline

#6 2020-04-22 22:27:21

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] xmonad no longer compiles

Offline

Board footer

Powered by FluxBB