From: Timothy Sample <samplet@ngyro.com>
To: Gabriel Giamarchi <gabrielg@student.ethz.ch>
Cc: 37064-done@debbugs.gnu.org
Subject: bug#37064: Ghc 8.6.5 fails to find core package database
Date: Mon, 09 Sep 2019 22:05:43 -0400 [thread overview]
Message-ID: <87ftl4x5vs.fsf@ngyro.com> (raw)
In-Reply-To: <87zhk1f1ci.fsf@ngyro.com> (Timothy Sample's message of "Thu, 22 Aug 2019 15:26:37 -0400")
Hi again,
Timothy Sample <samplet@ngyro.com> writes:
> Gabriel Giamarchi <gabrielg@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@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
prev parent reply other threads:[~2019-09-10 2:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-17 15:21 bug#37064: Ghc 8.6.5 fails to find core package database Gabriel Giamarchi
2019-08-22 19:26 ` Timothy Sample
2019-09-10 2:05 ` Timothy Sample [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ftl4x5vs.fsf@ngyro.com \
--to=samplet@ngyro.com \
--cc=37064-done@debbugs.gnu.org \
--cc=gabrielg@student.ethz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).