all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug? Haskell GHC wont' work since ghc@8.6?
@ 2021-01-11  5:47 yasu
  2021-01-11  5:49 ` John Soo
  0 siblings, 1 reply; 12+ messages in thread
From: yasu @ 2021-01-11  5:47 UTC (permalink / raw)
  To: Help Guix, Bug Guix

This one ought to be very simple to solve (or at least confirm).   Does
anyone use Haskell daily?

I am a very casual user of Haskell (GHC) and when I tried to compile
something just now, I noticed that it can't even compile the simplest
possible program..., unless I downgrade to ghc@8.4 or lower. Newer
versions, including ghc@8.6.5, didn't work, throwing the error message
below instead.

~/co/haskell-tiny-intro/exercise (master *)$ cat a.hs
main = putStrLn "a"

~/co/haskell-tiny-intro/exercise (master *)$ ghc a.hs
Linking a ...
.gcc-wrapped: error: unrecognized command line option '-no-pie'
`gcc' failed in phase `C Compiler'. (Exit code: 1)

Cheers,
Yasu



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

* Re: Bug? Haskell GHC wont' work since ghc@8.6?
  2021-01-11  5:47 Bug? Haskell GHC wont' work since ghc@8.6? yasu
@ 2021-01-11  5:49 ` John Soo
  2021-01-11  6:04   ` yasu
  2021-03-26  9:14   ` bug#45776: Bug? Haskell GHC wont' work since ghc@8.6? zimoun
  0 siblings, 2 replies; 12+ messages in thread
From: John Soo @ 2021-01-11  5:49 UTC (permalink / raw)
  To: yasu; +Cc: Bug Guix, Help Guix

     Hi yasu, 

 
Compiling with ghc requires a c toolchain (like gcc-toolchain) installed to work. Can you try again after installing gcc-toolchain?    Ghc has not been perfect for me recently but I use it quite a lot.
 

 
Hope that helps,
 

 
John
     

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

* Re: Bug? Haskell GHC wont' work since ghc@8.6?
  2021-01-11  5:49 ` John Soo
@ 2021-01-11  6:04   ` yasu
  2021-01-28 23:07     ` bug#45777: duplicate entry John Soo
  2021-03-26  9:14   ` bug#45776: Bug? Haskell GHC wont' work since ghc@8.6? zimoun
  1 sibling, 1 reply; 12+ messages in thread
From: yasu @ 2021-01-11  6:04 UTC (permalink / raw)
  To: John Soo; +Cc: Bug Guix, Help Guix

[-- Attachment #1: Type: text/plain, Size: 999 bytes --]

Hi John,
Thank you, after installing gcc-toolchain, it worked!
Then this is indeed a bug that should be very simple to fix?   Just
require gcc-toolchain (or some of its required features) as a GHC's
dependency?
I am also curious, what kind of testing (if any?) does Guix perform for
packages??  Or is GHC already marked as broken?
(Apology for repeated question marks :-))
~/co/haskell-tiny-intro/exercise (master *)$ guix install gcc-
toolchain...~/co/haskell-tiny-intro/exercise (master *)$ ghc a.hs[1 of
1] Compiling Main             ( a.hs, a.o )Linking a ...~/co/haskell-
tiny-intro/exercise (master *)$ ghc --versionThe Glorious Glasgow
Haskell Compilation System, version 8.8.3
Cheers,
Yasu
On Sun, 2021-01-10 at 21:49 -0800, John Soo wrote:

> Hi yasu,
> Compiling with ghc requires a c toolchain (like gcc-toolchain)
> installed to work. Can you try again after installing gcc-toolchain?
>  Ghc has not been perfect for me recently but I use it quite a lot.
> 
> Hope that helps,
> 
> John

[-- Attachment #2: face-smile.png --]
[-- Type: image/png, Size: 871 bytes --]

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

* Bug? Haskell GHC wont' work since ghc@8.6?
@ 2021-01-11  6:18 John Soo
  2021-01-11 14:54 ` zimoun
  0 siblings, 1 reply; 12+ messages in thread
From: John Soo @ 2021-01-11  6:18 UTC (permalink / raw)
  To: yasu; +Cc: Bug Guix, Help Guix

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

      
  

  
  
  
Hi yasu,  

  
This question comes up on the mailing list every so often, but I don’t think it is a bug. I want to be able to choose the c toolchain ghc uses myself. I would rather introduce some Haskell specific documentation.
  

  
We discussed during the guix day that we would love to have some language specific setup documentation. I had issues like this in mind.
  

  
- John   
  
  
  
  

  
     

[-- Attachment #2: face-smile.png --]
[-- Type: image/PNG, Size: 871 bytes --]

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

* Re: Bug? Haskell GHC wont' work since ghc@8.6?
  2021-01-11  6:18 John Soo
@ 2021-01-11 14:54 ` zimoun
  2021-01-11 15:14   ` John Soo
  0 siblings, 1 reply; 12+ messages in thread
From: zimoun @ 2021-01-11 14:54 UTC (permalink / raw)
  To: John Soo, yasu; +Cc: Help Guix, Bug Guix

Hi John,

On Sun, 10 Jan 2021 at 22:18, John Soo <jsoo1@asu.edu> wrote:

> This question comes up on the mailing list every so often, but I don’t
> think it is a bug. I want to be able to choose the c toolchain ghc
> uses myself. I would rather introduce some Haskell specific
> documentation.

Choosing the C toolchain and propagating one are not really related.  I
mean, one C toolchain could be propagated by default, so then GHC works
out-of-the-box.  And the build transformation ’--with-c-toolchain’
should provide the flexibility to use any other C toolchain variant you
want.  Is it not working as expected?


All the best,
simon


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

* Re: Bug? Haskell GHC wont' work since ghc@8.6?
  2021-01-11 14:54 ` zimoun
@ 2021-01-11 15:14   ` John Soo
  2021-01-11 18:42     ` Vincent Legoll
  0 siblings, 1 reply; 12+ messages in thread
From: John Soo @ 2021-01-11 15:14 UTC (permalink / raw)
  To: zimoun; +Cc: Help Guix, Bug Guix

Hi zimoun,

zimoun <zimon.toutoune@gmail.com> writes:

> Choosing the C toolchain and propagating one are not really related.

Good point.

> I mean, one C toolchain could be propagated by default, so then GHC works
> out-of-the-box.  And the build transformation ’--with-c-toolchain’
> should provide the flexibility to use any other C toolchain variant you
> want.  Is it not working as expected?

As is, ghc does not work after guix install ghc. gcc-toolchain must be
installed alongside it to work.  Maybe the reason for this was to not
propagate particular versions of the gcc-toolchain and possibly conflict
with others.

Thanks!

John


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

* Re: Bug? Haskell GHC wont' work since ghc@8.6?
  2021-01-11 15:14   ` John Soo
@ 2021-01-11 18:42     ` Vincent Legoll
  2021-01-11 20:47       ` John Soo
  0 siblings, 1 reply; 12+ messages in thread
From: Vincent Legoll @ 2021-01-11 18:42 UTC (permalink / raw)
  To: John Soo; +Cc: Bug Guix, Help Guix

Hello,

should the following issues be merged together ?

45776
45777
45778

-- 
Vincent Legoll


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

* Re: Bug? Haskell GHC wont' work since ghc@8.6?
  2021-01-11 18:42     ` Vincent Legoll
@ 2021-01-11 20:47       ` John Soo
  0 siblings, 0 replies; 12+ messages in thread
From: John Soo @ 2021-01-11 20:47 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: Help Guix

     
 

 Some should be closed, and bug-guix should be removed from the thread.
     

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

* bug#45777: duplicate entry
  2021-01-11  6:04   ` yasu
@ 2021-01-28 23:07     ` John Soo
  0 siblings, 0 replies; 12+ messages in thread
From: John Soo @ 2021-01-28 23:07 UTC (permalink / raw)
  To: 45777-done

This was a duplicate entry




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

* Re: bug#45776: Bug? Haskell GHC wont' work since ghc@8.6?
  2021-01-11  5:49 ` John Soo
  2021-01-11  6:04   ` yasu
@ 2021-03-26  9:14   ` zimoun
  2021-03-26 11:32     ` John Soo
  1 sibling, 1 reply; 12+ messages in thread
From: zimoun @ 2021-03-26  9:14 UTC (permalink / raw)
  To: John Soo; +Cc: 45776, help-guix

Hi,

On Sun, 10 Jan 2021 at 21:49, John Soo <jsoo1@asu.edu> wrote:

> Compiling with ghc requires a c toolchain (like gcc-toolchain)
> installed to work. Can you try again after installing gcc-toolchain?
> Ghc has not been perfect for me recently but I use it quite a lot.

I think this bug can be closed.  WDYT?


All the best,
simon



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

* Re: bug#45776: Bug? Haskell GHC wont' work since ghc@8.6?
  2021-03-26  9:14   ` bug#45776: Bug? Haskell GHC wont' work since ghc@8.6? zimoun
@ 2021-03-26 11:32     ` John Soo
  2021-03-26 11:55       ` Maxime Devos
  0 siblings, 1 reply; 12+ messages in thread
From: John Soo @ 2021-03-26 11:32 UTC (permalink / raw)
  To: zimoun; +Cc: 45776, help-guix

Hello zimoun,

I believe it can be closed, thanks!

- John

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

* bug#45776: Bug? Haskell GHC wont' work since ghc@8.6?
  2021-03-26 11:32     ` John Soo
@ 2021-03-26 11:55       ` Maxime Devos
  0 siblings, 0 replies; 12+ messages in thread
From: Maxime Devos @ 2021-03-26 11:55 UTC (permalink / raw)
  To: John Soo, zimoun; +Cc: yasu, 45776-done, help-guix

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

On Fri, 2021-03-26 at 04:32 -0700, John Soo wrote:
> Hello zimoun,
> 
> I believe it can be closed, thanks!

Done.  You can close bugs yourself by sending
an e-mail to ${BUG-NUMBER}-done@debbugs.gnu.org.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

end of thread, other threads:[~2021-03-26 11:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-11  5:47 Bug? Haskell GHC wont' work since ghc@8.6? yasu
2021-01-11  5:49 ` John Soo
2021-01-11  6:04   ` yasu
2021-01-28 23:07     ` bug#45777: duplicate entry John Soo
2021-03-26  9:14   ` bug#45776: Bug? Haskell GHC wont' work since ghc@8.6? zimoun
2021-03-26 11:32     ` John Soo
2021-03-26 11:55       ` Maxime Devos
  -- strict thread matches above, loose matches on Subject: below --
2021-01-11  6:18 John Soo
2021-01-11 14:54 ` zimoun
2021-01-11 15:14   ` John Soo
2021-01-11 18:42     ` Vincent Legoll
2021-01-11 20:47       ` John Soo

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.