commercialhaskell / commercialhaskell/stack

`stack build` segfaults on Void Linux with musl 1.1.24

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

Description

I am running `stack build` on a barebones hello world project. The build fails but the output says only "`While executing the build plan, Stack encountered the error:`" with no error description below, and further down it says "`scroll up to its section to see the error`" with no error description above.

stack.yaml:
~~~yaml
resolver: lts-21.19

packages:
- .
~~~
package.yaml:
~~~yaml
name: myproject

executable:
main: Main.hs
~~~
Main.hs:
~~~haskell
main = putStrLn "hello"
~~~
stack output when you run build:
~~~text
$ stack build
Building all executables for myproject once. After a successful build of all of them, only specified executables will be rebuilt.
myproject> configure (exe)

Error: [S-7282]
Stack failed to execute the build plan.

While executing the build plan, Stack encountered the error:

[S-7011]
While building package myproject-0.0.0 (scroll up to its section to see the error) using:
/home/myuser/.stack/setup-exe-cache/x86_64-linux-tinfo6-libc6-pre232/Cabal-simple_6HauvNHV_3.8.1.0_ghc-9.4.7 --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6-libc6-pre232/ghc-9.4.7 configure --with-ghc=/home/myuser/.stack/programs/x86_64-linux/ghc-tinfo6-libc6-pre232-9.4.7/bin/ghc-9.4.7 --with-ghc-pkg=/home/myuser/.stack/programs/x86_64-linux/ghc-tinfo6-libc6-pre232-9.4.7/bin/ghc-pkg-9.4.7 --user --package-db=clear --package-db=global --package-db=/home/myuser/.stack/snapshots/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/pkgdb --package-db=/home/myuser/c/myproject/.stack-work/install/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/pkgdb --libdir=/home/myuser/c/myproject/.stack-work/install/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/lib --bindir=/home/myuser/c/myproject/.stack-work/install/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/bin --datadir=/home/myuser/c/myproject/.stack-work/install/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/share --libexecdir=/home/myuser/c/myproject/.stack-work/install/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/libexec --sysconfdir=/home/myuser/c/myproject/.stack-work/install/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/etc --docdir=/home/myuser/c/myproject/.stack-work/install/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/doc/myproject-0.0.0 --htmldir=/home/myuser/c/myproject/.stack-work/install/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/doc/myproject-0.0.0 --haddockdir=/home/myuser/c/myproject/.stack-work/install/x86_64-linux-tinfo6-libc6-pre232/bb234be5e34390aa6066ae442c07ce42f759301c485fd18d04e6ee0055f99fee/9.4.7/doc/myproject-0.0.0 --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure (-11)
~~~

### Stack version

~~~text
$ stack --version
Version 2.13.1, Git revision 8102bb8afce90fc954f48efae38b87f37cabc988 x86_64 hpack-0.36.0
~~~

Installed on x86_64 void-linux with it's package manager xbps. Upgraded with `stack upgrade`

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.