From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2Od2GUcrcGIDMQEAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 21:04:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uLF4GEcrcGImmwAAG6o9tA (envelope-from ) for ; Mon, 02 May 2022 21:04:39 +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 D05F226086 for ; Mon, 2 May 2022 21:04:38 +0200 (CEST) Received: from localhost ([::1]:55860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlbLZ-0005pZ-KI for larch@yhetil.org; Mon, 02 May 2022 15:04:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlbLP-0005pM-Ir for help-guix@gnu.org; Mon, 02 May 2022 15:04:27 -0400 Received: from mail-4319.protonmail.ch ([185.70.43.19]:61895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlbLM-0006BG-SR for help-guix@gnu.org; Mon, 02 May 2022 15:04:26 -0400 Date: Mon, 02 May 2022 19:04:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1651518260; bh=7bKQ4J4oEWQ2Kd03gxB4/Gqa5YF3kNLH0h0nCSsAB6Q=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=k3JXYOqFiClD/Jx1wNV/PzF9lwD1ooHjiqasA+CPSDp/pq7FCcfJ2UddLkbPZ3IQK D4nPSeR/fcku3eJ4RfD4kqPcz7S4Hnm9OVC6JOw2w+P2uo+NYGxcusp3Khm1xY3gQ/ tuCWDRuQGjx32ZCpGK/OrengtJyz7wCjsnaDbMCSSHdxGLlrCpIE+KjSb32UuF3BoI KH99ra/8F3nJ2L7L7f4L77ciqhJpNsKEPGZG66WpT5E7+nDvf6XlP5cNOCKVq2v5AA vYdnSmuhoaU9lHifc9HoAjdoeVSR0iatZrEmxyPZlaf2cbvFzCo+3smXk9kE+da/rz vGJlsy7h4K9hQ== To: zimoun From: marioBB Cc: "help-guix@gnu.org" Subject: Re: compile Message-ID: In-Reply-To: <87czgw9t7x.fsf@gmail.com> References: <8oqANf9M0C9CAIh2WBUj4-BrnaTLJ1EGNTxKqr4Iy4Wi3nPs4Xe8BNKerz7tfH27wPWF-9hZ8KBY5CRwh0nFj-RfLDeBhKxLRhum0n0pEfQ=@protonmail.com> <87czgw9t7x.fsf@gmail.com> Feedback-ID: 45079283:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.19; envelope-from=marJobb@protonmail.com; helo=mail-4319.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: marioBB Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651518278; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7bKQ4J4oEWQ2Kd03gxB4/Gqa5YF3kNLH0h0nCSsAB6Q=; b=JEMGnRwEhbPkqCYKGIRcJ4asQX4m09NuX9irJHSf0WBr+4CyM9bjoUebAwkfuc7YeyGiLa 8hywN7ZXWe+s5j0y7M3GIofHHs9GUvhvgLm/K7doPXiWh6xJqmSkF3SBK2cze1RvlOLJwn orunt/QGZhnsS5oOCKItW4HdVLHs+1SdbsBmeTgnBuMvRGCtpIfWI9bXl/HVUfZkj0PLWT 9bWunJlHLbhvi7VECY218bjpKlF0KV3GH53/+JI73spiJT5OXeX0sBjUgat8zuQA5xj5ql G9n4jvNhwefXoBqJzKRRb22os7WS8qaKlKJ9eO1iu0rZrBcEmju+hMUFCg7vyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651518278; a=rsa-sha256; cv=none; b=eGzIG6AyAQxRJGp4JJV53Js+HMKxKW+n6/4TWpNp14zrkmDAiKFMQDoQw7SC0pFpilQNEj gtKi8gFxHyc4qoGADsIYUniDhGjwcmRqWmzU7VPtGm+78EXpCbz9nRYue013eFsXQIMqw6 IC3GQgu2qOuk8d7B+9WiE+7yIGMNkopxCDTVEzIpt4LssJqXSq3+lYfPdml0OUIjn0Prlg FMqPZubw3zAyXbnD1gJnO14mhi7mgafbWNUqrosekn5Fqq/xU2/YiLva3mcG4HSzpVF26k /0cNRjJDa76+ZcUpIFGv+/XJ1/R/t9N3x2fU/iqNX59RA1Gh8rDOaPBCbUxWlQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail2 header.b=k3JXYOqF; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.48 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail2 header.b=k3JXYOqF; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D05F226086 X-Spam-Score: -2.48 X-Migadu-Scanner: scn1.migadu.com X-TUID: FrLOrRyOgffG > On Sat, 02 Apr 2022 at 18:46, marioBB via help-guix@gnu.org wrote: > > > I play around ghc compilation using guix ghc-* packages, but I've got a= problem. > > When I install some ghc package (guix install ghc-) > > I'd like to use it in this way 'ghc -o output HelloWorld.hs -package gh= c- > > I've got an error `: cannot satisfy -package zstd` (in this example I'v= e tried to use zstd) > > 'ghc-pkg list' and 'ghc-pkg describe ' show that the package is availab= le for ghc. > > Some suggestions? > > > Could you be more precise about which ghc- packages you installed and > trying to use? Hi Simon, thank you for answering to my issue. I chose arbitrary package (here `zstd`) I used manifest file with: (specifications->manifest '("ghc@8.10.7" "ghc-zstd")) $ guix shell $ ghc-pkg list |grep zstd I got: /gnu/store/gagi2sh0wma9vxbdl3dzgdwc64jfqd6r-profile/lib/ghc-8.10.7/ghc-zst= d-0.1.3.0 zstd-0.1.3.0 $ ghc -o output -package zstd Source.hs where Source.hs is -- import Codec.Compression.Zstd main =3D pure () -- I got a message: Loaded package environment from /home/ms/.ghc/x86_64-linux-8.10.7/environme= nts/default : cannot satisfy -package zstd (use -v for more information) I don't have experience in invoking ghc directly maybe I missed something. But the question is What do I try to achieve? Use guix as building and packaging system for Haskell software without usin= g Cabal, Stack. Just pure execution ghc compiler using Guix. Cheers, Mario