unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Anonymous <mcrfan96@cock.li>
To: 32131@debbugs.gnu.org
Subject: bug#32131: ghc fails to compile packages when installed into profile
Date: Wed, 11 Jul 2018 22:12:54 -0700	[thread overview]
Message-ID: <48f7e837-be75-66b2-8535-636f40c62327@cock.li> (raw)

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.

             reply	other threads:[~2018-07-12  5:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-12  5:12 Anonymous [this message]
2018-07-12 15:58 ` bug#32131: ghc fails to compile packages when installed into profile Ludovic Courtès
2018-07-12 16:20   ` Hogenson, Raymond E (334H-Affiliate)
2023-09-22 16:13 ` Simon Tournier

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=48f7e837-be75-66b2-8535-636f40c62327@cock.li \
    --to=mcrfan96@cock.li \
    --cc=32131@debbugs.gnu.org \
    /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 public inbox

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

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