all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Antero Mejr via Bug reports for GNU Guix <bug-guix@gnu.org>
To: Mekeor Melire <mekeor@posteo.de>
Cc: 63728@debbugs.gnu.org
Subject: bug#63728: GHC cannot find lrt
Date: Fri, 26 May 2023 15:44:26 +0000	[thread overview]
Message-ID: <87edn3w10l.fsf@mailbox.org> (raw)
In-Reply-To: <87zg5rpi0b.fsf@posteo.de> (Mekeor Melire's message of "Fri, 26 May 2023 09:17:55 +0000")

Mekeor Melire <mekeor@posteo.de> writes:

> 2023-05-25 22:25 bug-guix@gnu.org:
>
>> Attempting to build a trivial Haskell program using ghc fails, as the linker
>> cannot find the rt library:
>
> Does installing gcc-toolchain:static help as a work-around?

I merged this bug with #63258.

The gcc-toolchain:static workaround fixes the rt problem, but now the
binaries aren't linked to libgmp and libffi, even though gmp and libffi
packages are installed in the profile:

--8<---------------cut here---------------start------------->8---
~$ ghc -O2 test.hs
~$ ldd ./test
  linux-vdso.so.1 (0x00007ffe0956f000)
  libgmp.so.10 => not found
  libc.so.6 => /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libc.so.6 (0x00007fbe27e3f000)
  libm.so.6 => /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libm.so.6 (0x00007fbe27d62000)
  libffi.so.8 => not found
  libgcc_s.so.1 => /gnu/store/qcg59v4yg239jj1k0xvqqqkqv6l8q6ll-gcc-12.2.0-lib/lib/libgcc_s.so.1 (0x00007fbe27d41000)
  /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/ld-linux-x86-64.so.2 => /gnu/store/ip9mj1pwymxi1yq32zbhwp3n3bycy6yi-glibc-2.35/lib/ld-linux-x86-64.so.2 (0x00007fbe2803d000)
--8<---------------cut here---------------end--------------->8---

Maybe there should be a ghc-toolchain package that has libgmp and
libffi as inputs, and makes sure GHC links them correctly?




  reply	other threads:[~2023-05-26 15:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-25 22:25 bug#63728: GHC cannot find lrt Antero Mejr via Bug reports for GNU Guix
2023-05-26  9:17 ` Mekeor Melire
2023-05-26 15:44   ` Antero Mejr via Bug reports for GNU Guix [this message]
2023-05-29 20:04     ` Mekeor Melire
2023-05-31 18:40       ` Josselin Poiret via Bug reports for GNU Guix
2023-05-26  9:21 ` Mekeor Melire
2023-05-26 15:16 ` bug#63728: (no subject) Antero Mejr via Bug reports for GNU Guix

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edn3w10l.fsf@mailbox.org \
    --to=bug-guix@gnu.org \
    --cc=63728@debbugs.gnu.org \
    --cc=antero@mailbox.org \
    --cc=mekeor@posteo.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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.