Skip to content

GHC-8.6.5 bootstrap binary installation segfault on musl #118731

@nomeata

Description

@nomeata

Issue description

On todays master (229aff8), I observe this:

$ nix-build -A pkgsMusl.buildPackages.haskell.compiler.ghc865Binary setfault
unpacking sources
unpacking source archive /nix/store/43n0mrmxkv86baxzisc986x36c2v3sjy-ghc-8.6.5-x86_64-fedora27-linux.tar.xz
source root is ghc-8.6.5
patching script interpreter paths in ghc-8.6.5/utils/
ghc-8.6.5/utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist: interpreter directive changed from "#!/bin/sh" to "/nix/store/8z553rdkg2h2892snrg6fakw354p3bxn-bash-4.4-p23/bin/sh"
…
Patchelfing /nix/store/iz8azixwl6vzzd87q1p38vlsm3hb21aa-ghc-8.6.5-binary/lib/ghc-8.6.5/bin/hp2ps
Patchelfing /nix/store/iz8azixwl6vzzd87q1p38vlsm3hb21aa-ghc-8.6.5-binary/lib/ghc-8.6.5/bin/ghc-iserv
Patchelfing /nix/store/iz8azixwl6vzzd87q1p38vlsm3hb21aa-ghc-8.6.5-binary/lib/ghc-8.6.5/bin/runghc
Patchelfing /nix/store/iz8azixwl6vzzd87q1p38vlsm3hb21aa-ghc-8.6.5-binary/lib/ghc-8.6.5/ghc-boot-th-8.6.5/libHSghc-boot-th-8.6.5-ghc8.6.5.so
running install tests
/nix/store/6my73ym207a4ds2szcl9wnr1gby10q56-stdenv-linux/setup: line 1318:  7439 Segmentation fault      (core dumped) $out/bin/ghc --make main.hs
builder for '/nix/store/00x82zgp94rf4682gzq63d2nlldzvfmb-ghc-8.6.5-binary.drv' failed with exit code 1

This smelled a bit like the issue fixed in #103183, but, well, that fix is already included in master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.topic: haskellGeneral-purpose, statically typed, purely functional programming language6.topic: muslRunning or building packages with musl libc

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions