unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Issues with Haskell's ghc
@ 2019-07-01 17:18 Vasilii Kolobkov
  2019-07-01 21:43 ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: Vasilii Kolobkov @ 2019-07-01 17:18 UTC (permalink / raw)
  To: help-guix

Hello guix!

I've run aground with Haskell's ghc (interpreter works fine) - running
ghc on a basic hello world program fails.  I identified couple issues:

 - Include directory for linux headers wasn't passed to gcc
   (`C_INCLUDE_PATH=/gnu/... ghc` fixed it)
 - Lib C's crti.o and crt1.o where not found during linking
   (fixed with `LIBRARY_PATH=/gnu/... ghc`)
 - libgmp and libffi aren't passed to linker's -rpath

If anybody uses Haskell here, i'd appreciate any insights on what might
be the root cause here.

Thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Issues with Haskell's ghc
@ 2019-08-03 10:15 Prateem Mandal
  2019-08-04 12:35 ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: Prateem Mandal @ 2019-08-03 10:15 UTC (permalink / raw)
  To: help-guix

Hi,

I could not figure out how to respond to an existing thread so I reused the
subject line and below is the copy of email body sent on July 1, 2019 by
Vasilii Kolobkov

> I've run aground with Haskell's ghc (interpreter works fine) - running
> ghc on a basic hello world program fails.  I identified couple issues:
>
>  - Include directory for linux headers wasn't passed to gcc
>    (`C_INCLUDE_PATH=/gnu/... ghc` fixed it)
>  - Lib C's crti.o and crt1.o where not found during linking
>    (fixed with `LIBRARY_PATH=/gnu/... ghc`)
>  - libgmp and libffi aren't passed to linker's -rpath
>
> If anybody uses Haskell here, i'd appreciate any insights on what might
> be the root cause here.

I am facing the same issue. I could resolve the second issue including
glibc in the ad-hoc list while creating the environment (and I never
hit the first issue). However I am now stuck with the third issue. In
the original thread there was no resolution to this issue. Any idea
how this can be fixed?

Thanks
Prateem

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-08-04 18:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-01 17:18 Issues with Haskell's ghc Vasilii Kolobkov
2019-07-01 21:43 ` Ricardo Wurmus
2019-07-02 12:50   ` Vasilii Kolobkov
  -- strict thread matches above, loose matches on Subject: below --
2019-08-03 10:15 Prateem Mandal
2019-08-04 12:35 ` Ricardo Wurmus
2019-08-04 18:41   ` Prateem Mandal

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).