commercialhaskell / commercialhaskell/stack

stack setup fails with: configure: error: cannot determine current directory

Open
#2,717 18 comments 1 reaction 0 assignees View on GitHub
new-distro-support
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

Running on `Alpine Linux 3.4.3` with `linux-x86_64-static`, `stack/ghc` fails as below (might be missing some packages??):

```
/tmp/mypackage # /usr/local/bin/stack setup
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.
Running /root/.stack/programs/x86_64-linux/ghc-8.0.1.temp/ghc-8.0.1/configure --prefix=/root/.stack/programs/x86_64-linux/ghc-8.0.1/ in directory /root/.stack/programs/x86_64-linux/ghc-8.0.1.temp/ghc-8.0.1/ exited with ExitFailure 1

checking for path to top of build tree...
/root/.stack/programs/x86_64-linux/ghc-8.0.1.temp/ghc-8.0.1/configure: ./configure.lineno: line 2234: utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: not found
configure: error: cannot determine current directory

Error encountered while configuring GHC with
/root/.stack/programs/x86_64-linux/ghc-8.0.1.temp/ghc-8.0.1/configure --prefix=/root/.stack/programs/x86_64-linux/ghc-8.0.1/
run in /root/.stack/programs/x86_64-linux/ghc-8.0.1.temp/ghc-8.0.1/

The following directories may now contain files, but won't be used by stack:
- /root/.stack/programs/x86_64-linux/ghc-8.0.1.temp/
- /root/.stack/programs/x86_64-linux/ghc-8.0.1/

Configuring GHC .../tmp/mypackage
```
### Stack version

```
$ stack --version
Version 1.2.0, Git revision 241cd07d576d9c0c0e712e83d947e3dd64541c42 (4054 commits) x86_64 hpack-0.14.0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.