From alainbe at free.fr Mon Nov 21 05:26:36 2022 From: alainbe at free.fr (Alain Bertrand) Date: Mon, 21 Nov 2022 06:26:36 +0100 Subject: [xmonad] Compile error Message-ID: <23003584-8cf9-ad43-efab-0dbb91e29075@free.fr> Hi all, I am on a Debian sid system.  when I installed it, xmonad packages were not installable so I compiled it myself. At a time, it became available, I installed the package. A few days ago, I noticed that xmonad would not recompile anymore. I removed all the stuff I had compiled by myself, but still, it doesn't compile. ----------- xmonad --recompile XMonad will use ghc to recompile, because neither "/home/alain/.config/xmonad/build" nor "/home/alain/.config/xmonad/stack.yaml" exis ts. XMonad recompiling (forced). Errors detected while compiling xmonad config: /home/alain/.config/xmonad/xmonad.hs $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir /home/alain/.cache/xmonad/build-x86_64-linux -o /home/ala in/.cache/xmonad/xmonad-x86_64-linux ghc: can't find a package database at /home/alain/.cabal/store/ghc-9.0.2/package.db Please check the file for errors. --------- Thanks for your help. Alain From soliditsallgood at mailbox.org Mon Nov 21 07:19:28 2022 From: soliditsallgood at mailbox.org (Tony Zorman) Date: Mon, 21 Nov 2022 08:19:28 +0100 Subject: [xmonad] Compile error In-Reply-To: <23003584-8cf9-ad43-efab-0dbb91e29075@free.fr> References: <23003584-8cf9-ad43-efab-0dbb91e29075@free.fr> Message-ID: <87h6ysvkov.fsf@hyperspace> Hi Alain, On Mon, Nov 21 2022 06:26, Alain Bertrand wrote: > ghc: can't find a package database at > /home/alain/.cabal/store/ghc-9.0.2/package.db this sounds like more of a cabal issue, I think. Brandon probably knows best, but I think the usual advice here is to nuke ~/.cabal and reinstall. Tony -- Tony Zorman | https://tony-zorman.com/ From allbery.b at gmail.com Mon Nov 21 15:33:38 2022 From: allbery.b at gmail.com (Brandon Allbery) Date: Mon, 21 Nov 2022 10:33:38 -0500 Subject: [xmonad] Compile error In-Reply-To: <23003584-8cf9-ad43-efab-0dbb91e29075@free.fr> References: <23003584-8cf9-ad43-efab-0dbb91e29075@free.fr> Message-ID: That looks like you have an environment file hanging around somewhere. It'll be named something like `.ghc.environment.x86-64-linux-9.0.2`. You'll need to remove it, since it references a cabal store that no longer exists. On Mon, Nov 21, 2022 at 12:26 AM Alain Bertrand wrote: > > Hi all, > > > I am on a Debian sid system. when I installed it, xmonad packages were > not installable so I compiled it myself. At a time, it became available, > I installed the package. A few days ago, I noticed that xmonad would not > recompile anymore. I removed all the stuff I had compiled by myself, but > still, it doesn't compile. > > ----------- > > xmonad --recompile > XMonad will use ghc to recompile, because neither > "/home/alain/.config/xmonad/build" nor > "/home/alain/.config/xmonad/stack.yaml" exis > ts. > XMonad recompiling (forced). > Errors detected while compiling xmonad config: > /home/alain/.config/xmonad/xmonad.hs > $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 > -outputdir /home/alain/.cache/xmonad/build-x86_64-linux -o /home/ala > in/.cache/xmonad/xmonad-x86_64-linux > ghc: can't find a package database at > /home/alain/.cabal/store/ghc-9.0.2/package.db > > Please check the file for errors. > > --------- > > > Thanks for your help. > > > Alain > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad -- brandon s allbery kf8nh allbery.b at gmail.com From alainbe at free.fr Mon Nov 21 22:24:52 2022 From: alainbe at free.fr (Alain Bertrand) Date: Mon, 21 Nov 2022 23:24:52 +0100 Subject: [xmonad] Compile error In-Reply-To: References: <23003584-8cf9-ad43-efab-0dbb91e29075@free.fr> Message-ID: Hi, Thank you for the answers. The culprit was in xmonad. Best regards, Alain On 21/11/2022 16:33, Brandon Allbery wrote: > That looks like you have an environment file hanging around somewhere. > It'll be named something like `.ghc.environment.x86-64-linux-9.0.2`. > You'll need to remove it, since it references a cabal store that no > longer exists. > > On Mon, Nov 21, 2022 at 12:26 AM Alain Bertrand wrote: >> Hi all, >> >> >> I am on a Debian sid system. when I installed it, xmonad packages were >> not installable so I compiled it myself. At a time, it became available, >> I installed the package. A few days ago, I noticed that xmonad would not >> recompile anymore. I removed all the stuff I had compiled by myself, but >> still, it doesn't compile. >> >> ----------- >> >> xmonad --recompile >> XMonad will use ghc to recompile, because neither >> "/home/alain/.config/xmonad/build" nor >> "/home/alain/.config/xmonad/stack.yaml" exis >> ts. >> XMonad recompiling (forced). >> Errors detected while compiling xmonad config: >> /home/alain/.config/xmonad/xmonad.hs >> $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 >> -outputdir /home/alain/.cache/xmonad/build-x86_64-linux -o /home/ala >> in/.cache/xmonad/xmonad-x86_64-linux >> ghc: can't find a package database at >> /home/alain/.cabal/store/ghc-9.0.2/package.db >> >> Please check the file for errors. >> >> --------- >> >> >> Thanks for your help. >> >> >> Alain >> >> _______________________________________________ >> xmonad mailing list >> xmonad at haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > >