GNU bug report logs - #37064
Ghc 8.6.5 fails to find core package database

Previous Next

Package: guix;

Reported by: Gabriel Giamarchi <gabrielg <at> student.ethz.ch>

Date: Sat, 17 Aug 2019 16:18:02 UTC

Severity: normal

Done: Timothy Sample <samplet <at> ngyro.com>

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 37064 in the body.
You can then email your comments to 37064 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#37064; Package guix. (Sat, 17 Aug 2019 16:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gabriel Giamarchi <gabrielg <at> student.ethz.ch>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 17 Aug 2019 16:18:02 GMT) Full text and rfc822 format available.

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

From: Gabriel Giamarchi <gabrielg <at> student.ethz.ch>
To: <bug-guix <at> gnu.org>
Subject: Ghc 8.6.5 fails to find core package database
Date: Sat, 17 Aug 2019 17:21:08 +0200
Installing only 'ghc 8.6.5' (Glasgow Haskell compiler) and sourcing

'~/.guix-profile/etc/profile' leads to ghc not finding core modules.
('ghci' doesn't find System.IO for instance).

This is due to $GHC_PACKAGE_PATH not containing ghc 8.6.5's 
package.conf.d, but
instead ghc 8.4.3's database.
Note: Not setting this variable leads to a working ghc (will search in 
default
location), but is required to install additional packages via guix.

The issue might come from guix/profiles.scm:812, since
  (module-ref (resolve-interface '(gnu packages haskell)) 'ghc)
evaluates to <package ghc <at> 8.4.3 gnu/packages/haskell.scm:445> in my repl.




Information forwarded to bug-guix <at> gnu.org:
bug#37064; Package guix. (Thu, 22 Aug 2019 19:27:02 GMT) Full text and rfc822 format available.

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

From: Timothy Sample <samplet <at> ngyro.com>
To: Gabriel Giamarchi <gabrielg <at> student.ethz.ch>
Cc: 37064 <at> debbugs.gnu.org
Subject: Re: bug#37064: Ghc 8.6.5 fails to find core package database
Date: Thu, 22 Aug 2019 15:26:37 -0400
Hi Gabriel,

Gabriel Giamarchi <gabrielg <at> student.ethz.ch> writes:

> Installing only 'ghc 8.6.5' (Glasgow Haskell compiler) and sourcing
>
> '~/.guix-profile/etc/profile' leads to ghc not finding core modules.
> ('ghci' doesn't find System.IO for instance).
>
> This is due to $GHC_PACKAGE_PATH not containing ghc 8.6.5's
> package.conf.d, but
> instead ghc 8.4.3's database.

Ouch!

> Note: Not setting this variable leads to a working ghc (will search in
> default
> location), but is required to install additional packages via guix.
>
> The issue might come from guix/profiles.scm:812, since
>   (module-ref (resolve-interface '(gnu packages haskell)) 'ghc)
> evaluates to <package ghc <at> 8.4.3 gnu/packages/haskell.scm:445> in my repl.

Good catch.  I can confirm this is the issue, but I’m not sure how to
fix it.  We could try to find GHC from the profile rather than
unconditionally using a certain package.  However, that would not help
if someone were to install GHC 8.4 and 8.6 in the same profile.


-- Tim




Reply sent to Timothy Sample <samplet <at> ngyro.com>:
You have taken responsibility. (Tue, 10 Sep 2019 02:06:02 GMT) Full text and rfc822 format available.

Notification sent to Gabriel Giamarchi <gabrielg <at> student.ethz.ch>:
bug acknowledged by developer. (Tue, 10 Sep 2019 02:06:02 GMT) Full text and rfc822 format available.

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

From: Timothy Sample <samplet <at> ngyro.com>
To: Gabriel Giamarchi <gabrielg <at> student.ethz.ch>
Cc: 37064-done <at> debbugs.gnu.org
Subject: Re: bug#37064: Ghc 8.6.5 fails to find core package database
Date: Mon, 09 Sep 2019 22:05:43 -0400
Hi again,

Timothy Sample <samplet <at> ngyro.com> writes:

> Gabriel Giamarchi <gabrielg <at> student.ethz.ch> writes:
>
>> Installing only 'ghc 8.6.5' (Glasgow Haskell compiler) and sourcing
>>
>> '~/.guix-profile/etc/profile' leads to ghc not finding core modules.
>> ('ghci' doesn't find System.IO for instance).
>>
>> This is due to $GHC_PACKAGE_PATH not containing ghc 8.6.5's
>> package.conf.d, but
>> instead ghc 8.4.3's database.
>>
>> Note: Not setting this variable leads to a working ghc (will search in
>> default
>> location), but is required to install additional packages via guix.
>>
>> The issue might come from guix/profiles.scm:812, since
>>   (module-ref (resolve-interface '(gnu packages haskell)) 'ghc)
>> evaluates to <package ghc <at> 8.4.3 gnu/packages/haskell.scm:445> in my repl.
>
> Good catch.  I can confirm this is the issue, but I’m not sure how to
> fix it.  We could try to find GHC from the profile rather than
> unconditionally using a certain package.  However, that would not help
> if someone were to install GHC 8.4 and 8.6 in the same profile.

I took another look at this and we were wrong!  The main issue here is
that I made a mistake in the GHC 8.6 package definition, and it was
setting GHC_PACKAGE_PATH incorrectly.  This should be fixed as of commit
83aa656217.  Sorry for the trouble.

Note that you will likely run into trouble trying to use other
Guix-provided Haskell packages with GHC 8.6, as they are all built with
GHC 8.4.  AFAIU, this is not something that GHC supports.


-- Tim




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

This bug report was last modified 4 years and 200 days ago.

Previous Next


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