From unknown Fri Jun 20 20:12:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37064: Ghc 8.6.5 fails to find core package database Resent-From: Gabriel Giamarchi Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 17 Aug 2019 16:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37064 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 37064@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.156605867630934 (code B ref -1); Sat, 17 Aug 2019 16:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Aug 2019 16:17:56 +0000 Received: from localhost ([127.0.0.1]:56773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz1Ot-00082s-Gu for submit@debbugs.gnu.org; Sat, 17 Aug 2019 12:17:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:34814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz0c8-0006iE-PB for submit@debbugs.gnu.org; Sat, 17 Aug 2019 11:27:33 -0400 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED, RECEIVED_FROM_WINDOWS_HOST,URIBL_BLOCKED autolearn=disabled version=3.3.2 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 Received: from mailm113.d.ethz.ch (129.132.139.5) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.3.468.0; Sat, 17 Aug 2019 17:21:14 +0200 Received: from [172.16.28.115] (83.77.187.21) by mailm113.d.ethz.ch (2001:67c:10ec:5602::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Sat, 17 Aug 2019 17:21:14 +0200 From: Gabriel Giamarchi Message-ID: <731a105e-4cf8-0d88-798b-3907c458410a@student.ethz.ch> Date: Sat, 17 Aug 2019 17:21:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Originating-IP: [83.77.187.21] X-ClientProxiedBy: mailm110.d.ethz.ch (2001:67c:10ec:5602::22) To mailm113.d.ethz.ch (2001:67c:10ec:5602::25) X-TM-SNTS-SMTP: 186086FD7A730D709E612A950DBC5B7D5931C767DF0A8FC24A73A8B08C0B2DEA2000:8 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 82.130.75.186 X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Sat, 17 Aug 2019 12:17:54 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From unknown Fri Jun 20 20:12:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37064: Ghc 8.6.5 fails to find core package database Resent-From: Timothy Sample Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 22 Aug 2019 19:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37064 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Gabriel Giamarchi Cc: 37064@debbugs.gnu.org Received: via spool by 37064-submit@debbugs.gnu.org id=B37064.156650200732546 (code B ref 37064); Thu, 22 Aug 2019 19:27:02 +0000 Received: (at 37064) by debbugs.gnu.org; 22 Aug 2019 19:26:47 +0000 Received: from localhost ([127.0.0.1]:38347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0sjO-0008Sr-Vb for submit@debbugs.gnu.org; Thu, 22 Aug 2019 15:26:47 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0sjM-0008SR-C4 for 37064@debbugs.gnu.org; Thu, 22 Aug 2019 15:26:44 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E2F3321E6A; Thu, 22 Aug 2019 15:26:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 22 Aug 2019 15:26:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=S25m1048UQn46YGvAR1MFna52YCTR+IpXucQRWmtN vY=; b=UgGZ4d9JvWaJHNnkyigw8gD4pwxUhBA2sb6duTU5VCD9Fed9i3xDqat99 +ywM+WSdexbv8sR9CLR16/EHeVvNDuiEJy+KUjpi5bIEK2QKM7wdhfwtmVMm6MuN aSJbZh8ofp24NpTkQp1l/zjy7CZC9UBS6qJpXWQdorkqtUwkFwshL38Y2ghV9wo6 NxaHEuDfcO7vKbGWb7orpl3zGZzogYwENuez8S/znyys3RgbDGCYXOQ0FXj946Tp AaUlLDtnDh+s0bhCw2HOff48SiYG6kqR2En3MlyWlmaKOnkL4ryWbQcqaJ95QLW7 bD/WvxRitruIV9qFjDkG506BRkogA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudegiedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtgfesthhqredttderjeenucfhrhhomhepvfhimhho thhhhicuufgrmhhplhgvuceoshgrmhhplhgvthesnhhghihrohdrtghomheqnecukfhppe ejgedrudduiedrudekiedrgeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmphhl vghtsehnghihrhhordgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from mrblack (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA id 1038ED6005D; Thu, 22 Aug 2019 15:26:38 -0400 (EDT) From: Timothy Sample References: <731a105e-4cf8-0d88-798b-3907c458410a@student.ethz.ch> Date: Thu, 22 Aug 2019 15:26:37 -0400 In-Reply-To: <731a105e-4cf8-0d88-798b-3907c458410a@student.ethz.ch> (Gabriel Giamarchi's message of "Sat, 17 Aug 2019 17:21:08 +0200") Message-ID: <87zhk1f1ci.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Gabriel, Gabriel Giamarchi 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 > =C2=A0 (module-ref (resolve-interface '(gnu packages haskell)) 'ghc) > evaluates to in my repl. Good catch. I can confirm this is the issue, but I=E2=80=99m 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 From unknown Fri Jun 20 20:12:38 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Gabriel Giamarchi Subject: bug#37064: closed (Re: bug#37064: Ghc 8.6.5 fails to find core package database) Message-ID: References: <87ftl4x5vs.fsf@ngyro.com> <731a105e-4cf8-0d88-798b-3907c458410a@student.ethz.ch> X-Gnu-PR-Message: they-closed 37064 X-Gnu-PR-Package: guix Reply-To: 37064@debbugs.gnu.org Date: Tue, 10 Sep 2019 02:06:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1568081163-16318-1" This is a multi-part message in MIME format... ------------=_1568081163-16318-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #37064: Ghc 8.6.5 fails to find core package database which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 37064@debbugs.gnu.org. --=20 37064: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37064 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1568081163-16318-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 37064-done) by debbugs.gnu.org; 10 Sep 2019 02:05:52 +0000 Received: from localhost ([127.0.0.1]:40770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7VXT-0004Eo-Od for submit@debbugs.gnu.org; Mon, 09 Sep 2019 22:05:52 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:57203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7VXR-0004EY-SB for 37064-done@debbugs.gnu.org; Mon, 09 Sep 2019 22:05:50 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B76EE21E1C; Mon, 9 Sep 2019 22:05:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 09 Sep 2019 22:05:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=CB0PBHPYby19/FrZNM/joFlfiu8SbmY/bbTMa+ZDZ FY=; b=EsMEed6CJnt3K6/BvLZCmFi1104fZ8NCrIlUhxn2mXHHNsWc4MUp0YxdO SJg+ZwEuBmhCJHBu3OY0gei7OCubfS/7bqgNx2He8cZ6LuBoB9Vh3mAlOimJfU36 MjvEZiSljpiIJpq5oPdTo3HfcTjjdQh3060B9PkFDcCAqk6ih4IldPdkFdeu4yOz l49mqqcMDlzjA9N0952N6vpua0LJU67+F2KAANzg+6xtBXt3ioBJX+g9Aqsk82Sh kV7MbjF4azQGT2uDGzabmH7xqt66NylUOonOuX37wxRCR35oUTnq6+c9cjwo6HTX 0u7GvOshdec/Mc8LKJL9Qr4Cw94+A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekjedghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtgfesthhqredttderjeenucfhrhhomhepvfhimhho thhhhicuufgrmhhplhgvuceoshgrmhhplhgvthesnhhghihrohdrtghomheqnecukfhppe ejgedrudduiedrudekiedrgeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmphhl vghtsehnghihrhhordgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from mrblack (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA id E4DC680063; Mon, 9 Sep 2019 22:05:43 -0400 (EDT) From: Timothy Sample To: Gabriel Giamarchi Subject: Re: bug#37064: Ghc 8.6.5 fails to find core package database References: <731a105e-4cf8-0d88-798b-3907c458410a@student.ethz.ch> <87zhk1f1ci.fsf@ngyro.com> Date: Mon, 09 Sep 2019 22:05:43 -0400 In-Reply-To: <87zhk1f1ci.fsf@ngyro.com> (Timothy Sample's message of "Thu, 22 Aug 2019 15:26:37 -0400") Message-ID: <87ftl4x5vs.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 37064-done Cc: 37064-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi again, Timothy Sample writes: > Gabriel Giamarchi 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 >> =C2=A0 (module-ref (resolve-interface '(gnu packages haskell)) 'ghc) >> evaluates to in my repl. > > Good catch. I can confirm this is the issue, but I=E2=80=99m not sure ho= w 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 ------------=_1568081163-16318-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Aug 2019 16:17:56 +0000 Received: from localhost ([127.0.0.1]:56773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz1Ot-00082s-Gu for submit@debbugs.gnu.org; Sat, 17 Aug 2019 12:17:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:34814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hz0c8-0006iE-PB for submit@debbugs.gnu.org; Sat, 17 Aug 2019 11:27:33 -0400 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED, RECEIVED_FROM_WINDOWS_HOST,URIBL_BLOCKED autolearn=disabled version=3.3.2 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 Received: from mailm113.d.ethz.ch (129.132.139.5) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.3.468.0; Sat, 17 Aug 2019 17:21:14 +0200 Received: from [172.16.28.115] (83.77.187.21) by mailm113.d.ethz.ch (2001:67c:10ec:5602::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Sat, 17 Aug 2019 17:21:14 +0200 To: From: Gabriel Giamarchi Subject: Ghc 8.6.5 fails to find core package database Message-ID: <731a105e-4cf8-0d88-798b-3907c458410a@student.ethz.ch> Date: Sat, 17 Aug 2019 17:21:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Originating-IP: [83.77.187.21] X-ClientProxiedBy: mailm110.d.ethz.ch (2001:67c:10ec:5602::22) To mailm113.d.ethz.ch (2001:67c:10ec:5602::25) X-TM-SNTS-SMTP: 186086FD7A730D709E612A950DBC5B7D5931C767DF0A8FC24A73A8B08C0B2DEA2000:8 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 82.130.75.186 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 17 Aug 2019 12:17:54 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. ------------=_1568081163-16318-1--