You are not logged in.

#1 2022-12-30 16:59:21

hackerdude97
Member
Registered: 2022-12-30
Posts: 9

[SOLVED] XMonad Not Compiling because of broken dependencies.

I just updated my system and when I recompiled XMonad using `xmonad --recompile`, I got an error from almost evert import in my config sayinh

Could not load module ‘XMonad.{Module.Name}’
    It is a member of the package ‘xmonad-contrib-0.17.1-8Urd9enH9AU3zHDS33NsUm’
    which is unusable due to missing dependencies:
      random-1.2.1.1-AHzwveRxxoAAsQlVBjR4re
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.

I have tried downgrading xmonad, xmonad-contrib, xmonad-utils and nothing works. I also have haskell-random-1.2.1.1 installed on my system and even then, XMonad refuses to compile.

What can I do?

Last edited by hackerdude97 (2023-01-01 22:25:59)

Offline

#2 2022-12-30 19:26:04

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,454

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

Offline

#3 2022-12-30 20:15:33

hackerdude97
Member
Registered: 2022-12-30
Posts: 9

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

Yep, didn't do anything.

Offline

#4 2022-12-30 20:18:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

Post your pacman log.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2022-12-30 20:34:56

hackerdude97
Member
Registered: 2022-12-30
Posts: 9

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

jasonwryan wrote:

Post your pacman log.

How do I do that? I never had to look at my pacman logs before. neutral

Offline

#6 2022-12-30 20:38:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2022-12-30 20:40:25

hackerdude97
Member
Registered: 2022-12-30
Posts: 9

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

Sorry, I was not clear enough, I meant the command to find the pacman logs.

Offline

#8 2022-12-30 20:41:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

/var/log/pacman.log


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2022-12-30 20:48:17

hackerdude97
Member
Registered: 2022-12-30
Posts: 9

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

jasonwryan wrote:

/var/log/pacman.log

Here are all the logs from today:
https://pastebin.com/0xxeMJ1Q

Offline

#10 2022-12-30 20:55:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,154

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

xmonad wrote:

Use -v (or `:set -v` in ghci) to see a list of the files searched for.

Offline

#11 2022-12-30 21:08:02

hackerdude97
Member
Registered: 2022-12-30
Posts: 9

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

seth wrote:
xmonad wrote:

Use -v (or `:set -v` in ghci) to see a list of the files searched for.

Sorry, forgot to mention, this outputs an even more depressing mess of errors:

ghc-pkg check: https://pastebin.com/awiW5mar
ghci -v: https://pastebin.com/QYxzGbu5

Last edited by hackerdude97 (2022-12-30 21:11:52)

Offline

#12 2022-12-30 22:47:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

Please paste the output of `pacman -Syu --debug`


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2022-12-31 14:56:47

hackerdude97
Member
Registered: 2022-12-30
Posts: 9

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

jasonwryan wrote:

Please paste the output of `pacman -Syu --debug`

I checked the whole output and it didn't say anything interesting about either haskell or xmonad (I would post it, but it's quite a few thousand lines).

Offline

#14 2022-12-31 15:08:51

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,606
Website

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#15 2023-01-01 22:25:23

hackerdude97
Member
Registered: 2022-12-30
Posts: 9

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

I needed to do some work on my computer, so I decided to backup my stuff and do a reinstal of arch, and now it works properly. Don't know what was causing the issue. Marking this as solved.

Last edited by hackerdude97 (2023-01-02 10:30:56)

Offline

#16 2023-01-21 11:07:32

ichernev
Member
Registered: 2022-09-23
Posts: 3

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

For me

sudo ghc-pkg recache

Fixed it. I know it's in the linked document, but somebody might miss it, because it's under some other stuff that's not really to the point.

Also a SOLVED issue solved by re-installing arch is a bit meh smile

Offline

#17 2023-01-22 08:07:47

hackerdude97
Member
Registered: 2022-12-30
Posts: 9

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

ichernev wrote:

For me

sudo ghc-pkg recache

Fixed it. I know it's in the linked document, but somebody might miss it, because it's under some other stuff that's not really to the point.

Also a SOLVED issue solved by re-installing arch is a bit meh smile

I know, but I couldn't waste any time so I had to do it. Should I delete this post or leave?

Offline

#18 2023-01-23 01:19:01

Superposition
Member
Registered: 2010-06-20
Posts: 20

Re: [SOLVED] XMonad Not Compiling because of broken dependencies.

hackerdude97 wrote:

I know, but I couldn't waste any time so I had to do it. Should I delete this post or leave?

You should always leave your posts up. Chances are someone else will have the same question at some point.

Offline

Board footer

Powered by FluxBB