From: Lars-Dominik Braun <lars@6xq.net>
To: christoph.schumacher@mathematik.tu-dortmund.de
Cc: 55178@debbugs.gnu.org
Subject: bug#55178: ghc cannot find libraries of ghc-comonad
Date: Sat, 21 Jan 2023 13:49:29 +0100 [thread overview]
Message-ID: <Y8vfWWxaFlPPJu6s@noor.fritz.box> (raw)
In-Reply-To: <27d96a4a345b1d66cb4108dbfa27e79e@mathematik.tu-dortmund.de>
Hi,
> > guix shell --pure ghc ghc-comonad gcc-toolchain -- ghc LinkMe.hs
> [1 of 1] Compiling Main ( LinkMe.hs, LinkMe.o )
> Linking LinkMe ...
> ld: cannot find -lHScomonad-5.0.8-KDPzf2kORSz9Qeif8nQH6d
> ld: cannot find -lHStransformers-compat-0.6.6-9ADqfwGTALm8Nq2ZeUpa4p
> ld: cannot find -lHSindexed-traversable-0.1.1-Dfr00dUbJtB3rFEVdhtcE9
> ld: cannot find -lHSdistributive-0.6.2.1-L7rr3EplzD03NITUnJxmCO
> ld: cannot find -lHStagged-0.8.6.1-EiQY3za6Q5HE9cdvqupke2
> ld: cannot find -lHSbase-orphans-0.8.5-Iz1X6ZIULaHC76vf03czEu
> collect2: error: ld returned 1 exit status
> `gcc' failed in phase `Linker'. (Exit code: 1)
the problem here is that in Guix we link Haskell executables dynamically
and sometimes move static libraries to a separate output without updating
the config file (because otherwise it would create a reference, which
we’re trying to avoid to save space).
It works fine for me using
guix shell --pure ghc ghc-comonad gcc-toolchain@10 -- ghc --make -dynamic -v LinkMe.hs
Cheers,
Lars
next prev parent reply other threads:[~2023-01-21 12:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-29 1:39 bug#55178: ghc cannot find libraries of ghc-comonad Christoph Schumacher
2023-01-21 12:49 ` Lars-Dominik Braun [this message]
2023-09-22 16:45 ` Simon Tournier
2023-10-03 21:29 ` cschumac
2023-10-04 17:59 ` Simon Tournier
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=Y8vfWWxaFlPPJu6s@noor.fritz.box \
--to=lars@6xq.net \
--cc=55178@debbugs.gnu.org \
--cc=christoph.schumacher@mathematik.tu-dortmund.de \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).