GNU bug report logs - #47335
xmonad fails to recompile on guix system

Previous Next

Package: guix;

Reported by: Charlie Ruppe <ruppe.charlie <at> gmail.com>

Date: Tue, 23 Mar 2021 01:16:02 UTC

Severity: normal

Found in version 1.2.0-17.ec7fb6

Done: Lars-Dominik Braun <lars <at> 6xq.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47335 in the body.
You can then email your comments to 47335 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#47335; Package guix. (Tue, 23 Mar 2021 01:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Charlie Ruppe <ruppe.charlie <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 23 Mar 2021 01:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Charlie Ruppe <ruppe.charlie <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: xmonad fails to recompile on guix system
Date: Tue, 23 Mar 2021 00:13:36 +0000
[Message part 1 (text/plain, inline)]
Package: guix
Version: 1.2.0-17.ec7fb6

I am trying to recompile xmonad with a fairly simple xmonad.hs
The package itself builds, installs, and runs correctly, but it throws
errors when recompiling my configuration. Configuration is very short but
is pasted here: http://paste.debian.net/1190543/

The same error is thrown when attempting to compile xmonad with ghc
directly, and inside and out of xmonad's build environment.

The following is the error that is printed when attempting to recompile
xmonad from within the build environment for xmonad within the directory
~/.xmonad/ containing xmonad.hs

[env]$ xmonad --recompile
XMonad will use ghc to recompile, because "/home/fever/.xmonad/build" does
not exist.
Error detected while loading xmonad configuration file:
/home/fever/.xmonad/xmonad.hs

xmonad.hs:1:1: error:
    Could not find module ‘XMonad’
    Perhaps you meant DsMonad (needs flag -package-key ghc-8.6.5)
    Use -v to see a list of the files searched for.
  |
1 | import XMonad
  | ^^^^^^^^^^^^^

xmonad.hs:2:1: error:
    Could not find module ‘XMonad.Config.Desktop’
    Use -v to see a list of the files searched for.
  |
2 | import XMonad.Config.Desktop
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Please check the file for errors.

xmonad: xmessage: executeFile: does not exist (No such file or directory)
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#47335; Package guix. (Mon, 26 Jul 2021 06:49:02 GMT) Full text and rfc822 format available.

Message #8 received at 47335 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <lars <at> 6xq.net>
To: Charlie Ruppe <ruppe.charlie <at> gmail.com>
Cc: 47335 <at> debbugs.gnu.org
Subject: Re: xmonad fails to recompile on guix system
Date: Mon, 26 Jul 2021 08:47:53 +0200
Hi,

I’m seeing the same issue, but it works when explicitly installing
ghc <at> 8.6.  Looking at haskell-build-system all Haskell libraries are
currently built with version 8.6, whereas the newest GHC version
available (and thus installed by `guix install`) is 8.8.

I feel that either xmonad should depend on the correct GHC or all
GHC versions not used to build libraries should be hidden to avoid this
situation.

Lars





Information forwarded to bug-guix <at> gnu.org:
bug#47335; Package guix. (Sun, 01 Aug 2021 18:10:02 GMT) Full text and rfc822 format available.

Message #11 received at 47335 <at> debbugs.gnu.org (full text, mbox):

From: raingloom <raingloom <at> riseup.net>
To: Lars-Dominik Braun <lars <at> 6xq.net>
Cc: Charlie Ruppe <ruppe.charlie <at> gmail.com>, 47335 <at> debbugs.gnu.org
Subject: Re: bug#47335: Hide GHC not used for building Was: xmonad fails to
 recompile on guix system
Date: Sun, 1 Aug 2021 19:51:35 +0200
On Mon, 26 Jul 2021 08:47:53 +0200
Lars-Dominik Braun <lars <at> 6xq.net> wrote:

> Hi,
> 
> I’m seeing the same issue, but it works when explicitly installing
> ghc <at> 8.6.  Looking at haskell-build-system all Haskell libraries are
> currently built with version 8.6, whereas the newest GHC version
> available (and thus installed by `guix install`) is 8.8.
> 
> I feel that either xmonad should depend on the correct GHC or all
> GHC versions not used to build libraries should be hidden to avoid
> this situation.
> 
> Lars
> 
> 
> 
> 

I'd be very much in favor of the latter, or maybe rename it to ghc-next.
I have some profiles ghc pinned to a version and upgrading those is
always a mess because Guix tries to build the old version from source
instead of using the next version.




Reply sent to Lars-Dominik Braun <lars <at> 6xq.net>:
You have taken responsibility. (Wed, 15 Sep 2021 07:43:02 GMT) Full text and rfc822 format available.

Notification sent to Charlie Ruppe <ruppe.charlie <at> gmail.com>:
bug acknowledged by developer. (Wed, 15 Sep 2021 07:43:02 GMT) Full text and rfc822 format available.

Message #16 received at 47335-done <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <lars <at> 6xq.net>
To: raingloom <raingloom <at> riseup.net>
Cc: Charlie Ruppe <ruppe.charlie <at> gmail.com>, 47335-done <at> debbugs.gnu.org
Subject: Re: bug#47335: Hide GHC not used for building Was: xmonad fails to
 recompile on guix system
Date: Wed, 15 Sep 2021 09:42:39 +0200
Hi,

> I'd be very much in favor of the latter, or maybe rename it to ghc-next.
> I have some profiles ghc pinned to a version and upgrading those is
> always a mess because Guix tries to build the old version from source
> instead of using the next version.
I renamed ghc <at> 8.8 to ghc-next in commit
39b43d0d0428474a1d0bf58779d0135163b9c6e3.

Cheers,
Lars





Information forwarded to bug-guix <at> gnu.org:
bug#47335; Package guix. (Wed, 15 Sep 2021 09:00:01 GMT) Full text and rfc822 format available.

Message #19 received at 47335 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: 47335 <at> debbugs.gnu.org, Lars-Dominik Braun <lars <at> 6xq.net>,
 ruppe.charlie <at> gmail.com
Cc: raingloom <raingloom <at> riseup.net>, 47335-done <at> debbugs.gnu.org
Subject: Re: bug#47335: Hide GHC not used for building Was: xmonad fails to
 recompile on guix system
Date: Wed, 15 Sep 2021 10:58:51 +0200
Hi,

On Wed, 15 Sept 2021 at 09:43, Lars-Dominik Braun <lars <at> 6xq.net> wrote:

> > I'd be very much in favor of the latter, or maybe rename it to ghc-next.
> > I have some profiles ghc pinned to a version and upgrading those is
> > always a mess because Guix tries to build the old version from source
> > instead of using the next version.
>
> I renamed ghc <at> 8.8 to ghc-next in commit
> 39b43d0d0428474a1d0bf58779d0135163b9c6e3.

Well, I am late to the party and probably out of point but I think
this '-next' is not something we should introduce and generalize.
Well, who knows if these '-next' will be the real next. ;-)   My
comment is also about guile-next, emacs-next and python-next.  Noting
that gcc-toolchain does not have a '-next'; packages are built using
7.5.0 but "guix install gcc-toolchain" will install 11.2.0 and then it
could lead to the same issue as the one reported with GHC, I guess.

Instead of this '-next' trick, we should find a better mechanism where
"guix install ghc" would install the default GHC used by the Haskell
build-system.  Idem for the others guile-next, python-next etc..  And
any other version should be installed using  the explicit mention,
i.e., "guix install ghc <at> 8.8", IMHO.

Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#47335; Package guix. (Wed, 15 Sep 2021 09:00:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#47335; Package guix. (Wed, 15 Sep 2021 11:04:02 GMT) Full text and rfc822 format available.

Message #25 received at 47335 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: zimoun <zimon.toutoune <at> gmail.com>, 47335 <at> debbugs.gnu.org, Lars-Dominik
 Braun <lars <at> 6xq.net>, ruppe.charlie <at> gmail.com
Cc: 47335-done <at> debbugs.gnu.org
Subject: Re: bug#47335: Hide GHC not used for building Was: xmonad fails to
 recompile on guix system
Date: Wed, 15 Sep 2021 13:02:47 +0200
[Message part 1 (text/plain, inline)]
On Wed, Sep 15 2021, zimoun wrote:

> Hi,
>
> On Wed, 15 Sept 2021 at 09:43, Lars-Dominik Braun <lars <at> 6xq.net> wrote:
>
>> > I'd be very much in favor of the latter, or maybe rename it to ghc-next.
>> > I have some profiles ghc pinned to a version and upgrading those is
>> > always a mess because Guix tries to build the old version from source
>> > instead of using the next version.
>>
>> I renamed ghc <at> 8.8 to ghc-next in commit
>> 39b43d0d0428474a1d0bf58779d0135163b9c6e3.
>
> Well, I am late to the party and probably out of point but I think
> this '-next' is not something we should introduce and generalize.
> Well, who knows if these '-next' will be the real next. ;-)   My
> comment is also about guile-next, emacs-next and python-next.  Noting
> that gcc-toolchain does not have a '-next'; packages are built using
> 7.5.0 but "guix install gcc-toolchain" will install 11.2.0 and then it
> could lead to the same issue as the one reported with GHC, I guess.
>
> Instead of this '-next' trick, we should find a better mechanism where
> "guix install ghc" would install the default GHC used by the Haskell
> build-system.  Idem for the others guile-next, python-next etc..  And
> any other version should be installed using  the explicit mention,
> i.e., "guix install ghc <at> 8.8", IMHO.

Agreed, but I guess using the ‘-next’ suffix was be the easiest
workaround for now.

Maybe running ‘guix install ghc’ should install the GHC package that the
‘ghc’ variable refers to.  Then this would not only apply to language
ecosystems, but all packages in general.  Right now running ‘guix
install rsync’ installs the ‘rsync-next’ package, but I would expect it
to install the package that the ‘rsync’ variable is bound to.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#47335; Package guix. (Wed, 15 Sep 2021 11:04:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#47335; Package guix. (Wed, 15 Sep 2021 14:03:01 GMT) Full text and rfc822 format available.

Message #31 received at 47335 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: ruppe.charlie <at> gmail.com, Lars-Dominik Braun <lars <at> 6xq.net>,
 47335 <at> debbugs.gnu.org, 47335-done <at> debbugs.gnu.org
Subject: Re: bug#47335: Hide GHC not used for building Was: xmonad fails to
 recompile on guix system
Date: Wed, 15 Sep 2021 10:08:45 +0200
Hi,

On Wed, 15 Sept 2021 at 13:02, Xinglu Chen <public <at> yoctocell.xyz> wrote:

> Agreed, but I guess using the ‘-next’ suffix was be the easiest
> workaround for now.

Yeah but more than often, the workarounds remain longer than expected
and thus they cannot be considered as workaround. ;-)

> Maybe running ‘guix install ghc’ should install the GHC package that the
> ‘ghc’ variable refers to.  Then this would not only apply to language
> ecosystems, but all packages in general.  Right now running ‘guix
> install rsync’ installs the ‘rsync-next’ package, but I would expect it
> to install the package that the ‘rsync’ variable is bound to.

Well, the name has to be distinguished from the symbol.  The symbol
name does not matter from a CLI point of view; and usually not so much
from a regular user perspective.

What really matters, IMHO, is the name and the version.  Basically,
"guix install foo" will install the latest version of the package
'foo'.  To avoid this, the trick is to tweak to the name of the latest
version.  It is what happens with 'rsync'; so to be in agreement with
the '-next' approach, the name should be 'rsync-next' and not 'rsync'.

Anyway, we all agree that something is odd. :-)

Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#47335; Package guix. (Wed, 15 Sep 2021 14:03:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 Oct 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.