From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aBDXI75f7mQSzQAAG6o9tA:P1 (envelope-from ) for ; Tue, 29 Aug 2023 23:14:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aBDXI75f7mQSzQAAG6o9tA (envelope-from ) for ; Tue, 29 Aug 2023 23:14:38 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7F6D534AF9 for ; Tue, 29 Aug 2023 23:14:38 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=oRoZLunn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693343678; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=N7YS3xaiVe8mYqnZf7aLb1Ca54yU8MBO2ay5LARvNnY=; b=EyTrb9QB0HDm/vjs+75OhwsmLQ88aPXkQi1zI9DOvrO1FJNpwwu4JoI6P1+fRK8PR4sNsZ NhNEU14y+7us79rOOt8fFg5efA3StdzMBhqC8MUrCfJEsEInMrME6n3gVBPOQl5733XfI0 3HB72J87mShYKhZk4COx6m5WNk+w9MIBkGmAkQ8HtUq6d7xz4hCYuZTPK316c0YLtD5KtY +Psm0HUouMRdbDS4NEyLdNisTYoB7BOYCoFqu/b5m4vR1dwVQhQZA2l0qoJUNpk0/v4kQT cwzWppl0I9kAd3AykG2ZaWJz9EFX22Olw+JUoUzWTET2iVET2NSE7k76k7zGIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693343678; a=rsa-sha256; cv=none; b=RfGwiDWbMVEOma6dGYDNWGF3fyLoJVA0VUYouolGzpsqt3gppnf6kWBgzXe+rH1CV/pzjD X/EZbLmIKJ2lyFcevqRD+fyng/UK9NjdcnmhPb4rq9+f7DICXnGXXXJrQb0YHHZr2Fc6QJ JLXURZgAFBJIIcxDaC0xrb8QGCeHQo7mMEvIh/Pd9aNrdnj3VwkZUxhJl5sa9Jd8Lhe2JA L7vK24+PrQpzj77CNSA0eNEnfqNlwqsiDGDJmmEP6QUyVzbvfUHHQOrlXevwf8ztJQLwJQ FK03qlHRW3XN1AVpUPvDz9XAEO/pVKiY9g/Lmgt4EQPdPw1dWvsX27WnMqMX0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=oRoZLunn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qb62Z-0000ca-Ap; Tue, 29 Aug 2023 17:14:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qb5xG-0006bL-UL for bug-guix@gnu.org; Tue, 29 Aug 2023 17:08:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qb5xG-0003Ds-MZ for bug-guix@gnu.org; Tue, 29 Aug 2023 17:08:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qb5xN-0008DD-Q7 for bug-guix@gnu.org; Tue, 29 Aug 2023 17:09:01 -0400 Subject: bug#65460: ghc/ghci are broken Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 29 Aug 2023 21:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 65460 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Saku Laesvuori Cc: 65460-done@debbugs.gnu.org, paren@disroot.org, Csepp , Jonas Mail-Followup-To: 65460@debbugs.gnu.org, maxim.cournoyer@gmail.com, jonas@moesys.no Received: via spool by 65460-done@debbugs.gnu.org id=D65460.169334328131496 (code D ref 65460); Tue, 29 Aug 2023 21:09:01 +0000 Received: (at 65460-done) by debbugs.gnu.org; 29 Aug 2023 21:08:01 +0000 Received: from localhost ([127.0.0.1]:51710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qb5wP-0008Bj-D3 for submit@debbugs.gnu.org; Tue, 29 Aug 2023 17:08:01 -0400 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]:61914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qb5wM-0008BQ-Lp for 65460-done@debbugs.gnu.org; Tue, 29 Aug 2023 17:08:00 -0400 Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-4106b6aa94bso32959501cf.3 for <65460-done@debbugs.gnu.org>; Tue, 29 Aug 2023 14:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693343266; x=1693948066; darn=debbugs.gnu.org; h=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=N7YS3xaiVe8mYqnZf7aLb1Ca54yU8MBO2ay5LARvNnY=; b=oRoZLunnW/s99RCnpi0lNnNy4E9pnIUX2Oc9QadZemN2mVhopJDVkYbuLAhQiFa3+L bSvlJ9jyhIDP3HtUaiaY/FhrTpO7FAjiCzug0hOQMvUebH8+oki5gpo67x8dcl+UOl2p HVdn7nIQwayU+MXCSEIMElI5JKcDXcceXJyUNb6OT/nw68fCAiam63FrtLCaYOpxBaTm w8HCXjIaSfa99z+uKX92ze+XBqV+1QMZ45OljXaciGvfDNzO2Gur5fALiESbW5la8Plq tDyYlHWKYhycVywiwN565HOYgYUFohL0YPR/a3vTdXz4e0UdoaZS8qmkPdgPpisOGDna K0FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693343266; x=1693948066; h=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=N7YS3xaiVe8mYqnZf7aLb1Ca54yU8MBO2ay5LARvNnY=; b=kB+zklg+uY1rJE8l4IWhFMgAmcs+kiSNnRVMYFEf6UXyEmTAyQo9Zvd5AT2AFgqU0p 2K8Voef+jUW+p0jOJUiZ/mAClmsueEvF7nr6hyLu+vL1Dne5VgM3fyaoVyOXB9OzRYkR U9gGuWXSW0ONesa72trlqlOyONvVk6hI9UgxvVMJaq19zCr1tLR+lY7OG8/9kuvGdQDx OIWos7TKgbMRKyk2/3ZaXvhyj9NSniubstNWkI1mFfzg/3sctt+mESYL89/K/Y7jIsVR O/A+Ct5QpY9QUx4m2Fz6eChcyu0n8y/4wsVjq0rZIRT/GVmSs9mzWoj1APRArZExuJu3 HCAQ== X-Gm-Message-State: AOJu0YznuqB52ggLqm02QCsby6rJcyHfFCkY9DFTM4s2NJHird4zj+KF iSIjX3wD8hxj740FRXO8jjs= X-Google-Smtp-Source: AGHT+IEAd9wnZcWaV7FtJoPIETdpR+T/JvmULaPTqV1T4EKuESAARMbXITI1Y7Mr1CpKG2vAsCkFVw== X-Received: by 2002:a05:622a:4:b0:40c:8f5d:1b3 with SMTP id x4-20020a05622a000400b0040c8f5d01b3mr207721qtw.41.1693343265943; Tue, 29 Aug 2023 14:07:45 -0700 (PDT) Received: from hurd (dsl-10-132-204.b2b2c.ca. [72.10.132.204]) by smtp.gmail.com with ESMTPSA id m16-20020ac86890000000b00403c1a19a2bsm3234056qtq.92.2023.08.29.14.07.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 14:07:45 -0700 (PDT) From: Maxim Cournoyer References: <87a5ui5ofr.fsf@disroot.org> <9740da44-a75f-440b-8bea-7e1ad3beb926@moesys.no> <87il95ddk4.fsf@riseup.net> <20230823161614.zhc3cnjjipkqjfy7@X-kone> Date: Tue, 29 Aug 2023 17:07:44 -0400 In-Reply-To: <20230823161614.zhc3cnjjipkqjfy7@X-kone> (Saku Laesvuori's message of "Wed, 23 Aug 2023 19:16:14 +0300") Message-ID: <87bkep8sm7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.78 X-Spam-Score: 2.78 X-Migadu-Queue-Id: 7F6D534AF9 X-Migadu-Scanner: mx2.migadu.com X-TUID: zwrLHRaMwvjW Hi, Saku Laesvuori writes: >> > Thanks! Adding gcc-toolchain to the profile fixed it, but shouldn't this >> > be automatically brought in by `guix install ghc`? This does still feels >> > like a bug to me, shouldn't gcc-toolchain be a part of ghcs native-inputs? > > native-inputs are for buildtime inputs and here ghc needs a c toolchain > at runtime to compile another haskell program so gcc-toolchain should be > in "normal" inputs. > >> I assume GHC can work with other toolchains, like Clang, so it's better >> to be explicit about what you want to use. > > I think it would still be good to have a c toolchain as an input. Guix > packages are, if I understand correctly, supposed to work without having > to explicitly install their dependencies. If someone wants to use a > different c toolchain than the default, they can use a package > transformation to change it. > > Maybe we could even have the current ghc as a hidden package and have > the public package wrap the hidden ghc adding gcc-toolchain to it's > environment, so that changing the c toolchain wouldn't require > rebuilding ghc. For building tools requiring a compiler, the current expectation across Guix packages is that the user provides the one it wants. Even if using GCC, you may want to use a different version, and rebuilding GHC just to do so is... expensive. I'm closing, but if you'd like this to be further discussed you could start a thread on guix-devel. -- Thanks, Maxim