From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GDVcOGQb5mSaKAAASxT56A (envelope-from ) for ; Wed, 23 Aug 2023 16:44:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YHhAN2Qb5mTjUAEAG6o9tA (envelope-from ) for ; Wed, 23 Aug 2023 16:44:52 +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 01F5E43F68 for ; Wed, 23 Aug 2023 16:44:52 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=hFuA4Rdo; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692801892; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: 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=74r7XH8Kk+LGqAUT/m6fCf3uZRCpAHV+E46MwzTkxug=; b=ilFf5F5J8R3QbuNEIKsImMMy4zYBAYd8VE6rPbl+aUCYSqawc5Z1xV1Q8SPxvNGZpKEtAh yoOoErgjkIB3Mez3yncghEHDrT0h3vv5IiAhVDhQGzunTNhBDQ8jEEmlqwNtTaVTqEs3Pt w8H9DFtl8864II+MinKqGJ6hP2u59L8VH6+6pbiNm9/Z5u0/0QpgzR7/i8e1CxH89dWMGN 7J0AOic8kqid8g8UwRAJclNyJHRW1sCK/SuCMec/jcSzLPk2MbZBux15j7DkdUk881NoXP jd/0DIJ2sGsQlxYin+GEf2lGbP3jb4n+iBzoLnCZ7zWWrZrFwHDOmgiOCeNz3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692801892; a=rsa-sha256; cv=none; b=FfALKgSFk+ttoI7jyiNIVDfrbQqgd9q+iJEGMR9NKKPzkt+Zk5/tXfaG7hpXM6WuFSA4gT B4q7U5InpNP7aU/3ZlO14bUlqu56KpEUnkjWJ2gc0g9l6tODrX5yAZhGGoZiQtMe94eRNL LXOq2SDFymwFVa9aBlYQGzqIt9h1gG5Nnytjp4eFcn0csBW2wQj2lR8XTSObi2kR905ley NDGjMPVgdz0FCP7PWMXl93UUhSK0rFr6KXq4MC3K9DoRQXFAm0gF+U8uhZOF4O0GNh4kei bpje62G7Z+udI4QUnCuoqZwxVImu22tVMFjtgbQvAnnEV+wlxG2xhJ+534hOCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=hFuA4Rdo; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYp66-0003p2-At; Wed, 23 Aug 2023 10:44:38 -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 1qYp5T-0003n1-Ei for bug-guix@gnu.org; Wed, 23 Aug 2023 10:43:59 -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 1qYp5S-0004xd-U3 for bug-guix@gnu.org; Wed, 23 Aug 2023 10:43:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYp5W-00060J-2K for bug-guix@gnu.org; Wed, 23 Aug 2023 10:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65460: ghc/ghci are broken Resent-From: Csepp Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 23 Aug 2023 14:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65460 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jonas Cc: 65460@debbugs.gnu.org, paren@disroot.org X-Debbugs-Original-Cc: 65460@debbugs.gnu.org, "\(" , bug-guix@gnu.org Received: via spool by 65460-submit@debbugs.gnu.org id=B65460.169280183823054 (code B ref 65460); Wed, 23 Aug 2023 14:44:02 +0000 Received: (at 65460) by debbugs.gnu.org; 23 Aug 2023 14:43:58 +0000 Received: from localhost ([127.0.0.1]:34864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYp5R-0005zl-Io for submit@debbugs.gnu.org; Wed, 23 Aug 2023 10:43:57 -0400 Received: from mx0.riseup.net ([198.252.153.6]:34448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYp5O-0005zP-7e for 65460@debbugs.gnu.org; Wed, 23 Aug 2023 10:43:56 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4RW89F00M3z9t82; Wed, 23 Aug 2023 14:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1692801825; bh=XAu5AshPAKBjFl6wCP9beKnMmg77bActUfsQdLUcld4=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=hFuA4Rdow31ii+uy7nh/PISurV0bssWGfzLJEt8GXdHC8ISusF/hUVE9q5UmFtJCX 2zWJPiNlbFY5cHklM2mQ6WRT+HUyXi1WEyL0zLbaHyIEkewFJVrUuW55ibfRa6GdaU LxFLp9Z4feD+/lUa8lMojJHqisZln4V7Fwba3yrA= X-Riseup-User-ID: B7D3D6021867F8365146C0EE7E215FF6FC788BD321D394A9DE888058DA4CCFBF Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4RW89D2MxQzFq03; Wed, 23 Aug 2023 14:43:43 +0000 (UTC) References: <87a5ui5ofr.fsf@disroot.org> <9740da44-a75f-440b-8bea-7e1ad3beb926@moesys.no> From: Csepp Date: Wed, 23 Aug 2023 16:42:43 +0200 In-reply-to: <9740da44-a75f-440b-8bea-7e1ad3beb926@moesys.no> Message-ID: <87il95ddk4.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: -5.21 X-Spam-Score: -5.21 X-Migadu-Queue-Id: 01F5E43F68 X-Migadu-Scanner: mx1.migadu.com X-TUID: FPmczuMvNIN1 Jonas via Bug reports for GNU Guix writes: > Thanks! Adding gcc-toolchain to the profile fixed it, but shouldn't this= =20 > be automatically brought in by `guix install ghc`? This does still feels= =20 > like a bug to me, shouldn't gcc-toolchain be a part of ghcs native-inputs? > > sanoj@deimos ~/builds/hs-hello$ guix shell --container ghc -- ghc hello.hs > Linking hello ... > > : error: > =C2=A0=C2=A0=C2=A0 Warning: Couldn't figure out C compiler information! > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= Make sure you're using GNU gcc, or clang > ghc: could not execute: gcc > > Den 8/23/23 07:14, skrev (: >> Jonas via Bug reports for GNU Guix writes: >>> And compiling a hello-world program with ghc gives me: >>> >>> [1 of 1] Compiling Main=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 ( hello.hs, hello.o ) >>> >>> : error: >>> =C2=A0=C2=A0=C2=A0 Warning: Couldn't figure out C compiler informatio= n! >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 Make sure you're using GNU gcc, or clang >> At the risk of stating an obvious thing that you've probably already >> tried; is `gcc-toolchain` available in the environment? >> >> -- ( I assume GHC can work with other toolchains, like Clang, so it's better to be explicit about what you want to use.