From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 14 16:00:53 2021 Received: (at submit) by debbugs.gnu.org; 14 Oct 2021 20:00:53 +0000 Received: from localhost ([127.0.0.1]:37158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb6uL-0002Dm-In for submit@debbugs.gnu.org; Thu, 14 Oct 2021 16:00:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:35336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb6uJ-0002De-Hx for submit@debbugs.gnu.org; Thu, 14 Oct 2021 16:00:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb6uI-0001jY-Kw for bug-guix@gnu.org; Thu, 14 Oct 2021 16:00:51 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:59538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb6uG-0000Xm-CI for bug-guix@gnu.org; Thu, 14 Oct 2021 16:00:50 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mb6uD-0000ky-PX for bug-guix@gnu.org; Thu, 14 Oct 2021 16:00:45 -0400 Date: Thu, 14 Oct 2021 16:00:45 -0400 (EDT) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: bug-guix@gnu.org Subject: ghci missing reference to gcc Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Received-SPF: pass client-ip=104.248.1.95; envelope-from=jackhill@jackhill.us; helo=minsky.hcoop.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit 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: -2.4 (--) Hi Guix, Using Guix 5fafb6e792c1e18ec223f0c7fb350d0c9b962a45, running ghci in an environment can't find gcc: $ guix environment --ad-hoc ghc -- ghci GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help ghc: could not execute: gcc but if gcc-toolchain is included, it can: $ guix environment --ad-hoc ghc gcc-toolchain -- ghci substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0% The following derivation will be built: /gnu/store/dqga43d50f6n1isazmi4cx83l3hyhsz5-profile.drv 60.0 MB will be downloaded substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% gcc-11.2.0-lib 5.0MiB 1.5MiB/s 00:03 [##################] 100.0% gcc-11.2.0 30.7MiB 2.4MiB/s 00:13 [##################] 100.0% gcc-toolchain-11.2.0 5KiB 40KiB/s 00:00 [##################] 100.0% building CA certificate bundle... listing Emacs sub-directories... building fonts directory... building GHC package cache... building directory of Info manuals... building database for manual pages... building profile with 2 packages... GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help Prelude> Best, Jack From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 17 00:11:12 2021 Received: (at 51213) by debbugs.gnu.org; 17 Oct 2021 04:11:12 +0000 Received: from localhost ([127.0.0.1]:43341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbxVw-0005y7-3G for submit@debbugs.gnu.org; Sun, 17 Oct 2021 00:11:12 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:54742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbxVt-0005xs-2t for 51213@debbugs.gnu.org; Sun, 17 Oct 2021 00:11:10 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbxVn-0007eh-Ju for 51213@debbugs.gnu.org; Sun, 17 Oct 2021 00:11:03 -0400 Date: Sun, 17 Oct 2021 00:11:03 -0400 (EDT) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: 51213@debbugs.gnu.org Subject: Re: bug#51213: ghci missing reference to gcc In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51213 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.0 (-) On Thu, 14 Oct 2021, Jack Hill wrote: > Hi Guix, > > Using Guix 5fafb6e792c1e18ec223f0c7fb350d0c9b962a45, running ghci in an > environment can't find gcc: Some more observations about this problem. It only occurs with our two newest GHC packages (8.10.7 and 8.8.4), previous releases start ghci and perform light usage fine. However, all releases fail to build executables without gcc-toolchain in the path: ``` jackhill@alperton /tmp [env]$ ghc hello.hs [1 of 1] Compiling Main ( hello.hs, hello.o ) : error: Warning: Couldn't figure out C compiler information! Make sure you're using GNU gcc, or clang ghc: could not execute: gcc jackhill@alperton /tmp [env]$ ghc --version The Glorious Glasgow Haskell Compilation System, version 8.10.7 ``` Interestingly, clang-toolchain can be substituted for gcc-toolchain to get a working ghci, but with 8.10.7, compiling with gcc still doesn't work, but ghc 7.10.2 find clang-toolchain to be satisfactory. Best, Jack From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 22 12:46:09 2023 Received: (at 51213) by debbugs.gnu.org; 22 Sep 2023 16:46:09 +0000 Received: from localhost ([127.0.0.1]:37233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjjI9-0006P6-1d for submit@debbugs.gnu.org; Fri, 22 Sep 2023 12:46:09 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:41174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjjHw-0006N0-7b for 51213@debbugs.gnu.org; Fri, 22 Sep 2023 12:45:58 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40506bfca64so8175905e9.0 for <51213@debbugs.gnu.org>; Fri, 22 Sep 2023 09:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695401139; x=1696005939; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=9pYmh60PZMsy/WjrEJAsQXG4ORT/RrzopE+0c9LIAVY=; b=gzQ85rRem4kzQW8eM2C248BZTYD7+0YQo/S9vkk4JdmHNXRVAE+IZmlMUp00qXOV5S jqJz9SHbPUGK8hLwFrNputgak9IEVYmFb42dZ6Tbdr4IMEHpoa5OXiCyVIc2km1Z+5AK JX+thq0MVsSMKR/XVslMT9D0/beZl2EmVoJJKNGgiafx+UVHbzNdvxEnamW2ytqS1YEX cBGDlagmzgU7O4qavzSNcP/xBI3Ypdz5mvIsDhvuxV5Zx3CTZNnig9BsNlDKqd0WiWo7 1ScKKKwjcZ5k49opR7akcmlDefMOkU87w0y9v60teq2gVCXCJ1o/xJ+EWVCYAO8Bj3/t hZ0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695401139; x=1696005939; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9pYmh60PZMsy/WjrEJAsQXG4ORT/RrzopE+0c9LIAVY=; b=o10xPbrNgz8Ossf/Bmd6TEmFC26jPm8IqivAqInb5e/H8xxSM2P3aGQwemJARZJ7XH zcHIerSLA0T3en+q7g2OGSZT56DkzEZ6RKjQJ9yQviVxl4fjLQ7kl1/y+dIFL6Mlbokv fBTO0u8p/i3+ETyJ1GcDJMvzIev/yXbyDfspRiM7FVO5tp9MhDVq/O8RL0iXvXFM8hBm OAqzYAeG1aGC3+bgFVwP9ZQax0x2aCJXzpBobw5d/y5v3oA/Uz4U+KmhA9PHzubv9V4R d8bCo1MxBqwgLh6yI+mnVwmQaFaOYArvsoD+jjpHbWjgSbonQ7ShuzIP7144X+XOiNM6 E3aQ== X-Gm-Message-State: AOJu0YwN0S3eNoKN+BWtFjU4BlK/L6+YHODTt3nOk1QoUblboUgBSTvw s6sg1BAJ6bmbUmhuSnodcxN7mYCGtU0= X-Google-Smtp-Source: AGHT+IEZTtT7934mReszxwlCMi0LKt1Clfr/KJyN7kC7BkNz8+IXsk3XJ/jUjoe+sSOurb3Yq5NwOg== X-Received: by 2002:adf:fd01:0:b0:319:7624:4c88 with SMTP id e1-20020adffd01000000b0031976244c88mr275997wrr.0.1695401139382; Fri, 22 Sep 2023 09:45:39 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id a4-20020adff7c4000000b0031fc9402b47sm4935183wrq.4.2023.09.22.09.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 09:45:38 -0700 (PDT) From: Simon Tournier To: Jack Hill Subject: Re: bug#51213: ghci missing reference to gcc References: Date: Fri, 22 Sep 2023 18:19:09 +0200 In-Reply-To: (Jack Hill's message of "Thu, 14 Oct 2021 16:00:45 -0400 (EDT)") Message-ID: <8734z689ky.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51213 Cc: 51213@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.0 (-) Hi, On Thu, 14 Oct 2021 at 16:00, Jack Hill wrote: > $ guix environment --ad-hoc ghc -- ghci > GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help > ghc: could not execute: gcc This is currently expected. > but if gcc-toolchain is included, it can: One option is to have a package =E2=80=9Cghc-toolchain=E2=80=9C which provi= de ghc and all the other required packages. I have some patches for that somewhere. :-) For now, I propose to close and just add gcc-toolchain. WDYT? Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 22 21:24:13 2023 Received: (at 51213) by debbugs.gnu.org; 23 Sep 2023 01:24:13 +0000 Received: from localhost ([127.0.0.1]:37534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjrNU-0002m6-Pe for submit@debbugs.gnu.org; Fri, 22 Sep 2023 21:24:13 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:41976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjrNR-0002ln-Vw for 51213@debbugs.gnu.org; Fri, 22 Sep 2023 21:24:11 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qjrNB-0001Km-AM; Fri, 22 Sep 2023 21:23:53 -0400 Date: Fri, 22 Sep 2023 21:23:52 -0400 (EDT) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: Simon Tournier Subject: Re: bug#51213: ghci missing reference to gcc In-Reply-To: <8734z689ky.fsf@gmail.com> Message-ID: References: <8734z689ky.fsf@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="925712948-472554597-1695432233=:16303" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51213 Cc: 51213@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.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --925712948-472554597-1695432233=:16303 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT Hi Simon, Thanks for caring for this old issue. On Fri, 22 Sep 2023, Simon Tournier wrote: > Hi, > > On Thu, 14 Oct 2021 at 16:00, Jack Hill wrote: > >> $ guix environment --ad-hoc ghc -- ghci >> GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help >> ghc: could not execute: gcc > > This is currently expected. > > >> but if gcc-toolchain is included, it can: > > One option is to have a package “ghc-toolchain“ which provide ghc and > all the other required packages. I have some patches for that > somewhere. :-) > > For now, I propose to close and just add gcc-toolchain. > > WDYT? Yes, I agree. I think having a ghc-toolchain would match my expectation. Until then, I think we can close. Let's keep working on improving the Haskell in Guix experience! Best, Jack --925712948-472554597-1695432233=:16303--