From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eKKYLmM9cGL84gAAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 22:21:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QIN8LmM9cGK8yAAA9RJhRA (envelope-from ) for ; Mon, 02 May 2022 22:21:55 +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 2996E1282D for ; Mon, 2 May 2022 22:21:55 +0200 (CEST) Received: from localhost ([::1]:51110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlcYM-0001hj-AK for larch@yhetil.org; Mon, 02 May 2022 16:21:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlcY1-0001ha-I0 for help-guix@gnu.org; Mon, 02 May 2022 16:21:33 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:45813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlcXz-0000CT-Us for help-guix@gnu.org; Mon, 02 May 2022 16:21:33 -0400 Received: by mail-wr1-x42e.google.com with SMTP id w4so20850517wrg.12 for ; Mon, 02 May 2022 13:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=ywI31r8RBr0SKnSNCGLl9pZmgGHb7azoEsevBs4dI4o=; b=ePN8ACaFENo/g7BduzpzZEscxExIi2gJM7A5PuQKDDl+2zom8Fgm5hHOFSQma+crMq 392+jakoWEopTPOM2dYjZijN30SIN4pk9UcfdO/bguJPDq0vnxgovvq3BwliEtBGsmDX rdQe+IZYqL4rnlts7E/trc/xofg0MQsbTEojF0iiTaErTAlrE+juOzX6J06X9ycEEamc +gg5INRqUzOSTdWT/Wbh0dZ44psSU4Ix4m6e7G4qIJyxtcY0tuYZMaS4nJu1IPoEFlLe VA36rmWWjuO7BRkctD151NXRqsrRYV+PUjIKdTAu47ggORutphFO34BC6kozCwufkkI8 eQSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=ywI31r8RBr0SKnSNCGLl9pZmgGHb7azoEsevBs4dI4o=; b=PJOHPpH5xlyZd7ksu147v0EflCZ+5RQ+lCULy6lSzcrI9ZUVnPtqqwtFCkla1KqYJe jE5DGUeMDg1AptfS5ERV5b9CmeDruL99xeb0DV0E2CPUIm4DziEExX2RcGr/5So/TZAx VecoNrA+g6vXKDX6ntfRxvf1QucIQ4B7v7K7Jr2gIy3lWhqoiv7YJR7tQx8bsAIjszN2 w84R8v+l379P9VKbZHZnKQcu7JeI5gQ2P71qAeU7KwEvPyWsVADfbvAd2NuVAexVR2OE BFDLVz2a8XdRnJB8r+7CparN3z7sGguDggJaTK07+Y5l8e+Wjc13OFNtmuzvEfBdpfW0 ZR+g== X-Gm-Message-State: AOAM531EVx0AlaksqciMpfFYQz0AXaLLwPv+RZ/t1yKJzd8jrc6hk0kp yb0hDmHUNUT1n6BVyQp0eb3zNn3h0Ls= X-Google-Smtp-Source: ABdhPJxR8auCT8jyXkci1/EY2E1+pNs+T94+vWRBE40nh4a8AqT7oPao8kjnsS6mVCHzVZX/o+nSNg== X-Received: by 2002:a5d:59a7:0:b0:20c:58f8:f50e with SMTP id p7-20020a5d59a7000000b0020c58f8f50emr8274084wrr.189.1651522890283; Mon, 02 May 2022 13:21:30 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z3-20020adfbbc3000000b0020c5253d8d1sm7696796wrg.29.2022.05.02.13.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 13:21:29 -0700 (PDT) From: zimoun To: marioBB Cc: "help-guix@gnu.org" Subject: Re: compile In-Reply-To: References: <8oqANf9M0C9CAIh2WBUj4-BrnaTLJ1EGNTxKqr4Iy4Wi3nPs4Xe8BNKerz7tfH27wPWF-9hZ8KBY5CRwh0nFj-RfLDeBhKxLRhum0n0pEfQ=@protonmail.com> <87czgw9t7x.fsf@gmail.com> Date: Mon, 02 May 2022 22:21:22 +0200 Message-ID: <86tua7y9bx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42e.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: , 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=1651522915; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ywI31r8RBr0SKnSNCGLl9pZmgGHb7azoEsevBs4dI4o=; b=QgeS2B2kDMnAtLdYrtJTYkDokLfPHHXW/W5pclx1rRSpieWRA3mV0gAdVu3rCRkvEKlcmS 13Sd/Q9Uu0JxU59Sqmrt8D1vY72UOQGPdbuyOzgUTSfUInqvpISd+NuDbqXRgtspv+FBcY Z51qLjiwNz3oM2oPP1Mf20E4kdkywCmpu711ElP77b3j4YV65QBuHywSwqHAClsNO9g8tu CfdISqnA5nT8GgxZDd8J3Wyu8VDrHBPCxCMqDeOGM1cqTEePcT16d/jdwSEfSXBu9iQIIn 2Qne/LT0SubbPCVrwvcrRF7YtKtM3TP5LykjY5d0g7Igvj9fdbBYX9CsMtEc5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651522915; a=rsa-sha256; cv=none; b=J7ZyjdWegnJlK+BpaBEGCpJXVTxliWxW6vSrHrqMshxHOIs7scrvMH2Afp5Q7pPc3bwgHG wKcRKZzfcsbPjj8JBInsWnq14zv0JbDBGZFkn6wBw+/F/pSuVSSmXhjPmKTf/1SqgyImvG 0QPVsAJ6VRqOoTmeuS/OJKEwMWk24s04GMBLh0qxSMehtKQAKFHF704LDwa5CMEAKigsam oJvNM1xMTtIkt1P5EoRRoBm9DOw92OHlhr3nIW/XImAi11RLP+kAfw2Kn5EX8xX0iPzK90 vNvT/0CkCXGSnDfYE16jCn4C3zUKyCUIxlupV140oyFqoyxRz1zH90UwlAw2Ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ePN8ACaF; dmarc=pass (policy=none) header.from=gmail.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: -5.98 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ePN8ACaF; dmarc=pass (policy=none) header.from=gmail.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: 2996E1282D X-Spam-Score: -5.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: Fe4FrWgoLGN8 Hi Mario, On Mon, 02 May 2022 at 19:04, marioBB wrote: > I used manifest file with: > > (specifications->manifest > '("ghc@8.10.7" > "ghc-zstd")) > > $ guix shell [...] > Loaded package environment from /home/ms/.ghc/x86_64-linux-8.10.7/environ= ments/default > : cannot satisfy -package zstd > (use -v for more information) Well, I do not know what is wrong with your Guix config but something is wrong. I guess you installed Haskell packages via another method (stack?) and they are in ~/.ghc; and I guess ztsd is not part of the ones you installed via this very method. ;-) If you run =E2=80=99guix shell --pure=E2=80=99 or =E2=80=99cp Source.hs /tm= p/; cp guix.scm /tmp/; cd /tmp; guix shell -C -- ghc Source=E2=80=99, then you will see. For instance, consider the snippet: --8<---------------cut here---------------start------------->8--- $ cat Source.hs import Codec.Compression.Zstd main =3D pure () $ guix shell ghc ghc-zstd -C -- ghc Source [1 of 1] Compiling Main ( Source.hs, Source.o ) : error: Warning: Couldn't figure out C compiler information! Make sure you're using GNU gcc, or clang ghc: could not execute: gcc --8<---------------cut here---------------end--------------->8--- Well, contrary to =E2=80=99haskell-platform=E2=80=99 which provides a ready= -to-use computational environment, it is not the case with Guix. Something to improve. :-) As you see, it also requires =E2=80=99gcc-toolchain=E2=80=99. However, I g= et, --8<---------------cut here---------------start------------->8--- $ guix shell ghc ghc-zstd -C gcc-toolchain -- ghc Source [1 of 1] Compiling Main ( Source.hs, Source.o ) Linking Source ... ld: cannot find -lHSzstd-0.1.3.0-4d3LhFnhVBND893zIj2UnM collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) --8<---------------cut here---------------end--------------->8--- which is unexpected. I do not know what could be wrong. Sorry, it does not help. :-( Cheers, simon