commercialhaskell / commercialhaskell/stack

`--install-ghc` fails on FreeBSD

Open
#3,267 8 comments 0 reactions 0 assignees View on GitHub
newcomer friendly
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

Running the "official" stack installed from the binary package manager on FreeBSD 10.3-RELEASE, `stack 1.4.0 x86_64`

If GHC isn't separately already installed via the FreeBSD package manager, the usage of `--install-ghc` results in the following:

[I] mqudsi@php ~/conffmt> stack build --install-ghc
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-7.10.3.
Running /usr/home/mqudsi/.stack/programs/x86_64-freebsd/ghc-7.10.3.temp/ghc-7.10.3/configure --prefix=/usr/home/mqudsi/.stack/programs/x86_64-freebsd/ghc-7.10.3/ in directory /usr/home/mqudsi/.stack/programs/x86_64-freebsd/ghc-7.10.3.temp/ghc-7.10.3/ exited with ExitFailure 1

checking for path to top of build tree...
Shared object "libutil.so.8" not found, required by "ghc-pwd"
configure: error: cannot determine current directory

Error: Error encountered while configuring GHC with
/usr/home/mqudsi/.stack/programs/x86_64-freebsd/ghc-7.10.3.temp/ghc-7.10.3/configure --prefix=/usr/home/mqudsi/.stack/programs/x86_64-freebsd/ghc-7.10.3/
run in /usr/home/mqudsi/.stack/programs/x86_64-freebsd/ghc-7.10.3.temp/ghc-7.10.3/

The following directories may now contain files, but won't be used by stack:
- /usr/home/mqudsi/.stack/programs/x86_64-freebsd/ghc-7.10.3.temp/
- /usr/home/mqudsi/.stack/programs/x86_64-freebsd/ghc-7.10.3/

Configuring GHC ...⏎

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.