-
Notifications
You must be signed in to change notification settings - Fork 848
Open
Description
General summary/comments (optional)
Problem with stack build
, because of gcc
Steps to reproduce
$ stack build --copy-compiler-tool hindent
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.
cat: -: No such file or directory
cat: -: No such file or directory
cat: -: No such file or directory
cat: -: No such file or directory
cat: -: No such file or directory
cat: -: No such file or directory
cat: -: No such file or directory
cat: -: No such file or directory
cat: -: No such file or directory
cat: -: No such file or directory
cat: -: No such file or directory
configure: error: in `/home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5.temp/ghc-8.6.5':
configure: error: C compiler cannot create executables
See `config.log' for more details
Received ExitFailure 77 when running
Raw command: /home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5.temp/ghc-8.6.5/configure --prefix=/home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5/
Run from: /home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5.temp/ghc-8.6.5/
Error: Error encountered while configuring GHC with
/home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5.temp/ghc-8.6.5/configure --prefix=/home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5/
run in /home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5.temp/ghc-8.6.5/
The following directories may now contain files, but won't be used by stack:
- /home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5.temp/
- /home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5/
For more information consider rerunning with --verbose flag
Configuring GHC ...
Expected
Build hindent using GHC 8.6.5 configured in stack.yaml, and copy to local path (OS and GHC version dependent) managed by stack.
Actual
I run into some problems with gcc
(I am not a gcc user, so cannot diagnose this myself)
Stack version
$ stack --version
Version 2.1.3, Git revision 636e3a759d51127df2b62f90772def126cdf6d1f (7735 commits) x86_64 hpack-0.31.2
$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Method of installation
curl -sSL https://get.haskellstack.org/ | sh
OS
Windows 10
Build 19041.113
Using WSL 2 distro (Ubuntu 19.04 LTS)