unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32131: ghc fails to compile packages when installed into profile
@ 2018-07-12  5:12 Anonymous
  2018-07-12 15:58 ` Ludovic Courtès
  2023-09-22 16:13 ` Simon Tournier
  0 siblings, 2 replies; 4+ messages in thread
From: Anonymous @ 2018-07-12  5:12 UTC (permalink / raw)
  To: 32131

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.

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

end of thread, other threads:[~2023-09-22 16:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12  5:12 bug#32131: ghc fails to compile packages when installed into profile Anonymous
2018-07-12 15:58 ` Ludovic Courtès
2018-07-12 16:20   ` Hogenson, Raymond E (334H-Affiliate)
2023-09-22 16:13 ` Simon Tournier

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