commercialhaskell / commercialhaskell/stack

Void Linux: `stack build` crashes - GHC's choice of `ld`

Open
#5,633 5 comments 0 reactions 0 assignees View on GitHub
component: setup component: Void Linux resolution: upstream issue
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

### General summary/comments (optional)
I'm using the musl version of Void Linux, so the error might have something to do with musl. Also, when running the command that caused the error manually (`/home/jimothy/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple...`) I get a segfault.

### Steps to reproduce

1. Run `stack new helloworld new-template`
2. Run `stack build --verbose`

### Expected

The project building successfully

### Actual

Error: https://gist.github.com/Osrepnay/ecd91eb57788a69f33826adf3f4dae6a

### Stack version

```
$ stack --version
Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f x86_64 hpack-0.34.4
```

### Method of installation
Both installing from void's repos with `# xbps-install stack` and installing with the shell script do this, with the dependencies gcc, make, libffi, libffi-devel, zlib, zlib-devel, gmp, gmp-devel, ncurses-libtinfo-libs, ncurses-libtinfo-devel installed (although I'm not sure which -devel packages are necessary).
I also needed to use the fix from #3847 (specifically `sudo ln /lib64/ld-musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2`) to make stack download ghc and cabal.

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.