From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel Giamarchi Subject: bug#37064: Ghc 8.6.5 fails to find core package database Date: Sat, 17 Aug 2019 17:21:08 +0200 Message-ID: <731a105e-4cf8-0d88-798b-3907c458410a@student.ethz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36994) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hz1P1-0003rr-IQ for bug-guix@gnu.org; Sat, 17 Aug 2019 12:18:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hz1P0-0002gu-Lr for bug-guix@gnu.org; Sat, 17 Aug 2019 12:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47952) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hz1P0-0002gq-JK for bug-guix@gnu.org; Sat, 17 Aug 2019 12:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hz1P0-00083I-C5 for bug-guix@gnu.org; Sat, 17 Aug 2019 12:18:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:59617) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hz0c6-0000S3-SO for bug-guix@gnu.org; Sat, 17 Aug 2019 11:27:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hz0c5-0003Lg-Dt for bug-guix@gnu.org; Sat, 17 Aug 2019 11:27:30 -0400 Received: from edge10.ethz.ch ([82.130.75.186]:46516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hz0c5-0003Jn-2R for bug-guix@gnu.org; Sat, 17 Aug 2019 11:27:29 -0400 Content-Language: en-US List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 37064@debbugs.gnu.org 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=20 package.conf.d, but instead ghc 8.4.3's database. Note: Not setting this variable leads to a working ghc (will search in=20 default location), but is required to install additional packages via guix. The issue might come from guix/profiles.scm:812, since =C2=A0 (module-ref (resolve-interface '(gnu packages haskell)) 'ghc) evaluates to in my repl.