From: zimoun <zimon.toutoune@gmail.com>
To: marioBB <marJobb@protonmail.com>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: compile
Date: Mon, 02 May 2022 22:21:22 +0200 [thread overview]
Message-ID: <86tua7y9bx.fsf@gmail.com> (raw)
In-Reply-To: <E5PKpQ9apL0jHicyQtf27W7ZY6Lcg_gvJZ4KO-MF6rwYotcovly8vG_UPdKpl-ssrH6fH-HH4iMumJDuKeWzep-8QkvP81n8Dg2rMaodClc=@protonmail.com>
Hi Mario,
On Mon, 02 May 2022 at 19:04, marioBB <marJobb@protonmail.com> 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/environments/default
> <command line>: 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 ’guix shell --pure’ or ’cp Source.hs /tmp/; cp guix.scm
/tmp/; cd /tmp; guix shell -C -- ghc Source’, then you will see.
For instance, consider the snippet:
--8<---------------cut here---------------start------------->8---
$ cat Source.hs
import Codec.Compression.Zstd
main = pure ()
$ guix shell ghc ghc-zstd -C -- ghc Source
[1 of 1] Compiling Main ( Source.hs, Source.o )
<no location info>: 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 ’haskell-platform’ which provides a ready-to-use
computational environment, it is not the case with Guix. Something to
improve. :-)
As you see, it also requires ’gcc-toolchain’. However, I get,
--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
prev parent reply other threads:[~2022-05-02 20:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-02 18:46 compile marioBB via
2022-05-02 9:30 ` compile zimoun
2022-05-02 19:04 ` compile marioBB
2022-05-02 20:21 ` zimoun [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86tua7y9bx.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=help-guix@gnu.org \
--cc=marJobb@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).