GNU bug report logs - #65460
ghc/ghci are broken

Previous Next

Package: guix;

Reported by: Jonas <jonas <at> moesys.no>

Date: Tue, 22 Aug 2023 22:59:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 65460 <at> debbugs.gnu.org (full text, mbox):

From: Csepp <raingloom <at> riseup.net>
To: Jonas <jonas <at> moesys.no>
Cc: 65460 <at> debbugs.gnu.org, "\(" <paren <at> disroot.org>, bug-guix <at> gnu.org
Subject: Re: bug#65460: ghc/ghci are broken
Date: Wed, 23 Aug 2023 16:42:43 +0200
Jonas via Bug reports for GNU Guix <bug-guix <at> gnu.org> writes:

> Thanks! Adding gcc-toolchain to the profile fixed it, but shouldn't this 
> be automatically brought in by `guix install ghc`? This does still feels 
> like a bug to me, shouldn't gcc-toolchain be a part of ghcs native-inputs?
>
> sanoj <at> deimos ~/builds/hs-hello$ guix shell --container ghc -- ghc hello.hs
> Linking hello ...
>
> <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
>
> Den 8/23/23 07:14, skrev (:
>> Jonas via Bug reports for GNU Guix <bug-guix <at> gnu.org> writes:
>>> And compiling a hello-world program with ghc gives me:
>>>
>>> [1 of 1] Compiling Main             ( hello.hs, hello.o )
>>>
>>> <no location info>: error:
>>>       Warning: Couldn't figure out C compiler information!
>>>                Make sure you're using GNU gcc, or clang
>> At the risk of stating an obvious thing that you've probably already
>> tried; is `gcc-toolchain` available in the environment?
>>
>> -- (

I assume GHC can work with other toolchains, like Clang, so it's better
to be explicit about what you want to use.




This bug report was last modified 1 year and 258 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.