GNU bug report logs - #32131
ghc fails to compile packages when installed into profile

Previous Next

Package: guix;

Reported by: Anonymous <mcrfan96 <at> cock.li>

Date: Thu, 12 Jul 2018 05:28:02 UTC

Severity: normal

Done: Simon Tournier <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Anonymous <mcrfan96 <at> cock.li>
Subject: bug#32131: closed (Re: bug#32131: ghc fails to compile packages
 when installed into profile)
Date: Fri, 22 Sep 2023 16:46:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#32131: ghc fails to compile packages when installed into profile

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 32131 <at> debbugs.gnu.org.

-- 
32131: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32131
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Anonymous <mcrfan96 <at> cock.li>
Cc: 32131-done <at> debbugs.gnu.org
Subject: Re: bug#32131: ghc fails to compile packages when installed into
 profile
Date: Fri, 22 Sep 2023 18:13:33 +0200
Hi,

This old bug #32131,

    https://issues.guix.gnu.org/issue/32131

is not a bug.  It is because gcc-toolchain is missing.

On Wed, 11 Jul 2018 at 22:12, Anonymous <mcrfan96 <at> cock.li> wrote:
> This bug can be reproduced by doing
>
>     guix package -i ghc
>     echo 'main=return()' > test.hs
>     ghc test.hs
>
> The expected output is that the program will be compiled, but instead we get
> the error message

--8<---------------cut here---------------start------------->8---
$ echo 'main=return()' > test.hs

$ guix shell -C ghc gcc-toolchain -- ghc test.hs
[1 of 1] Compiling Main             ( test.hs, test.o )
Linking test ...

$ ./test
--8<---------------cut here---------------end--------------->8---

Closing.  Let me know if I am missing something.

Cheers,
simon

[Message part 3 (message/rfc822, inline)]
From: Anonymous <mcrfan96 <at> cock.li>
To: bug-guix <at> gnu.org
Subject: ghc fails to compile packages when installed into profile
Date: Wed, 11 Jul 2018 22:12:54 -0700
This bug can be reproduced by doing

    guix package -i ghc
    echo 'main=return()' > test.hs
    ghc test.hs

The expected output is that the program will be compiled, but instead we 
get the error message

    gcc: error trying to exec 'as': execvp: No such file or directory
    `gcc' failed in phase `C Compiler'. (Exit code: 1)

The error is caused, of course, by as not being found in the path. 
Interestingly, though, the error occurs in gcc, which fails to find as. 
The general path for compiling things with gcc is to use gcc-toolchain, 
which brings as and others into the profile, but as ghc calls gcc 
directly (with no gcc-toolchain), ghc fails to actually compile anything.




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

Previous Next


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