You are not logged in.

#1 2017-06-23 20:56:00

Xstary
Member
Registered: 2010-08-05
Posts: 20

[SOLVED] Problems installing haskell pkgs / compiling xmonad with ghc

On a quite fresh installation, I basically only had the haskell packages installed which come as dependencies of xmonad, xmonad-contrib and xmobar (plus haskell-hunit).
All packages were on the newest version, recently I got these warnings while upgrading:

( 4/13) Registering Haskell modules...
async-2.1.1.1: dependency "stm-2.4.4.1-iSYwp3RMY11sHCifJ3gtR" doesn't exist (ignoring)
data-default-instances-dlist-0.0.1: dependency "dlist-0.8.0.2-6Wnps4GD7EFnRucVzXIFD" doesn't exist (ignoring)
data-default-instances-old-locale-0.0.1: dependency "old-locale-1.0.0.7-KGBP1BSKxH5GCm0LnZP04j" doesn't exist (ignoring)
HTTP-4000.3.7: dependency "mtl-2.2.1-BLKBelFsPB3BoFeSWSOYj6" doesn't exist (ignoring)
HTTP-4000.3.7: dependency "network-2.6.3.2-IsLM4TXcLoRI0fmmBYVyQz" doesn't exist (ignoring)
HTTP-4000.3.7: dependency "network-uri-2.6.1.0-GzRvaV3udR3JtWfa3CLYOw" doesn't exist (ignoring)
HTTP-4000.3.7: dependency "parsec-3.1.11-1CA7c0vSU7tJHGhveOjoXR" doesn't exist (ignoring)
network-uri-2.6.1.0: dependency "parsec-3.1.11-1CA7c0vSU7tJHGhveOjoXR" doesn't exist (ignoring)
parsec-3.1.11: dependency "text-1.2.2.2-3ENqlljngKa6xj1Go2fVWq" doesn't exist (ignoring)
regex-compat-0.95.1: dependency "regex-posix-0.95.2-KQJt29lnRa45d6bFn9XkFO" doesn't exist (ignoring)
X11-xft-0.3.1: dependency "X11-1.8-Bxxi20LIDTqDkuL1yl4ckV" doesn't exist (ignoring)
xmonad-contrib-0.13: dependency "xmonad-0.13-Af7bQx8hsH9GnqpiN7wFIA" doesn't exist (ignoring)

Is this just because of the way pacman installs haskell packages and can be ignored?

When I wanted to run

xmonad --recompile

(which worked before) I suddenly got

Error detected while loading xmonad configuration file: /home/felix/.xmonad/xmonad.hs

xmonad.hs:126:20: warning: [-Wdeprecations]
    In the use of ‘defaultTheme’
    (imported from XMonad.Layout.Tabbed, but defined in XMonad.Layout.Decoration):
    Deprecated: "Use def (from Data.Default, and re-exported by XMonad.Layout.Decoration) instead."

xmonad.hs:187:12: warning: [-Wdeprecations]
    In the use of ‘defaultConfig’
    (imported from XMonad, but defined in XMonad.Config):
    Deprecated: "Use def (from Data.Default, and re-exported by XMonad and XMonad.Config) instead."

xmonad.hs:226:1: warning: [-Wtabs]
    Tab character found here.
    Please use spaces instead.
/usr/bin/ld: cannot find -lHSxmonad-contrib-0.13-6UHIJXZaKuVFboVRPuYhVc
/usr/bin/ld: cannot find -lHSrandom-1.1-9tceXaeYIMZ4JrKq20Egog
/usr/bin/ld: cannot find -lHSold-time-1.1.0.3-EZzkBJ4NQxX4hHavrKxgaT
/usr/bin/ld: cannot find -lHSxmonad-0.13-Af7bQx8hsH9GnqpiN7wFIA
/usr/bin/ld: cannot find -lHSsetlocale-1.0.0.4-JWZDTvXDEj0A24mpOycDUl
/usr/bin/ld: cannot find -lHSprocess-1.4.3.0
/usr/bin/ld: cannot find -lHSmtl-2.2.1-BLKBelFsPB3BoFeSWSOYj6
/usr/bin/ld: cannot find -lHStransformers-0.5.2.0
/usr/bin/ld: cannot find -lHSextensible-exceptions-0.1.1.4-IyAM3ARTqH7BVZ5oHMMtXH
/usr/bin/ld: cannot find -lHSdirectory-1.3.0.0
/usr/bin/ld: cannot find -lHSunix-2.7.2.1
/usr/bin/ld: cannot find -lHStime-1.6.0.1
/usr/bin/ld: cannot find -lHSfilepath-1.4.1.1
/usr/bin/ld: cannot find -lHSX11-xft-0.3.1-9gsq5TJAa1kBpFPKp9H8PH
/usr/bin/ld: cannot find -lHSutf8-string-1.0.1.1-1DpjxLeTvGg7ttZZojxJR5
/usr/bin/ld: cannot find -lHSbytestring-0.10.8.1
/usr/bin/ld: cannot find -lHSX11-1.8-Bxxi20LIDTqDkuL1yl4ckV
/usr/bin/ld: cannot find -lHSdata-default-0.7.1.1-CyM3k1XLfwb41mPgt03rCT
/usr/bin/ld: cannot find -lHSdata-default-instances-old-locale-0.0.1-GWOeXPsy1OVFfzERubJA69
/usr/bin/ld: cannot find -lHSold-locale-1.0.0.7-KGBP1BSKxH5GCm0LnZP04j
/usr/bin/ld: cannot find -lHSdata-default-instances-dlist-0.0.1-JZbzfpFsLXE57SNfhZeRts
/usr/bin/ld: cannot find -lHSdlist-0.8.0.2-6Wnps4GD7EFnRucVzXIFD
/usr/bin/ld: cannot find -lHSdata-default-instances-containers-0.0.1-7wbZULVPSeD7FpjcGQFrJl
/usr/bin/ld: cannot find -lHScontainers-0.5.7.1
/usr/bin/ld: cannot find -lHSdeepseq-1.4.2.0
/usr/bin/ld: cannot find -lHSarray-0.5.1.1
/usr/bin/ld: cannot find -lHSdata-default-class-0.1.2.0-N42RtcTZUUAlapzICmPz4
/usr/bin/ld: cannot find -lHSbase-4.9.1.0
/usr/bin/ld: cannot find -lHSinteger-gmp-1.0.0.1
/usr/bin/ld: cannot find -lHSghc-prim-0.5.0.0
/usr/bin/ld: cannot find -lHSrts
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)

Please check the file for errors.

xmonad: xmessage: executeFile: does not exist (No such file or directory)

As haskell dependency problems seem to be common I had something similar before and back then removing all haskell packages and reinstalling them helped but here it didn't.
Looking in the forums I didn't find any other solutions or tips, except for additionally removing /usr/lib/ghc-* in this post but that didn't help either.

ghc-pkg check

always runs without output.
I thought about managing haskell packages with cabal-install but also here (again after removing all haskell packages first) when installing cabal-install with pacman (yaourt) the dependency warnings occur. Shouldn't there be no warnings when one has removed all haskell packages first? I'd also rather like to stay with the recommended way of letting pacman manage the haskell packages.

What can be done about this?

Last edited by Xstary (2017-06-24 07:58:21)

Offline

#2 2017-06-23 22:13:38

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [SOLVED] Problems installing haskell pkgs / compiling xmonad with ghc

For the xmonad issue please see https://bugs.archlinux.org/task/54561

Offline

#3 2017-06-24 07:57:12

Xstary
Member
Registered: 2010-08-05
Posts: 20

Re: [SOLVED] Problems installing haskell pkgs / compiling xmonad with ghc

Indeed,

cd ~/.xmonad
ghc --make xmonad.hs -i -ilib -dynamic -fforce-recomp -main-is main -v0 -o xmonad-x86_64-linux

temporarily solves the xmonad issue.
We'll have to wait until this is fixed I guess.

Offline

#4 2017-07-04 12:24:52

psycho_tea_drinker
Member
From: West Sussex, United Kingdom
Registered: 2013-07-02
Posts: 41

Re: [SOLVED] Problems installing haskell pkgs / compiling xmonad with ghc

loqs wrote:

For the xmonad issue please see https://bugs.archlinux.org/task/54561

Why was the bug closed? I've just upgraded to 0.13.4 and still get the same issue. Anyone else?

Offline

#5 2017-07-04 13:11:15

Xstary
Member
Registered: 2010-08-05
Posts: 20

Re: [SOLVED] Problems installing haskell pkgs / compiling xmonad with ghc

psycho_tea_drinker wrote:
loqs wrote:

For the xmonad issue please see https://bugs.archlinux.org/task/54561

Why was the bug closed? I've just upgraded to 0.13.4 and still get the same issue. Anyone else?

The original problem arose with the upgrade 0.13-1 -> 0.13-2. The upgrade 0.13-2 -> 0.13-3 then worked for me. Upgrading 0.13-3 -> 0.13-4 I actually also got a problem, but a different one: xmonad would not start with a library-not-found-error. Here simply running

 xmonad --recompile

solved it, though surely this should not be necessary.

Offline

#6 2017-07-05 09:43:38

psycho_tea_drinker
Member
From: West Sussex, United Kingdom
Registered: 2013-07-02
Posts: 41

Re: [SOLVED] Problems installing haskell pkgs / compiling xmonad with ghc

Xstary wrote:
psycho_tea_drinker wrote:
loqs wrote:

For the xmonad issue please see https://bugs.archlinux.org/task/54561

Why was the bug closed? I've just upgraded to 0.13.4 and still get the same issue. Anyone else?

The original problem arose with the upgrade 0.13-1 -> 0.13-2. The upgrade 0.13-2 -> 0.13-3 then worked for me. Upgrading 0.13-3 -> 0.13-4 I actually also got a problem, but a different one: xmonad would not start with a library-not-found-error. Here simply running

 xmonad --recompile

solved it, though surely this should not be necessary.

Yeah I got these errors as well with 0.13-4. I think it might be due to me having installed xmonad with cabal as well. `which xmonad` -> `/home/chris/.local/bin/xmonad`.

`cd ~/.xmonad; ghc --make xmonad.hs -i -ilib -dynamic -fforce-recomp -main-is main -v0 -o ~/.local/bin/xmonad` seems to have fixed it.

Offline

Board footer

Powered by FluxBB