commercialhaskell / commercialhaskell/stack

stack setup w/ docker enabled fails on macOS Sierra

Open
#3,105 10 comments 1 reaction 0 assignees View on GitHub
component: docker component: macOS
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

```
Installing library in
/Users/callen/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.0.2/lib/ghc-8.0.2/integer-gmp-1.0.0.1
"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries/base dist-install "strip" '' '/Users/callen/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.0.2' '/Users/callen/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.0.2/lib/ghc-8.0.2' '/Users/callen/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.0.2/share/doc/ghc-8.0.2/html/libraries' 'v p dyn'
Installing library in
/Users/callen/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.0.2/lib/ghc-8.0.2/base-4.9.1.0
ghc.mk:981: recipe for target 'install_packages' failed
Makefile:51: recipe for target 'install' failed

strip:/Users/callen/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.0.2/lib/ghc-8.0.2/base-4.9.1.0/st9yHhmg/Typeable__6.o: Too many open files in system
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2

Error: Error encountered while installing GHC with
make install
run in /Users/callen/.stack/programs/x86_64-linux-dkda49f7ca9b244180d3cfb1987cbc9743/ghc-8.0.2.temp/ghc-8.0.2/

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

Installing GHC ...%
```

I bumped the open file limits with sysctl and a plist in launchctl. Any ideas?

Contributor guide

Open the contributing guide

Research direction

Reproduce `stack setup` with Docker enabled on macOS Sierra and inspect the GHC 8.0.2 `make install` output, especially the `ghc.mk` `install_packages` target and `Makefile` `install` target. Check whether the open-file limit is inherited by the setup process; done means setup completes without the “Too many open files” failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, haskell, macos
Domain
build-system, devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.