xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
589 stars 274 forks source link

Place.dyn_o: No such file or directory from following https://xmonad.org/INSTALL.html #607

Closed kkweon closed 3 years ago

kkweon commented 3 years ago

Problem Description

kkweon:xmonad/ $ stack install                                                                               [11:04:38]
xmonad-contrib> configure (lib)
xmonad-contrib> Configuring xmonad-contrib-0.16.999...
xmonad-contrib> build (lib)
xmonad-contrib> Preprocessing library for xmonad-contrib-0.16.999..
xmonad-contrib> Building library for xmonad-contrib-0.16.999..
xmonad-contrib> gcc: error: .stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/XMonad/Hooks/Place.dyn_o: No such file or directory
xmonad-contrib> `gcc' failed in phase `Linker'. (Exit code: 1)

--  While building package xmonad-contrib-0.16.999 using:
      /home/kkweon/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.7 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0 build lib:xmonad-contrib --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
kkweon:xmonad/ $ pwd                                                                                         [11:04:54]
/home/kkweon/.config/xmonad

Steps to Reproduce

I followed the above step in the guide one by one using haskell-stack. It has failed at stack install

Configuration File

resolver: lts-18.11

packages:
- xmonad
- xmonad-contrib

Checklist

kkweon commented 3 years ago

And for the dependencies,

kkweon:xmonad/ $ sudo apt install \                                                                          [11:13:46]
 git \
 libx11-dev libxft-dev libxinerama-dev libxrandr-dev libxss-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.30.2-1ubuntu1).
libxft-dev is already the newest version (2.3.3-0ubuntu3).
libxinerama-dev is already the newest version (2:1.1.4-2build2).
libxrandr-dev is already the newest version (2:1.5.2-0ubuntu1).
libxss-dev is already the newest version (1:1.2.3-1).
libx11-dev is already the newest version (2:1.7.0-2ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
geekosaur commented 3 years ago

This is odd; dynamic Haskell objects or libraries shouldn't be built or looked for by default, unless you're using the system packages on Arch (only). Do you by any chance have a ~/.cabal/config file?

kkweon commented 3 years ago

No, but I clean installed everything; now it worked. Thanks for the hint!